1# 2# Copyright (c) 1987 Regents of the University of California. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms are permitted 6# provided that the above copyright notice and this paragraph are 7# duplicated in all such forms and that any documentation, 8# advertising materials, and other materials related to such 9# distribution and use acknowledge that the software was developed 10# by the University of California, Berkeley. The name of the 11# University may not be used to endorse or promote products derived 12# from this software without specific prior written permission. 13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16# 17# @(#)Makefile 5.9 (Berkeley) 05/11/89 18# 19CFLAGS= -O 20LIBC= /lib/libc.a 21C2= /usr/libexec/c2 22INLINE= /usr/include/${MACHINE}/inline/inline 23SRCS= af.c if.c input.c main.c output.c startup.c tables.c timer.c \ 24 trace.c inet.c 25OBJS= af.o if.o input.o main.o output.o startup.o tables.o timer.o \ 26 trace.o inet.o 27HDRS= af.h defs.h interface.h table.h trace.h 28MAN= routed.0 29 30all: routed 31 32routed: ${OBJS} ${LIBC} 33 ${CC} -o $@ ${CFLAGS} ${OBJS} 34 35# The following can be deleted where not appropriate to use the kernel's 36# inline code expansions. 37.c.o: 38 ${CC} -S ${CFLAGS} $*.c 39 ${C2} $*.s | ${INLINE} | ${AS} -o $*.o 40 rm -f $*.s 41 42clean: 43 rm -f ${OBJS} core routed 44 (cd tools; make ${MFLAGS} clean) 45 46cleandir: clean 47 rm -f ${MAN} tags .depend 48 (cd tools; make ${MFLAGS} cleandir) 49 50depend: ${SRCS} 51 mkdep ${CFLAGS} ${SRCS} 52 (cd tools; make ${MFLAGS} depend) 53 54install: ${MAN} 55 install -s -o bin -g bin -m 755 routed ${DESTDIR}/usr/sbin 56 install -c -o bin -g bin -m 444 routed.0 ${DESTDIR}/usr/man/cat8 57 58lint: ${SRCS} 59 lint ${CFLAGS} ${SRCS} 60 61tags: ${SRCS} 62 ctags ${HDRS} ${SRCS} 63 (cd tools; make ${MFLAGS} tags) 64