1# @(#)Makefile 8.1 (Berkeley) 6/5/93 2 3.include <src.opts.mk> 4 5PACKAGE=runtime 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 21.if ${MK_NETLINK_SUPPORT} != "no" 22SRCS+= route_netlink.c 23.else 24CFLAGS+=-DWITHOUT_NETLINK 25.endif 26 27.if ${MK_JAIL} != "no" && !defined(RESCUE) 28CFLAGS+= -DJAIL 29LIBADD+= jail 30.endif 31 32HAS_TESTS= 33SUBDIR.${MK_TESTS}+= tests 34 35keywords.h: keywords 36 LC_ALL=C awk '!/^#|^$$/ { \ 37 printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", \ 38 toupper($$1), ++L, $$1, toupper($$1); \ 39 }' < ${.CURDIR}/keywords > ${.TARGET} || (rm -f ${.TARGET}; false) 40 41.include <bsd.prog.mk> 42