1# 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 := \
15    liblog libcutils libutils libril librilutils
16
17# for asprinf
18LOCAL_CFLAGS := -D_GNU_SOURCE
19
20LOCAL_C_INCLUDES :=
21
22ifeq ($(TARGET_DEVICE),sooner)
23  LOCAL_CFLAGS += -DUSE_TI_COMMANDS
24endif
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 += \
37      libcutils libutils
38  LOCAL_CFLAGS += -DRIL_SHLIB
39  LOCAL_MODULE:= libreference-ril
40  include $(BUILD_SHARED_LIBRARY)
41else
42  #build executable
43  LOCAL_SHARED_LIBRARIES += \
44      libril
45  LOCAL_MODULE:= reference-ril
46  include $(BUILD_EXECUTABLE)
47endif
48