xref: /freebsd/sbin/route/Makefile (revision 1f474190)
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
22HAS_TESTS=
23SUBDIR.${MK_TESTS}+= tests
24
25keywords.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>
32