File: Makefile

package info (click to toggle)
ipset 2.5.0-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 636 kB
  • ctags: 1,153
  • sloc: ansic: 10,075; makefile: 191; sh: 108; perl: 13
file content (16 lines) | stat: -rw-r--r-- 292 bytes parent folder | download
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