Sync froyo ril blob from hyc's codebase.
[xdandroid:rootfs.git] / 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     htcgeneric-ril.c \
10     atchannel.c \
11     misc.c \
12     at_tok.c \
13     sms.c \
14     sms_gsm.c \
15     gsm.c
16
17 LOCAL_SHARED_LIBRARIES := \
18         libcutils libutils libril
19
20         # for asprinf
21 LOCAL_CFLAGS := -D_GNU_SOURCE
22
23 LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
24
25 ifeq ($(TARGET_PRODUCT),sooner)
26   LOCAL_CFLAGS += -DOMAP_CSMI_POWER_CONTROL -DUSE_TI_COMMANDS 
27 endif
28
29 ifeq ($(TARGET_PRODUCT),surf)
30   LOCAL_CFLAGS += -DPOLL_CALL_STATE -DUSE_QMI
31 endif
32
33 ifeq ($(TARGET_PRODUCT),dream)
34   LOCAL_CFLAGS += -DPOLL_CALL_STATE -DUSE_QMI
35 endif
36
37 LOCAL_MODULE_TAGS := optional
38
39 ifeq (foo,foo)
40   #build shared library
41   LOCAL_SHARED_LIBRARIES += \
42         libcutils libutils
43   LOCAL_LDLIBS += -lpthread 
44   LOCAL_CFLAGS += -DRIL_SHLIB 
45   LOCAL_MODULE:= libhtcgeneric-ril
46   LOCAL_PRELINK_MODULE := false
47   include $(BUILD_SHARED_LIBRARY)
48 else
49   #build executable
50   LOCAL_SHARED_LIBRARIES += \
51         libril
52   LOCAL_MODULE:= htcgeneric-ril
53   include $(BUILD_EXECUTABLE)
54 endif