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 if_monitor.cpp \ 12 ipv6_monitor.cpp \ 13 misc.c \ 14 at_tok.c 15 16LOCAL_SHARED_LIBRARIES += \ 17 liblog libcutils libutils libril-goldfish-fork librilutils-goldfish-fork 18 19LOCAL_STATIC_LIBRARIES += libbase libqemud.ranchu 20 21# for asprinf 22LOCAL_CFLAGS := -D_GNU_SOURCE 23LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-variable -Wno-unused-function -Werror 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 39#build shared library 40LOCAL_SHARED_LIBRARIES += \ 41 libcutils libutils 42LOCAL_CFLAGS += -DRIL_SHLIB 43LOCAL_MODULE:= libgoldfish-ril 44include $(BUILD_SHARED_LIBRARY) 45