mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
406d87b1c3
Sponsored by: The FreeBSD Foundation
29 lines
553 B
Makefile
29 lines
553 B
Makefile
# @(#)Makefile 8.1 (Berkeley) 6/5/93
|
|
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PACKAGE=runtime
|
|
PROG= route
|
|
MAN= route.8
|
|
SRCS= route.c keywords.h
|
|
WARNS?= 3
|
|
CLEANFILES+=keywords.h
|
|
|
|
CFLAGS+= -DNS
|
|
.if ${MK_INET_SUPPORT} != "no"
|
|
CFLAGS+= -DINET
|
|
.endif
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
CFLAGS+= -DINET6
|
|
.endif
|
|
CFLAGS+= -I.
|
|
|
|
keywords.h: keywords
|
|
LC_ALL=C awk '!/^#|^$$/ { \
|
|
printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", \
|
|
toupper($$1), ++L, $$1, toupper($$1); \
|
|
}' < ${.CURDIR}/keywords > ${.TARGET} || (rm -f ${.TARGET}; false)
|
|
|
|
.include <bsd.prog.mk>
|