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 ipl2tp.c \ 10 ipfou.c iptoken.c tcp_metrics.c ipnetconf.c \ 11 iproute_lwtunnel.c 12 13LOCAL_MODULE := ip 14 15LOCAL_MODULE_TAGS := optional 16 17LOCAL_SHARED_LIBRARIES := libc libm libdl 18 19LOCAL_SHARED_LIBRARIES += libiprouteutil libnetlink 20 21LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include 22 23LOCAL_CFLAGS := \ 24 -O2 -g \ 25 -W -Wall \ 26 -Wno-implicit-function-declaration \ 27 -Wno-missing-field-initializers \ 28 -Wno-pointer-arith \ 29 -Wno-sign-compare \ 30 -Wno-unused-parameter \ 31 -Werror \ 32 -D_GNU_SOURCE \ 33 -DHAVE_SETNS \ 34 35LOCAL_LDFLAGS := -Wl,-export-dynamic -Wl,--no-gc-sections 36 37include $(BUILD_EXECUTABLE) 38 39