Samsung Galaxy Note 2 N7100 support
[libsamsung-ipc.git] / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2 include $(CLEAR_VARS)
3
4 DEBUG := true
5
6 LOCAL_MODULE := libsamsung-ipc
7 LOCAL_MODULE_TAGS := optional
8
9 LOCAL_C_INCLUDES := external/openssl/include
10 LOCAL_LDFLAGS += -lcrypto
11
12 ifneq (,$(filter crespo,$(TARGET_DEVICE)))
13         ipc_device_name := crespo
14 endif
15
16 ifneq (,$(filter galaxysmtd galaxytab,$(TARGET_DEVICE)))
17         ipc_device_name := aries
18 endif
19
20 ifneq (,$(filter maguro,$(TARGET_DEVICE)))
21         ipc_device_name := maguro
22 endif
23
24 ifneq (,$(filter p5100 p3100,$(TARGET_DEVICE)))
25         ipc_device_name := piranha
26 endif
27
28 ifneq (,$(filter i9100 galaxys2 n7000,$(TARGET_DEVICE)))
29         ipc_device_name := galaxys2
30 endif
31
32 ifneq (,$(filter i9300,$(TARGET_DEVICE)))
33         ipc_device_name := i9300
34 endif
35
36 ifneq (,$(filter n7100,$(TARGET_DEVICE)))
37         ipc_device_name := n7100
38 endif
39
40 ifeq ($(DEBUG),true)
41         LOCAL_CFLAGS += -DDEBUG
42         LOCAL_CFLAGS += -DLOG_STDOUT
43 endif
44
45 samsung-ipc_files := \
46         samsung-ipc/ipc.c \
47         samsung-ipc/ipc_util.c \
48         samsung-ipc/ipc_devices.c \
49         samsung-ipc/call.c \
50         samsung-ipc/rfs.c \
51         samsung-ipc/gen.c \
52         samsung-ipc/gprs.c \
53         samsung-ipc/misc.c \
54         samsung-ipc/net.c \
55         samsung-ipc/sec.c \
56         samsung-ipc/sms.c \
57         samsung-ipc/util.c \
58         samsung-ipc/device/xmm6160/xmm6160.c \
59         samsung-ipc/device/xmm6260/xmm6260.c \
60         samsung-ipc/device/xmm6260/xmm6260_hsic.c \
61         samsung-ipc/device/xmm6260/xmm6260_mipi.c \
62         samsung-ipc/device/xmm6260/xmm6260_sec_modem.c \
63         samsung-ipc/device/crespo/crespo_ipc.c \
64         samsung-ipc/device/aries/aries_ipc.c \
65         samsung-ipc/device/galaxys2/galaxys2_ipc.c \
66         samsung-ipc/device/i9300/i9300_ipc.c \
67         samsung-ipc/device/maguro/maguro_ipc.c \
68         samsung-ipc/device/piranha/piranha_ipc.c \
69         samsung-ipc/device/n7100/n7100_ipc.c
70
71 LOCAL_SRC_FILES := $(samsung-ipc_files)
72 LOCAL_CFLAGS += -DIPC_DEVICE_NAME=\"$(ipc_device_name)\"
73
74 LOCAL_SHARED_LIBRARIES := libutils
75 LOCAL_C_INCLUDES += \
76         $(LOCAL_PATH)/include \
77         $(LOCAL_PATH)/samsung-ipc \
78         $(LOCAL_PATH)/samsung-ipc/device/xmm6160/ \
79         $(LOCAL_PATH)/samsung-ipc/device/xmm6260/
80
81 include $(BUILD_STATIC_LIBRARY)
82
83 include $(CLEAR_VARS)
84
85 LOCAL_MODULE := ipc-modemctrl
86 LOCAL_MODULE_TAGS := optional
87
88 ifeq ($(DEBUG),true)
89         LOCAL_CFLAGS += -DDEBUG
90         LOCAL_CFLAGS += -DLOG_STDOUT
91 endif
92
93 modemctrl_files := tools/modemctrl.c
94
95 LOCAL_SRC_FILES := $(modemctrl_files)
96
97 LOCAL_STATIC_LIBRARIES := libsamsung-ipc
98 LOCAL_SHARED_LIBRARIES := libutils
99 LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
100
101 include $(BUILD_EXECUTABLE)