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