1# Makefile 10/21/82 2ALL= rip.h routed.c query.c trace.c 3CFLAGS= -O 4DESTDIR= 5LDFLAGS= 6 7.c.o: 8 ${CC} -S ${CFLAGS} $*.c 9 sed -f ../asm.sed $*.s | ${AS} -o $*.o 10 rm -f $*.s 11 12all: routed 13 14routed: routed.o af.o 15 ${CC} -o routed ${LDFLAGS} routed.o af.o -ljobs 16 17routed.o query.o: rip.h 18routed.o af.o: router.h 19 20# test programs and utilities 21query: query.o 22 ${CC} -o query ${LDFLAGS} query.o 23 24trace: trace.o 25 ${CC} -o trace ${LDFLAGS} trace.o 26 27install: routed 28 install -s routed ${DESTDIR}/etc 29 30lint: 31 lint -hbxn routed.c af.c 32 33clean: 34 rm -f routed *.o core a.out t.c query linterrs trace typescript errs 35