-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathAndroid.mk
43 lines (34 loc) · 1.07 KB
/
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
LOCAL_PATH:= $(call my-dir)
# We need to build this for both the device (as a shared library)
# and the host (as a static library for tools to use).
common_SRC_FILES := \
src/rtnl.c \
src/libnfnetlink.c \
src/iftable.c
common_C_INCLUDES += \
$(LOCAL_PATH)/include
### # For the device
### # =====================================================
###
### include $(CLEAR_VARS)
### LOCAL_SRC_FILES := $(common_SRC_FILES)
### LOCAL_C_INCLUDES += $(common_C_INCLUDES)
###
### LOCAL_MODULE:= libnfnetlink
###
### include $(BUILD_STATIC_LIBRARY)
# Shared library
#=======================================================
include $(CLEAR_VARS)
LOCAL_MODULE:= libnfnetlink
LOCAL_SRC_FILES := $(common_SRC_FILES)
LOCAL_C_INCLUDES := $(common_C_INCLUDES)
include $(BUILD_SHARED_LIBRARY)
### # For the host
### # ========================================================
###
### include $(CLEAR_VARS)
### LOCAL_SRC_FILES := $(common_SRC_FILES)
### LOCAL_C_INCLUDES += $(common_C_INCLUDES)
### LOCAL_MODULE:= libnfnetlink
### include $(BUILD_HOST_STATIC_LIBRARY)