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