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 17LOCAL_STATIC_LIBRARIES := libqemu_pipe libbase 18 19# for asprinf 20LOCAL_CFLAGS := -D_GNU_SOURCE 21LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-variable -Wno-unused-function -Werror 22 23LOCAL_C_INCLUDES := 24 25ifeq ($(TARGET_DEVICE),sooner) 26 LOCAL_CFLAGS += -DUSE_TI_COMMANDS 27endif 28 29ifeq ($(TARGET_DEVICE),surf) 30 LOCAL_CFLAGS += -DPOLL_CALL_STATE -DUSE_QMI 31endif 32 33ifeq ($(TARGET_DEVICE),dream) 34 LOCAL_CFLAGS += -DPOLL_CALL_STATE -DUSE_QMI 35endif 36 37LOCAL_VENDOR_MODULE:= true 38 39ifeq (foo,foo) 40 #build shared library 41 LOCAL_SHARED_LIBRARIES += \ 42 libcutils libutils 43 LOCAL_CFLAGS += -DRIL_SHLIB 44 LOCAL_MODULE:= libreference-ril 45 include $(BUILD_SHARED_LIBRARY) 46else 47 #build executable 48 LOCAL_SHARED_LIBRARIES += \ 49 libril 50 LOCAL_MODULE:= reference-ril 51 include $(BUILD_EXECUTABLE) 52endif 53