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