Home | History | Annotate | Download | only in extensions
      1 LOCAL_PATH:= $(call my-dir)
      2 #----------------------------------------------------------------
      3 ## extension
      4 
      5 MY_srcdir:=$(LOCAL_PATH)
      6 # Exclude some modules that are problematic to compile (types/header).
      7 MY_excluded_modules:=TCPOPTSTRIP connlabel
      8 
      9 MY_pfx_build_mod := $(patsubst ${MY_srcdir}/libxt_%.c,%,$(sort $(wildcard ${MY_srcdir}/libxt_*.c)))
     10 MY_pf4_build_mod := $(patsubst ${MY_srcdir}/libipt_%.c,%,$(sort $(wildcard ${MY_srcdir}/libipt_*.c)))
     11 MY_pf6_build_mod := $(patsubst ${MY_srcdir}/libip6t_%.c,%,$(sort $(wildcard ${MY_srcdir}/libip6t_*.c)))
     12 MY_pfx_build_mod := $(filter-out ${MY_excluded_modules} dccp ipvs,${MY_pfx_build_mod})
     13 MY_pf4_build_mod := $(filter-out ${MY_excluded_modules} dccp ipvs,${MY_pf4_build_mod})
     14 MY_pf6_build_mod := $(filter-out ${MY_excluded_modules} dccp ipvs,${MY_pf6_build_mod})
     15 MY_pfx_objs      := $(patsubst %,libxt_%.o,${MY_pfx_build_mod})
     16 MY_pf4_objs      := $(patsubst %,libipt_%.o,${MY_pf4_build_mod})
     17 MY_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]
     19 MY_warnings      := \
     20     -Wno-unused-parameter -Wno-missing-field-initializers \
     21     -Wno-sign-compare -Wno-pointer-arith \
     22     -Wno-pointer-bool-conversion
     23 
     24 libext_suffix :=
     25 libext_prefix := xt
     26 libext_build_mod := $(MY_pfx_build_mod)
     27 include $(LOCAL_PATH)/libext.mk
     28 
     29 libext_suffix := 4
     30 libext_prefix := ipt
     31 libext_build_mod := $(MY_pf4_build_mod)
     32 include $(LOCAL_PATH)/libext.mk
     33 
     34 libext_suffix := 6
     35 libext_prefix := ip6t
     36 libext_build_mod := $(MY_pf6_build_mod)
     37 include $(LOCAL_PATH)/libext.mk
     38 
     39 
     40 #----------------------------------------------------------------
     41