1LOCAL_PATH:= $(call my-dir)
2#----------------------------------------------------------------
3## extension
4
5MY_srcdir:=$(LOCAL_PATH)
6# Exclude some modules that are problematic to compile (types/header).
7MY_excluded_modules:=TCPOPTSTRIP connlabel
8
9MY_pfx_build_mod := $(patsubst ${MY_srcdir}/libxt_%.c,%,$(sort $(wildcard ${MY_srcdir}/libxt_*.c)))
10MY_pf4_build_mod := $(patsubst ${MY_srcdir}/libipt_%.c,%,$(sort $(wildcard ${MY_srcdir}/libipt_*.c)))
11MY_pf6_build_mod := $(patsubst ${MY_srcdir}/libip6t_%.c,%,$(sort $(wildcard ${MY_srcdir}/libip6t_*.c)))
12MY_pfx_build_mod := $(filter-out ${MY_excluded_modules} dccp ipvs,${MY_pfx_build_mod})
13MY_pf4_build_mod := $(filter-out ${MY_excluded_modules} dccp ipvs,${MY_pf4_build_mod})
14MY_pf6_build_mod := $(filter-out ${MY_excluded_modules} dccp ipvs,${MY_pf6_build_mod})
15MY_pfx_objs      := $(patsubst %,libxt_%.o,${MY_pfx_build_mod})
16MY_pf4_objs      := $(patsubst %,libipt_%.o,${MY_pf4_build_mod})
17MY_pf6_objs      := $(patsubst %,libip6t_%.o,${MY_pf6_build_mod})
18# libxt_recent.c:202:11: error: address of array 'info->name' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
19MY_warnings      := \
20    -Wno-unused-parameter -Wno-missing-field-initializers \
21    -Wno-sign-compare -Wno-pointer-arith \
22    -Wno-pointer-bool-conversion
23
24libext_suffix :=
25libext_prefix := xt
26libext_build_mod := $(MY_pfx_build_mod)
27include $(LOCAL_PATH)/libext.mk
28
29libext_suffix := 4
30libext_prefix := ipt
31libext_build_mod := $(MY_pf4_build_mod)
32include $(LOCAL_PATH)/libext.mk
33
34libext_suffix := 6
35libext_prefix := ip6t
36libext_build_mod := $(MY_pf6_build_mod)
37include $(LOCAL_PATH)/libext.mk
38
39
40#----------------------------------------------------------------
41