]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sbin/route/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.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 _keywords.tmp
11
12 CFLAGS+= -DNS
13
14 .if ${MK_INET6_SUPPORT} != "no"
15 CFLAGS+= -DINET6
16 .endif
17
18 CFLAGS+= -I.
19
20 keywords.h: keywords
21         sed -e '/^#/d' -e '/^$$/d' ${.CURDIR}/keywords > _keywords.tmp
22         LC_ALL=C tr 'a-z' 'A-Z' < _keywords.tmp | paste _keywords.tmp - | \
23             awk '{ \
24                 if (NF > 1) \
25                         printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", \
26                             $$2, NR, $$1, $$2 }' \
27             > ${.TARGET}
28         rm -f _keywords.tmp
29
30 .include <bsd.prog.mk>