X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/faf0f6d52cea7be5060bb41b667d71bed704604f..09069ad0cc4cd56b44d27a67fe9aef3c51e70a15:/usr/src/sbin/routed/Makefile diff --git a/usr/src/sbin/routed/Makefile b/usr/src/sbin/routed/Makefile index b1ba3a26a9..42fe124d37 100644 --- a/usr/src/sbin/routed/Makefile +++ b/usr/src/sbin/routed/Makefile @@ -1,21 +1,36 @@ -# Makefile %G% +# +# Copyright (c) 1983 Regents of the University of California. +# All rights reserved. The Berkeley software License Agreement +# specifies the terms and conditions for redistribution. +# +# @(#)Makefile 5.2 (Berkeley) %G% +# ALL= routed OBJS= af.o if.o input.o main.o output.o startup.o tables.o timer.o \ - trace.o -CFLAGS= -O + trace.o inet.o +CFLAGS= +C2= /lib/c2 +INLINE= /sys/machine/inline/inline DESTDIR= LDFLAGS= all: ${ALL} routed: ${OBJS} - ${CC} -o routed ${LDFLAGS} ${OBJS} -ljobs - -${ALL}: rip.h -${ALL}: router.h + ${CC} -o routed ${LDFLAGS} ${OBJS} install: routed install -s routed ${DESTDIR}/etc +# The following can be deleted where not appropriate to use the kernel's +# inline code expansions. +.c.o: + ${CC} -S ${CFLAGS} $*.c + ${C2} $*.s | ${INLINE} | ${AS} -o $*.o + rm -f $*.s + clean: rm -f routed *.o core a.out t.c linterrs typescript errs + +${OBJS}: defs.h af.h defs.h interface.h table.h trace.h \ + /usr/include/protocols/routed.h