OSDN Git Service

New error codes for SMS/other messages
[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 # for asprinf
18 LOCAL_CFLAGS := -D_GNU_SOURCE
19
20 LOCAL_C_INCLUDES :=
21
22 ifeq ($(TARGET_DEVICE),sooner)
23   LOCAL_CFLAGS += -DUSE_TI_COMMANDS
24 endif
25
26 ifeq ($(TARGET_DEVICE),surf)
27   LOCAL_CFLAGS += -DPOLL_CALL_STATE -DUSE_QMI
28 endif
29
30 ifeq ($(TARGET_DEVICE),dream)
31   LOCAL_CFLAGS += -DPOLL_CALL_STATE -DUSE_QMI
32 endif
33
34 ifeq (foo,foo)
35   #build shared library
36   LOCAL_SHARED_LIBRARIES += \
37       libcutils libutils
38   LOCAL_CFLAGS += -DRIL_SHLIB
39   LOCAL_MODULE:= libreference-ril
40   include $(BUILD_SHARED_LIBRARY)
41 else
42   #build executable
43   LOCAL_SHARED_LIBRARIES += \
44       libril
45   LOCAL_MODULE:= reference-ril
46   include $(BUILD_EXECUTABLE)
47 endif