xref: /original-bsd/sys/i386/floppy/route/Makefile (revision bacd16ee)
1#	@(#)Makefile	8.1 (Berkeley) 06/11/93
2
3PROG=	route
4SRCS=	route.c
5CFLAGS+=-DLETS_GET_SMALL -I.
6NOMAN=	noman
7LDFLAGS=-N
8CLEANFILES+=keywords.h
9BINOWN=	root
10BINMODE=4555
11.PATH:	${.CURDIR}/../../../../sbin/route
12
13all route depend lint tags: keywords.h
14
15keywords.h: keywords
16	sed -e '/^#/d' -e '/^$$/d' \
17	    ${.CURDIR}/../../../../sbin/route/keywords > _keywords.tmp
18	tr a-z A-Z < _keywords.tmp | paste _keywords.tmp - | \
19	    awk '{ \
20		if (NF > 1) \
21			printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", \
22			    $$2, NR, $$1, $$2 }' \
23	    > ${.TARGET}
24	rm -f _keywords.tmp
25
26.include <bsd.prog.mk>
27