blob: d9908c166d805c3f5807749a1ccf26ed78266c2b [file] [log] [blame]
The Android Open Source Project00f06fc2009-03-03 19:32:15 -08001# Copyright 2006 The Android Open Source Project
2
3# XXX using libutils for simulator build only...
4#
5LOCAL_PATH:= $(call my-dir)
6include $(CLEAR_VARS)
7
8LOCAL_SRC_FILES:= \
9 reference-ril.c \
10 atchannel.c \
11 misc.c \
12 at_tok.c
13
14LOCAL_SHARED_LIBRARIES := \
Ying Wang52688262013-04-09 22:31:00 -070015 liblog libcutils libutils libril librilutils
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080016
Wink Saville7f856802009-06-09 10:23:37 -070017# for asprinf
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080018LOCAL_CFLAGS := -D_GNU_SOURCE
19
Colin Cross894fbbd2014-01-24 17:02:19 -080020LOCAL_C_INCLUDES :=
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080021
22ifeq ($(TARGET_DEVICE),sooner)
Elliott Hughes88d0e0e2013-11-21 12:48:17 -080023 LOCAL_CFLAGS += -DUSE_TI_COMMANDS
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080024endif
25
26ifeq ($(TARGET_DEVICE),surf)
27 LOCAL_CFLAGS += -DPOLL_CALL_STATE -DUSE_QMI
28endif
29
30ifeq ($(TARGET_DEVICE),dream)
31 LOCAL_CFLAGS += -DPOLL_CALL_STATE -DUSE_QMI
32endif
33
34ifeq (foo,foo)
35 #build shared library
36 LOCAL_SHARED_LIBRARIES += \
Wink Saville7f856802009-06-09 10:23:37 -070037 libcutils libutils
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080038 LOCAL_CFLAGS += -DRIL_SHLIB
39 LOCAL_MODULE:= libreference-ril
40 include $(BUILD_SHARED_LIBRARY)
41else
42 #build executable
43 LOCAL_SHARED_LIBRARIES += \
Wink Saville7f856802009-06-09 10:23:37 -070044 libril
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080045 LOCAL_MODULE:= reference-ril
46 include $(BUILD_EXECUTABLE)
47endif