BSD 4_3 release
[unix-history] / usr / src / etc / routed / Makefile
index be7dba8..116cf5d 100644 (file)
@@ -1,9 +1,16 @@
-#      Makefile (Berkeley) 6/12/83
+#
+# 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) 2/7/86
 #
 ALL=   routed
 OBJS=  af.o if.o input.o main.o output.o startup.o tables.o timer.o \
 #
 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=
 
 DESTDIR=
 LDFLAGS=
 
@@ -15,5 +22,15 @@ routed: ${OBJS}
 install: routed
        install -s routed ${DESTDIR}/etc
 
 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
 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