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