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?= 3 10CLEANFILES+=keywords.h 11 12CFLAGS+= -DNS 13 14.if ${MK_INET6_SUPPORT} != "no" 15CFLAGS+= -DINET6 16.endif 17 18CFLAGS+= -I. 19 20keywords.h: keywords 21 LC_ALL=C awk '!/^#|^$$/ { \ 22 printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", \ 23 toupper($$1), ++L, $$1, toupper($$1); \ 24 }' < ${.CURDIR}/keywords > ${.TARGET} || (rm -f ${.TARGET}; false) 25 26.include <bsd.prog.mk> 27