]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sbin/route/Makefile
Merge ^/head r363739 through r363986.
[FreeBSD/FreeBSD.git] / sbin / route / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 6/5/93
2 # $FreeBSD$
3
4 .include <src.opts.mk>
5
6 PACKAGE=runtime
7 PROG=   route
8 MAN=    route.8
9 SRCS=   route.c keywords.h
10 WARNS?= 3
11 CLEANFILES+=keywords.h
12
13 CFLAGS+= -DNS
14 .if ${MK_INET_SUPPORT} != "no"
15 CFLAGS+= -DINET
16 .endif
17 .if ${MK_INET6_SUPPORT} != "no"
18 CFLAGS+= -DINET6
19 .endif
20 CFLAGS+= -I.
21
22 HAS_TESTS=
23 SUBDIR.${MK_TESTS}+= tests
24
25 keywords.h: keywords
26         LC_ALL=C awk '!/^#|^$$/ { \
27                 printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", \
28                     toupper($$1), ++L, $$1, toupper($$1); \
29         }' < ${.CURDIR}/keywords > ${.TARGET} || (rm -f ${.TARGET}; false)
30
31 .include <bsd.prog.mk>