1LOCAL_PATH := $(call my-dir) 2 3include $(CLEAR_VARS) 4LOCAL_SRC_FILES := ip.c ipaddress.c ipaddrlabel.c iproute.c iprule.c ipnetns.c \ 5 rtm_map.c iptunnel.c ip6tunnel.c tunnel.c ipneigh.c ipntable.c iplink.c \ 6 ipmaddr.c ipmonitor.c ipmroute.c ipprefix.c iptuntap.c \ 7 ipxfrm.c xfrm_state.c xfrm_policy.c xfrm_monitor.c \ 8 iplink_vlan.c link_veth.c link_gre.c iplink_can.c \ 9 iplink_macvlan.c iplink_macvtap.c ipl2tp.c 10 11LOCAL_MODULE := ip 12 13LOCAL_MODULE_TAGS := optional 14 15LOCAL_SHARED_LIBRARIES := libc libm libdl 16 17LOCAL_SHARED_LIBRARIES += libiprouteutil libnetlink 18 19LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include 20 21LOCAL_CFLAGS := \ 22 -O2 -g \ 23 -W -Wall \ 24 -Wno-implicit-function-declaration \ 25 -Wno-missing-field-initializers \ 26 -Wno-pointer-arith \ 27 -Wno-sign-compare \ 28 -Werror \ 29 -D_GNU_SOURCE \ 30 -DHAVE_SETNS \ 31 32LOCAL_LDFLAGS := -Wl,-export-dynamic -Wl,--no-gc-sections 33 34include $(BUILD_EXECUTABLE) 35 36