1LOCAL_PATH := $(call my-dir) 2 3include $(CLEAR_VARS) 4LOCAL_CLANG := true 5 6LOCAL_SRC_FILES := ss.c ssfilter.y 7 8LOCAL_MODULE := ss 9 10LOCAL_MODULE_TAGS := debug 11 12LOCAL_SHARED_LIBRARIES += libiprouteutil libnetlink 13 14LOCAL_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++. 19yacc_flags := -x c 20 21LOCAL_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 33LOCAL_CPPFLAGS := $(yacc_flags) 34 35LOCAL_LDFLAGS := -Wl,-export-dynamic 36include $(BUILD_EXECUTABLE) 37 38