]> Sergey Matveev's repositories - ndproxy.git/blob - Makefile
Different behaviour of ndproxyconf_exception_ipv6_addresses
[ndproxy.git] / Makefile
1
2 # after having changed "#include" statements, call 'rm .depends; make depend' to create a new dependencies file
3
4 # compile without debug informations on console and without debugging symbols:
5 #   make clean && make
6 # compile with debug informations on console:
7 #   make clean && make DEBUG_FLAGS=-DDEBUG_NDPROXY
8
9 # use load & unload predefined targets to load & unload the module:
10 #   make load
11 #   make unload
12
13 # use install target to copy the module to /boot/kernel and generate hints for the kernel loader:
14 #   make install
15 # or, if compiled with debugging symbols:
16 #  make DEBUG_FLAGS=-DDEBUG_NDPROXY install
17
18 # use all-man target to compress man page
19 # use maninstall target to install man page
20 # use manlint target to check manpage
21
22 # declare name of kernel module
23 KMOD    =  ndproxy
24
25 # build for a kernel with 'options VIMAGE'
26 CFLAGS += -DVIMAGE
27
28 # enumerate source files for kernel module
29 SRCS    = ndproxy.c ndparse.c ndpacket.c ndconf.c
30 MAN    += ndproxy.4
31
32 CLEANFILES += ndproxy.ko.debug ndproxy.ko.full
33
34 # Include kernel module makefile
35 .include <bsd.kmod.mk>
36 .include <bsd.man.mk>
37
38 man: all-man maninstall
39         man ndproxy
40
41 pdf: ndproxy.4
42         groff -man ndproxy.4 > ndproxy.ps
43         ps2pdf ndproxy.ps
44
45 mandoc: ndproxy.4
46         mandoc -Ttree ndproxy.4
47
48 manhtml: ndproxy.4
49         groff -Thtml -man ndproxy.4 > ndproxy.html
50
51 catman: ndproxy.4
52         groff -Tascii -man ndproxy.4 | sed 's/.\[[012]*m//g' > MANUAL.TXT
53
54 lines:
55         wc -l *.c *.h
56
57 etags:
58         ./etags.sh
59
60 propget:
61         svn propget svn:keywords *.c *.h *.TXT Makefile
62
63 # call this target after adding a new text file to the repository
64 propset:
65         svn propset svn:keywords Id *.c *.h *.TXT Makefile
66
67 ci:
68         svn ci -m new
69
70 distinfo:
71         cd usr/ports/net/ndproxy && make makesum
72
73 update:
74         svn update