blob: 9ec91f6f235c75a75545d689c920fce583b6d249 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
ifneq ($(KERNELRELEASE),)
include Kbuild
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
|