The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 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 := \ |
Ying Wang | 5268826 | 2013-04-09 22:31:00 -0700 | [diff] [blame] | 15 | liblog libcutils libutils libril librilutils |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 16 | |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 17 | # for asprinf |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 18 | LOCAL_CFLAGS := -D_GNU_SOURCE |
| 19 | |
Colin Cross | 894fbbd | 2014-01-24 17:02:19 -0800 | [diff] [blame] | 20 | LOCAL_C_INCLUDES := |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 21 | |
| 22 | ifeq ($(TARGET_DEVICE),sooner) |
Elliott Hughes | 88d0e0e | 2013-11-21 12:48:17 -0800 | [diff] [blame] | 23 | LOCAL_CFLAGS += -DUSE_TI_COMMANDS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 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 += \ |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 37 | libcutils libutils |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 38 | LOCAL_CFLAGS += -DRIL_SHLIB |
| 39 | LOCAL_MODULE:= libreference-ril |
| 40 | include $(BUILD_SHARED_LIBRARY) |
| 41 | else |
| 42 | #build executable |
| 43 | LOCAL_SHARED_LIBRARIES += \ |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 44 | libril |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 45 | LOCAL_MODULE:= reference-ril |
| 46 | include $(BUILD_EXECUTABLE) |
| 47 | endif |