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 22CFLAGS+=-DWITHOUT_NETLINK 23 24HAS_TESTS= 25SUBDIR.${MK_TESTS}+= tests 26 27keywords.h: keywords 28 LC_ALL=C awk '!/^#|^$$/ { \ 29 printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", \ 30 toupper($$1), ++L, $$1, toupper($$1); \ 31 }' < ${.CURDIR}/keywords > ${.TARGET} || (rm -f ${.TARGET}; false) 32 33.include <bsd.prog.mk> 34