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