1994-05-26 06:35:07 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/5/93
|
1999-12-07 17:39:16 +00:00
|
|
|
# $FreeBSD$
|
1994-05-26 06:35:07 +00:00
|
|
|
|
2006-07-27 13:26:29 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
1994-05-26 06:35:07 +00:00
|
|
|
PROG= route
|
2001-03-26 14:33:27 +00:00
|
|
|
MAN= route.8
|
1997-04-02 16:52:45 +00:00
|
|
|
SRCS= route.c keywords.h
|
2004-02-23 20:25:27 +00:00
|
|
|
WARNS?= 0
|
2002-04-12 11:12:37 +00:00
|
|
|
CLEANFILES+=keywords.h _keywords.tmp
|
1994-05-26 06:35:07 +00:00
|
|
|
|
2006-07-27 13:26:29 +00:00
|
|
|
CFLAGS+= -DNS
|
|
|
|
|
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
|
|
CFLAGS+= -DINET6
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CFLAGS+= -I.
|
|
|
|
|
1994-05-26 06:35:07 +00:00
|
|
|
keywords.h: keywords
|
|
|
|
sed -e '/^#/d' -e '/^$$/d' ${.CURDIR}/keywords > _keywords.tmp
|
2003-08-04 21:31:53 +00:00
|
|
|
LC_ALL=C tr 'a-z' 'A-Z' < _keywords.tmp | paste _keywords.tmp - | \
|
1994-05-26 06:35:07 +00:00
|
|
|
awk '{ \
|
|
|
|
if (NF > 1) \
|
|
|
|
printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", \
|
|
|
|
$$2, NR, $$1, $$2 }' \
|
|
|
|
> ${.TARGET}
|
|
|
|
rm -f _keywords.tmp
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|