Makefile: support building multiple files with one config option

This commit is contained in:
Jan Engelhardt
2008-03-26 08:11:04 +01:00
parent 8302faad44
commit 818cd3b47e
3 changed files with 11 additions and 8 deletions

View File

@@ -45,16 +45,14 @@ endif
#
include ${top_srcdir}/mconfig
-include ${top_srcdir}/mconfig.*
pfx_all_mod := $(patsubst ${srcdir}/libxt_%.c,%,$(wildcard ${srcdir}/libxt_*.c))
pfx_build_mod := $(foreach i,${pfx_all_mod},$(if ${build_${i}},${i},))
pfx_solibs := $(patsubst %,libxt_%.so,${pfx_build_mod})
include ${srcdir}/Mbuild
#
# Building blocks
#
targets := ${pfx_solibs}
targets_install := ${pfx_solibs}
targets := ${obj-m}
targets_install := ${obj-m}
.SECONDARY: