blob: 6b07f709cc92cabff62765560d3a4ebc51bc6413 [file] [log] [blame]
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := ss
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := ss.c ssfilter.c
LOCAL_STATIC_LIBRARIES += libiprouteutil libnetlink
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include $(LOCAL_PATH)/../include/uapi
ss_local_path := $(LOCAL_PATH)
LOCAL_CFLAGS := -O2 -g -W -Wall -Wno-pointer-arith -Wno-sign-compare -Werror \
-Wno-missing-field-initializers -Wno-unused-parameter \
-Wno-unused-result -Wno-tautological-pointer-compare \
-DHAVE_SETNS -DNEED_STRLCPY
$(ss_local_path)/ssfilter.c: $(ss_local_path)/ssfilter.y
bison $(ss_local_path)/ssfilter.y -o $(ss_local_path)/ssfilter.c
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_MODULE := nstat
LOCAL_MODULE_TAGS := eng
LOCAL_SRC_FILES := nstat.c
LOCAL_STATIC_LIBRARIES += libiprouteutil libnetlink
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include $(LOCAL_PATH)/../include/uapi
LOCAL_CFLAGS := -O2 -g -W -Wall -Wno-pointer-arith -Wno-sign-compare -Werror \
-Wno-missing-field-initializers -Wno-unused-parameter \
-Wno-unused-result -Wno-tautological-pointer-compare \
-DHAVE_SETNS
LOCAL_LDLIBS += -lm
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_MODULE := ifstat
LOCAL_MODULE_TAGS := eng
LOCAL_SRC_FILES := ifstat.c
LOCAL_STATIC_LIBRARIES += libiprouteutil libnetlink
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include $(LOCAL_PATH)/../include/uapi
LOCAL_CFLAGS := -O2 -g -W -Wall -Wno-pointer-arith -Wno-sign-compare -Werror \
-Wno-missing-field-initializers -Wno-unused-parameter \
-Wno-unused-result -Wno-tautological-pointer-compare \
-DHAVE_SETNS
LOCAL_LDLIBS += -lm
include $(BUILD_EXECUTABLE)