]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sbin/route/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sbin / route / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 6/5/93
2 # $FreeBSD$
3
4 .include <bsd.own.mk>
5
6 PROG=   route
7 MAN=    route.8
8 SRCS=   route.c keywords.h
9 WARNS?= 3
10 CLEANFILES+=keywords.h
11
12 CFLAGS+= -DNS
13 .if ${MK_INET_SUPPORT} != "no"
14 CFLAGS+= -DINET
15 .endif
16 .if ${MK_INET6_SUPPORT} != "no"
17 CFLAGS+= -DINET6
18 .endif
19 CFLAGS+= -I.
20
21 keywords.h: keywords
22         LC_ALL=C awk '!/^#|^$$/ { \
23                 printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", \
24                     toupper($$1), ++L, $$1, toupper($$1); \
25         }' < ${.CURDIR}/keywords > ${.TARGET} || (rm -f ${.TARGET}; false)
26
27 .include <bsd.prog.mk>