2 # after having changed "#include" statements, call 'rm .depends; make depend' to create a new dependencies file
4 # compile without debug informations on console and without debugging symbols:
6 # compile with debug informations on console:
7 # make clean && make DEBUG_FLAGS=-DDEBUG_NDPROXY
9 # use load & unload predefined targets to load & unload the module:
13 # use install target to copy the module to /boot/kernel and generate hints for the kernel loader:
15 # or, if compiled with debugging symbols:
16 # make DEBUG_FLAGS=-DDEBUG_NDPROXY install
18 # use all-man target to compress man page
19 # use maninstall target to install man page
20 # use manlint target to check manpage
22 # declare name of kernel module
25 # build for a kernel with 'options VIMAGE'
28 # enumerate source files for kernel module
29 SRCS = ndproxy.c ndparse.c ndpacket.c ndconf.c
32 CLEANFILES += ndproxy.ko.debug ndproxy.ko.full
34 # Include kernel module makefile
35 .include <bsd.kmod.mk>
38 man: all-man maninstall
42 groff -man ndproxy.4 > ndproxy.ps
46 mandoc -Ttree ndproxy.4
49 groff -Thtml -man ndproxy.4 > ndproxy.html
52 groff -Tascii -man ndproxy.4 | sed 's/.\[[012]*m//g' > MANUAL.TXT
61 svn propget svn:keywords *.c *.h *.TXT Makefile
63 # call this target after adding a new text file to the repository
65 svn propset svn:keywords Id *.c *.h *.TXT Makefile
71 cd usr/ports/net/ndproxy && make makesum