OSDN Git Service

[automerger skipped] Encode the Number of MNC Digits in CellIdentity
[android-x86/hardware-ril.git] / reference-ril / Android.mk
1 # Copyright 2006 The Android Open Source Project
2
3 # XXX using libutils for simulator build only...
4 #
5 LOCAL_PATH:= $(call my-dir)
6 include $(CLEAR_VARS)
7
8 LOCAL_SRC_FILES:= \
9     reference-ril.c \
10     atchannel.c \
11     misc.c \
12     at_tok.c
13
14 LOCAL_SHARED_LIBRARIES := \
15     liblog libcutils libutils libril librilutils
16
17 LOCAL_STATIC_LIBRARIES := libqemu_pipe libbase
18
19 # for asprinf
20 LOCAL_CFLAGS := -D_GNU_SOURCE
21 LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-variable -Wno-unused-function -Werror
22
23 LOCAL_C_INCLUDES :=
24
25 ifeq ($(TARGET_DEVICE),sooner)
26   LOCAL_CFLAGS += -DUSE_TI_COMMANDS
27 endif
28
29 ifeq ($(TARGET_DEVICE),surf)
30   LOCAL_CFLAGS += -DPOLL_CALL_STATE -DUSE_QMI
31 endif
32
33 ifeq ($(TARGET_DEVICE),dream)
34   LOCAL_CFLAGS += -DPOLL_CALL_STATE -DUSE_QMI
35 endif
36
37 LOCAL_VENDOR_MODULE:= true
38
39 ifeq (foo,foo)
40   #build shared library
41   LOCAL_SHARED_LIBRARIES += \
42       libcutils libutils
43   LOCAL_CFLAGS += -DRIL_SHLIB
44   LOCAL_MODULE:= libreference-ril
45   include $(BUILD_SHARED_LIBRARY)
46 else
47   #build executable
48   LOCAL_SHARED_LIBRARIES += \
49       libril
50   LOCAL_MODULE:= reference-ril
51   include $(BUILD_EXECUTABLE)
52 endif