-
Notifications
You must be signed in to change notification settings - Fork 141
/
Android.mk
50 lines (38 loc) · 969 Bytes
/
Android.mk
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
45
46
47
48
49
50
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE:= mqttpub
LOCAL_SRC_FILES:= \
client/pub.c \
LOCAL_LDLIBS += -llog -lz -ldl -landroid
LOCAL_CFLAGS += -Wall \
-O3
LOCAL_C_INCLUDES += \
$(LOCAL_PATH) \
$(LOCAL_PATH)/include
LOCAL_STATIC_LIBRARIES := libemqtt
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE:= mqttsub
LOCAL_SRC_FILES:= \
client/sub.c \
LOCAL_LDLIBS += -llog -lz -ldl -landroid
LOCAL_CFLAGS += -Wall \
-O3
LOCAL_C_INCLUDES += \
$(LOCAL_PATH) \
$(LOCAL_PATH)/include
LOCAL_STATIC_LIBRARIES := libemqtt
include $(BUILD_SHARED_LIBRARY)
# Define vars for library that will be build statically.
include $(CLEAR_VARS)
LOCAL_MODULE := libemqtt
LOCAL_C_INCLUDES += \
$(LOCAL_PATH) \
$(LOCAL_PATH)/include
LOCAL_SRC_FILES := \
src/libemqtt.c
# Optional compiler flags.
LOCAL_LDLIBS += -llog -lz -ldl -landroid
LOCAL_CFLAGS += -Wall \
-O3
include $(BUILD_STATIC_LIBRARY)