1 # @(#)Makefile 8.1 (Berkeley) 6/12/93
7 SRCS
= if.c inet.c main.c mbuf.c mroute.c netisr.c nl_symbols.c route.c \
8 unix.c mroute6.c ipsec.c bpf.c pfkey.c sctp.c \
11 nl_symbols.c
: nlist_symbols
14 print "#include <sys/param.h>"; \
15 print "#include <nlist.h>"; \
16 print "struct nlist nl[] = {"; \
18 !/^\#/ { printf("\t{ .n_name = \"%s\" },\n", $$2); } \
19 END { print "\t{ .n_name = NULL },\n};" } \
20 ' < ${.ALLSRC
} > ${.TARGET
} ||
rm -f
${.TARGET
}
21 nl_defs.h
: nlist_symbols
24 print "#include <nlist.h>"; \
25 print "extern struct nlist nl[];"; \
28 !/^\#/ { printf("\#define\tN%s\t%s\n", toupper($$2), i++); }' \
29 < ${.ALLSRC
} > ${.TARGET
} ||
rm -f
${.TARGET
}
30 CLEANFILES
+= nl_symbols.c nl_defs.h
34 CFLAGS
+=-fno-strict-aliasing
39 .if
${MK_INET_SUPPORT} != "no"
43 .if
${MK_INET6_SUPPORT} != "no"
48 .if
${MK_OFED} != "no"
58 LIBADD
= kvm memstat xo util
60 .if
${MK_NETGRAPH_SUPPORT} != "no"
66 .
include <bsd.prog.mk
>