blob: 6afdbd33e50ff977e32d1bbfc5c0080ab89a8e56 [file] [log] [blame]
The Android Open Source Project00f06fc2009-03-03 19:32:15 -08001# 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 := \
Ying Wang52688262013-04-09 22:31:00 -070015 liblog libcutils libutils libril librilutils
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080016
bohuba723ce2017-03-29 12:20:46 -070017LOCAL_STATIC_LIBRARIES := libqemu_pipe libbase
18
Wink Saville7f856802009-06-09 10:23:37 -070019# for asprinf
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080020LOCAL_CFLAGS := -D_GNU_SOURCE
Tomasz Wasilczyk88961c22017-04-11 09:21:08 -070021LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-variable -Wno-unused-function -Werror
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080022
bohu05bab0b2017-03-28 14:53:04 -070023LOCAL_C_INCLUDES :=
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080024
25ifeq ($(TARGET_DEVICE),sooner)
Elliott Hughes88d0e0e2013-11-21 12:48:17 -080026 LOCAL_CFLAGS += -DUSE_TI_COMMANDS
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080027endif
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
Steven Morelandeeebae62017-05-03 18:07:35 -070037LOCAL_VENDOR_MODULE:= true
38
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080039ifeq (foo,foo)
40 #build shared library
41 LOCAL_SHARED_LIBRARIES += \
Wink Saville7f856802009-06-09 10:23:37 -070042 libcutils libutils
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080043 LOCAL_CFLAGS += -DRIL_SHLIB
44 LOCAL_MODULE:= libreference-ril
45 include $(BUILD_SHARED_LIBRARY)
46else
47 #build executable
48 LOCAL_SHARED_LIBRARIES += \
Wink Saville7f856802009-06-09 10:23:37 -070049 libril
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080050 LOCAL_MODULE:= reference-ril
51 include $(BUILD_EXECUTABLE)
52endif