1994-05-26 07:35:07 +01:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/5/93
|
1999-12-07 17:39:16 +00:00
|
|
|
# $FreeBSD$
|
1994-05-26 07:35:07 +01:00
|
|
|
|
2006-07-27 14:26:29 +01:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
1994-05-26 07:35:07 +01:00
|
|
|
PROG= route
|
2001-03-26 15:33:27 +01:00
|
|
|
MAN= route.8
|
1997-04-02 17:52:45 +01:00
|
|
|
SRCS= route.c keywords.h
|
2010-02-27 10:18:33 +00:00
|
|
|
WARNS?= 3
|
2013-07-17 14:47:13 +01:00
|
|
|
CLEANFILES+=keywords.h
|
1994-05-26 07:35:07 +01:00
|
|
|
|
2006-07-27 14:26:29 +01:00
|
|
|
CFLAGS+= -DNS
|
2013-07-17 15:05:20 +01:00
|
|
|
.if ${MK_INET_SUPPORT} != "no"
|
|
|
|
CFLAGS+= -DINET
|
|
|
|
.endif
|
2006-07-27 14:26:29 +01:00
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
|
|
CFLAGS+= -DINET6
|
|
|
|
.endif
|
|
|
|
CFLAGS+= -I.
|
|
|
|
|
1994-05-26 07:35:07 +01:00
|
|
|
keywords.h: keywords
|
2013-07-17 14:47:13 +01:00
|
|
|
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)
|
1994-05-26 07:35:07 +01:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|