1# 2# Copyright (c) 1983 Regents of the University of California. 3# All rights reserved. The Berkeley software License Agreement 4# specifies the terms and conditions for redistribution. 5# 6# @(#)Makefile 5.2 (Berkeley) 02/07/86 7# 8ALL= routed 9OBJS= af.o if.o input.o main.o output.o startup.o tables.o timer.o \ 10 trace.o inet.o 11CFLAGS= 12C2= /lib/c2 13INLINE= /sys/machine/inline/inline 14DESTDIR= 15LDFLAGS= 16 17all: ${ALL} 18 19routed: ${OBJS} 20 ${CC} -o routed ${LDFLAGS} ${OBJS} 21 22install: routed 23 install -s routed ${DESTDIR}/etc 24 25# The following can be deleted where not appropriate to use the kernel's 26# inline code expansions. 27.c.o: 28 ${CC} -S ${CFLAGS} $*.c 29 ${C2} $*.s | ${INLINE} | ${AS} -o $*.o 30 rm -f $*.s 31 32clean: 33 rm -f routed *.o core a.out t.c linterrs typescript errs 34 35${OBJS}: defs.h af.h defs.h interface.h table.h trace.h \ 36 /usr/include/protocols/routed.h 37