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