summaryrefslogtreecommitdiffstats
path: root/Android.mk
blob: 1ee2542f3203aab11ee9c8a8f2f0402fc07db487 (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
45
46
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_SRC_FILES :=  lib/cache.c \
	lib/data.c \
	lib/nl.c \
	lib/cache_mngr.c \
	lib/addr.c \
	lib/socket.c \
	lib/fib_lookup/lookup.c \
	lib/fib_lookup/request.c \
	lib/msg.c \
	lib/object.c \
	lib/attr.c \
	lib/utils.c \
	lib/cache_mngt.c \
	lib/handlers.c \
	lib/genl/ctrl.c \
	lib/genl/mngt.c \
	lib/genl/family.c \
	lib/genl/genl.c \
	lib/route/rtnl.c \
	lib/route/route_utils.c \
	lib/netfilter/nfnl.c \
	lib/error.c \
	lib/version.c \
	lib/hash.c \
	lib/hashtable.c

LOCAL_C_INCLUDES := $(LOCAL_PATH)/include $(LOCAL_PATH)/include/linux-private
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
LOCAL_CFLAGS += -D_BSD_SOURCE -Wno-unused-parameter -Wno-sign-compare \
	-Wno-missing-field-initializers -Wno-tautological-compare \
	-Wno-pointer-arith -UNDEBUG -D_GNU_SOURCE -DSYSCONFDIR="\"/etc/libnl\""
LOCAL_MODULE := libnl

include $(BUILD_STATIC_LIBRARY)

include $(CLEAR_VARS)

LOCAL_WHOLE_STATIC_LIBRARIES := libnl
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
LOCAL_MODULE := libnl

include $(BUILD_SHARED_LIBRARY)