diff options
Diffstat (limited to 'kernel/Makefile')
-rw-r--r-- | kernel/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/Makefile b/kernel/Makefile index 60e5362..9ec91f6 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -4,4 +4,13 @@ else KERNELDIR := /lib/modules/`uname -r`/build all:: $(MAKE) -C $KERNELDIR M=`pwd` $@ + +expand_macros: $(patsubst %.c, %.m.c, $(filter-out %.mod.c %.m.c, $(wildcard ip_set_*.c))) + +%.m.c: %.c + ./expand_macros.pl < $< > $@ + +clean: + rm -rf *.m.c + endif |