mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 05:34:58 +02:00
Makefile: support building multiple files with one config option
This commit is contained in:
@@ -45,16 +45,14 @@ endif
|
|||||||
#
|
#
|
||||||
include ${top_srcdir}/mconfig
|
include ${top_srcdir}/mconfig
|
||||||
-include ${top_srcdir}/mconfig.*
|
-include ${top_srcdir}/mconfig.*
|
||||||
pfx_all_mod := $(patsubst ${srcdir}/libxt_%.c,%,$(wildcard ${srcdir}/libxt_*.c))
|
include ${srcdir}/Mbuild
|
||||||
pfx_build_mod := $(foreach i,${pfx_all_mod},$(if ${build_${i}},${i},))
|
|
||||||
pfx_solibs := $(patsubst %,libxt_%.so,${pfx_build_mod})
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Building blocks
|
# Building blocks
|
||||||
#
|
#
|
||||||
targets := ${pfx_solibs}
|
targets := ${obj-m}
|
||||||
targets_install := ${pfx_solibs}
|
targets_install := ${obj-m}
|
||||||
|
|
||||||
.SECONDARY:
|
.SECONDARY:
|
||||||
|
|
||||||
|
8
extensions/Mbuild
Normal file
8
extensions/Mbuild
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
obj-${build_CHAOS} += libxt_CHAOS.so
|
||||||
|
obj-${build_DELUDE} += libxt_DELUDE.so
|
||||||
|
obj-${build_ECHO} += libxt_ECHO.so
|
||||||
|
obj-${build_LOGMARK} += libxt_LOGMARK.so
|
||||||
|
obj-${build_TARPIT} += libxt_TARPIT.so
|
||||||
|
obj-${build_TEE} += libxt_TEE.so
|
||||||
|
obj-${build_geoip} += libxt_geoip.so
|
||||||
|
obj-${build_portscan} += libxt_portscan.so
|
Reference in New Issue
Block a user