Home | History | Annotate | Download | only in reference-ril
      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     libcutils libutils libril
     16 
     17 # for asprinf
     18 LOCAL_CFLAGS := -D_GNU_SOURCE
     19 
     20 LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
     21 
     22 ifeq ($(TARGET_DEVICE),sooner)
     23   LOCAL_CFLAGS += -DOMAP_CSMI_POWER_CONTROL -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_LDLIBS += -lpthread
     39   LOCAL_CFLAGS += -DRIL_SHLIB
     40   LOCAL_MODULE:= libreference-ril
     41   include $(BUILD_SHARED_LIBRARY)
     42 else
     43   #build executable
     44   LOCAL_SHARED_LIBRARIES += \
     45       libril
     46   LOCAL_MODULE:= reference-ril
     47   include $(BUILD_EXECUTABLE)
     48 endif
     49