xref: /freebsd/sbin/route/Makefile (revision 18242d3b09dbc3f5e278e39baaa3c3b76624c901)
1#	@(#)Makefile	8.1 (Berkeley) 6/5/93
2# $FreeBSD$
3
4.include <bsd.own.mk>
5
6PROG=	route
7MAN=	route.8
8SRCS=	route.c keywords.h
9WARNS?=	0
10CLEANFILES+=keywords.h _keywords.tmp
11
12CFLAGS+= -DNS
13
14.if ${MK_INET6_SUPPORT} != "no"
15CFLAGS+= -DINET6
16.endif
17
18CFLAGS+= -I.
19
20keywords.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>
31