1# @(#)Makefile 8.1 (Berkeley) 6/5/93 2# $FreeBSD$ 3 4TOPDIR?=${CURDIR}/../.. 5include ${TOPDIR}/tools/opts.mk 6 7PROG= route 8MAN= route.8 9SRCS= route.c keywords.h 10WARNS?= 3 11CLEANFILES+=keywords.h 12 13CFLAGS+= -DNS 14ifneq (${MK_INET_SUPPORT},"no") 15CFLAGS+= -DINET 16endif 17ifneq (${MK_INET6_SUPPORT},"no") 18CFLAGS+= -DINET6 19endif 20CFLAGS+= -I. 21 22include ${TOPDIR}/tools/prog.mk 23 24keywords.h: keywords 25 LC_ALL=C awk '!/^#|^$$/ { \ 26 printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", \ 27 toupper($$1), ++L, $$1, toupper($$1); \ 28 }' < ${CURDIR}/keywords > $@ 29 30