File:  [Net/2] / Net2 / arch / i386 / floppy / route / makefile
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 18:04:01 2018 UTC (8 years, 3 months ago) by root
Branches: MAIN, CSRG
CVS tags: Net2, HEAD
Net/2

#	@(#)Makefile	5.1 (Berkeley) 5/3/91

PROG=	route
SRCS=	route.c
CFLAGS+=-DLETS_GET_SMALL -I.
NOMAN=	noman
LDFLAGS=-N
CLEANFILES+=keywords.h
BINOWN=	root
BINMODE=4555
.PATH:	${.CURDIR}/../../../../sbin/route

all route depend lint tags: keywords.h

keywords.h: keywords
	sed -e '/^#/d' -e '/^$$/d' \
	    ${.CURDIR}/../../../../sbin/route/keywords > _keywords.tmp
	tr a-z A-Z < _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>

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.