add Kerberos info
[unix-history] / usr / src / sbin / routed / Makefile
index 6cb2863..e3092b0 100644 (file)
@@ -1,28 +1,20 @@
-#      @(#)Makefile    4.7 (Berkeley) %G%
-#
-ALL=   routed
-OBJS=  af.o if.o input.o main.o output.o startup.o tables.o timer.o \
-       trace.o inet.o
-CFLAGS=
-C2=    /lib/c2
-INLINE= /sys/machine/inline/inline
-DESTDIR=
-LDFLAGS=
+#      @(#)Makefile    5.13 (Berkeley) %G%
 
 
-all:   ${ALL}
+PROG=  routed
+SRCS=  af.c if.c input.c main.c output.c startup.c tables.c timer.c \
+       trace.c inet.c
+MAN8=  routed.0
+SUBDIR=        query trace
 
 
-routed: ${OBJS}
-       ${CC} -o routed ${LDFLAGS} ${OBJS}
-
-install: routed
-       install -s routed ${DESTDIR}/etc
+.include <bsd.prog.mk>
 
 
+.if (${MACHINE} == "vax")
 # The following can be deleted where not appropriate to use the kernel's
 # inline code expansions.
 # The following can be deleted where not appropriate to use the kernel's
 # inline code expansions.
+INLINE=        /sys/vax/inline/inline
+C2=    /usr/libexec/c2
 .c.o:
 .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
+       ${CC} -S ${CFLAGS} ${.CURDIR}/${.PREFIX}.c
+       @${C2} ${.PREFIX}.s | ${INLINE} | ${AS} -o ${.PREFIX}.o
+       @rm -f ${.PREFIX}.s
+.endif