-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
74 lines (52 loc) · 1.68 KB
/
Makefile
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# after having changed "#include" statements, call 'rm .depends; make depend' to create a new dependencies file
# compile without debug informations on console and without debugging symbols:
# make clean && make
# compile with debug informations on console:
# make clean && make DEBUG_FLAGS=-DDEBUG_NDPROXY
# use load & unload predefined targets to load & unload the module:
# make load
# make unload
# use install target to copy the module to /boot/kernel and generate hints for the kernel loader:
# make install
# or, if compiled with debugging symbols:
# make DEBUG_FLAGS=-DDEBUG_NDPROXY install
# use all-man target to compress man page
# use maninstall target to install man page
# use manlint target to check manpage
# declare name of kernel module
KMOD = ndproxy
# build for a kernel with 'options VIMAGE'
CFLAGS += -DVIMAGE
# enumerate source files for kernel module
SRCS = ndproxy.c ndparse.c ndpacket.c ndconf.c
MAN += ndproxy.4
CLEANFILES += ndproxy.ko.debug ndproxy.ko.full
# Include kernel module makefile
.include <bsd.kmod.mk>
.include <bsd.man.mk>
man: all-man maninstall
man ndproxy
pdf: ndproxy.4
groff -man ndproxy.4 > ndproxy.ps
ps2pdf ndproxy.ps
mandoc: ndproxy.4
mandoc -Ttree ndproxy.4
manhtml: ndproxy.4
groff -Thtml -man ndproxy.4 > ndproxy.html
catman: ndproxy.4
groff -Tascii -man ndproxy.4 | sed 's/.\[[012]*m//g' > MANUAL.TXT
lines:
wc -l *.c *.h
etags:
./etags.sh
propget:
svn propget svn:keywords *.c *.h *.TXT Makefile
# call this target after adding a new text file to the repository
propset:
svn propset svn:keywords Id *.c *.h *.TXT Makefile
ci:
svn ci -m new
distinfo:
cd usr/ports/net/ndproxy && make makesum
update:
svn update