summaryrefslogtreecommitdiffstats
path: root/Android.mk
blob: 1cee1362c3358db8934e708689df0fda170aa030 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 2006 The Android Open Source Project

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
    call.c \
    samsung-ril.c \
    misc.c \
    net.c \
    sat.c \
    sim.c \
    sms.c \
    util.c \

LOCAL_SHARED_LIBRARIES := \
    libcutils libutils libril

LOCAL_STATIC_LIBRARIES := libsamsung-ipc

# for asprinf
LOCAL_CFLAGS := -D_GNU_SOURCE

LOCAL_C_INCLUDES := external/libsamsung-ipc/include

LOCAL_MODULE_TAGS := optional

LOCAL_PRELINK_MODULE := false

ifeq (foo,foo)
  #build shared library
  LOCAL_SHARED_LIBRARIES += \
      libcutils libutils
  LOCAL_LDLIBS += -lpthread
  LOCAL_CFLAGS += -DRIL_SHLIB -DDEVICE_H1
  LOCAL_MODULE:= libsamsung-ril
  include $(BUILD_SHARED_LIBRARY)
else
  #build executable
  LOCAL_SHARED_LIBRARIES += \
      libril
  LOCAL_MODULE:= samsung-ril
  include $(BUILD_EXECUTABLE)
endif