1# Copyright 2006 The Android Open Source Project 2 3# XXX using libutils for simulator build only... 4# 5ifeq (libril-modem-lib,$(CUTTLEFISH_LIBRIL_NAME)) 6LOCAL_PATH:= $(call my-dir) 7include $(CLEAR_VARS) 8 9LOCAL_SRC_FILES:= \ 10 reference-ril.c \ 11 atchannel.c \ 12 misc.c \ 13 at_tok.c \ 14 15LOCAL_SHARED_LIBRARIES := \ 16 liblog libcutils libutils ${CUTTLEFISH_LIBRIL_NAME} librilutils libcuttlefish_fs 17 18LOCAL_STATIC_LIBRARIES := libqemu_pipe libbase 19 20# for asprinf 21LOCAL_CFLAGS := -D_GNU_SOURCE -DCUTTLEFISH_ENABLE 22LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-variable -Wno-unused-function -Werror 23 24LOCAL_C_INCLUDES := \ 25 device/google/cuttlefish 26 27ifeq ($(TARGET_DEVICE),sooner) 28 LOCAL_CFLAGS += -DUSE_TI_COMMANDS 29endif 30 31ifeq ($(TARGET_DEVICE),surf) 32 LOCAL_CFLAGS += -DPOLL_CALL_STATE -DUSE_QMI 33endif 34 35ifeq ($(TARGET_DEVICE),dream) 36 LOCAL_CFLAGS += -DPOLL_CALL_STATE -DUSE_QMI 37endif 38 39LOCAL_VENDOR_MODULE:= true 40 41LOCAL_CFLAGS += -DRIL_SHLIB 42LOCAL_MODULE:= libcuttlefish-ril-2 43LOCAL_MODULE_TAGS := optional 44LOCAL_VENDOR_MODULE := true 45 46include $(BUILD_SHARED_LIBRARY) 47endif 48