1 LOCAL_PATH := $(call my-dir) 2 3 include $(CLEAR_VARS) 4 5 LOCAL_SRC_FILES := ss.c ssfilter.y 6 7 LOCAL_MODULE := ss 8 9 LOCAL_MODULE_TAGS := debug 10 11 LOCAL_SHARED_LIBRARIES += libiprouteutil libnetlink 12 13 LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include $(UAPI_INCLUDES) 14 15 ## 16 # "-x c" forces the lex/yacc files to be compiled as c the build system 17 # otherwise forces them to be c++. 18 yacc_flags := -x c 19 20 LOCAL_CFLAGS := \ 21 -O2 -g \ 22 -W -Wall \ 23 -Wno-missing-field-initializers \ 24 -Wno-sign-compare \ 25 -Wno-tautological-pointer-compare \ 26 -Wno-unused-parameter \ 27 -Werror \ 28 '-Dsethostent(x)=' \ 29 $(yacc_flags) \ 30 -DHAVE_SETNS 31 32 LOCAL_CPPFLAGS := $(yacc_flags) 33 34 LOCAL_LDFLAGS := -Wl,-export-dynamic 35 include $(BUILD_EXECUTABLE) 36 37