1 # @(#)Makefile 8.1 (Berkeley) 6/12/93
6 SRCS= if.c inet.c main.c mbuf.c mroute.c netisr.c nl_symbols.c route.c \
7 unix.c mroute6.c ipsec.c bpf.c pfkey.c sctp.c common.c nhops.c nhgrp.c \
10 nl_symbols.c: nlist_symbols
13 print "#include <sys/param.h>"; \
14 print "#include <nlist.h>"; \
15 print "struct nlist nl[] = {"; \
17 !/^\#/ { printf("\t{ .n_name = \"%s\" },\n", $$2); } \
18 END { print "\t{ .n_name = NULL },\n};" } \
19 ' < ${.ALLSRC} > ${.TARGET} || rm -f ${.TARGET}
20 nl_defs.h: nlist_symbols
23 print "#include <nlist.h>"; \
24 print "extern struct nlist nl[];"; \
27 !/^\#/ { printf("\#define\tN%s\t%s\n", toupper($$2), i++); }' \
28 < ${.ALLSRC} > ${.TARGET} || rm -f ${.TARGET}
29 CLEANFILES+= nl_symbols.c nl_defs.h
33 CFLAGS+=-fno-strict-aliasing
38 .if ${MK_INET_SUPPORT} != "no"
42 .if ${MK_INET6_SUPPORT} != "no"
47 .if ${MK_OFED} != "no"
57 LIBADD= kvm memstat xo util
59 .if ${MK_NETGRAPH_SUPPORT} != "no"
65 .if ${MK_NETLINK_SUPPORT} != "no"
66 SRCS+= route_netlink.c
68 CFLAGS+=-DWITHOUT_NETLINK
71 .if ${MK_JAIL} != "no" && !defined(RESCUE)
76 .include <bsd.prog.mk>