aboutsummaryrefslogtreecommitdiff
path: root/sbin/route/Makefile
blob: 5f8b5016e865089850490434be64a317f61a92c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#	@(#)Makefile	8.1 (Berkeley) 6/5/93
# $FreeBSD$

PROG=	route
MAN=	route.8
SRCS=	route.c keywords.h
CFLAGS+=-I. -Wall -DNS
CFLAGS+=-DINET6
WARNS=	0
CLEANFILES+=keywords.h _keywords.tmp

keywords.h: keywords
	sed -e '/^#/d' -e '/^$$/d' ${.CURDIR}/keywords > _keywords.tmp
	tr '[:lower:]' '[:upper:]' < _keywords.tmp | paste _keywords.tmp - | \
	    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>