blob: 780901bded8456ddf3a11f59e1c8d14e55855330 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
obj-m := ip6t_SNPTV6.o ip6t_DNPTV6.o
KVERSION := $(shell uname -r)
KPATH := /lib/modules/$(KVERSION)/build
ifeq ($(DEBUG),1)
EXTRA_CFLAGS := -DDEBUG
endif
all: module libip6t_SNPTV6.so libip6t_DNPTV6.so
module:
$(MAKE) -C $(KPATH) M=$(PWD) modules
libip6t_SNPTV6.so: libip6t_SNPTV6.o libip6t_NPTV6.o
gcc -shared -o $@ $^
libip6t_DNPTV6.so: libip6t_DNPTV6.o libip6t_NPTV6.o
gcc -shared -o $@ $^
libip6t_NPTV6.o: libip6t_NPTV6.c libip6t_NPTV6.h ip6t_NPTV6.h Makefile
gcc $(CFLAGS) -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -Werror -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Winline -pipe -DXTABLES_LIBDIR=\"/usr/lib/iptables\" -DPIC -fPIC -g -O2 -o $@ -c $<
libip6t_SNPTV6.o: libip6t_SNPTV6.c libip6t_NPTV6.h ip6t_NPTV6.h Makefile
gcc $(CFLAGS) -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -Werror -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Winline -pipe -DXTABLES_LIBDIR=\"/usr/lib/iptables\" -DPIC -fPIC -g -O2 -o $@ -c $<
libip6t_DNPTV6.o: libip6t_DNPTV6.c libip6t_NPTV6.h ip6t_NPTV6.h Makefile
gcc $(CFLAGS) -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -Werror -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Winline -pipe -DXTABLES_LIBDIR=\"/usr/lib/iptables\" -DPIC -fPIC -g -O2 -o $@ -c $<
clean:
$(MAKE) -C $(KPATH) M=$(PWD) clean
rm -f libip6t_SNPTV6.so libip6t_DNPTV6.so *.o
README.txt: README.dbk
xmlto txt README.dbk
README.html: README.dbk
xmlto xhtml-nochunks README.dbk
|