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,%,$(wildcard ${MY_srcdir}/libxt_*.c)) 10MY_pf4_build_mod := $(patsubst ${MY_srcdir}/libipt_%.c,%,$(wildcard ${MY_srcdir}/libipt_*.c)) 11MY_pf6_build_mod := $(patsubst ${MY_srcdir}/libip6t_%.c,%,$(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}) 18MY_warnings := -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare -Wno-pointer-arith 19 20libext_suffix := 21libext_prefix := xt 22libext_build_mod := $(MY_pfx_build_mod) 23include $(LOCAL_PATH)/libext.mk 24 25libext_suffix := 4 26libext_prefix := ipt 27libext_build_mod := $(MY_pf4_build_mod) 28include $(LOCAL_PATH)/libext.mk 29 30libext_suffix := 6 31libext_prefix := ip6t 32libext_build_mod := $(MY_pf6_build_mod) 33include $(LOCAL_PATH)/libext.mk 34 35 36#---------------------------------------------------------------- 37