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