add Berkeley specific headers
[unix-history] / usr / src / sbin / routed / Makefile
CommitLineData
5ff67f98 1#
d2748719 2# Copyright (c) 1987 Regents of the University of California.
45c8edda 3# All rights reserved.
5ff67f98 4#
45c8edda
KB
5# Redistribution and use in source and binary forms are permitted
6# provided that this notice is preserved and that due credit is given
7# to the University of California at Berkeley. The name of the University
8# may not be used to endorse or promote products derived from this
9# software without specific written prior permission. This software
10# is provided ``as is'' without express or implied warranty.
11#
12# @(#)Makefile 5.5 (Berkeley) %G%
ce5e9df4 13#
d2748719
KB
14CFLAGS= -O
15LIBC= /lib/libc.a
16C2= /lib/c2
17INLINE= /sys/machine/inline/inline
18SRCS= af.c if.c input.c main.c output.c startup.c tables.c timer.c \
19 trace.c inet.c
9e3338b9 20OBJS= af.o if.o input.o main.o output.o startup.o tables.o timer.o \
2198ed48 21 trace.o inet.o
9e3338b9 22
d2748719 23all: routed
9e3338b9 24
d2748719
KB
25routed: ${OBJS} ${LIBC}
26 ${CC} -o $@ ${CFLAGS} ${OBJS}
9e3338b9 27
7eb13f75
MK
28# The following can be deleted where not appropriate to use the kernel's
29# inline code expansions.
30.c.o:
31 ${CC} -S ${CFLAGS} $*.c
848fd4d5 32 ${C2} $*.s | ${INLINE} | ${AS} -o $*.o
7eb13f75
MK
33 rm -f $*.s
34
d2748719 35clean: FRC
45c8edda
KB
36 rm -f ${OBJS} core routed tags
37 (cd tools; make ${MFLAGS} clean)
d2748719
KB
38
39depend: FRC
40 mkdep ${CFLAGS} ${SRCS}
45c8edda 41 (cd tools; make ${MFLAGS} depend)
d2748719
KB
42
43install: FRC
44 install -s -o bin -g bin -m 755 routed ${DESTDIR}/etc/routed
45
46lint: FRC
47 lint ${CFLAGS} ${SRCS}
48
49tags: FRC
50 ctags ${SRCS}
45c8edda 51 (cd tools; make ${MFLAGS} tags)
d2748719
KB
52
53FRC:
54
55# DO NOT DELETE THIS LINE -- mkdep uses it.
56# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
30eefcd8 57
d2748719
KB
58af.o: af.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h
59af.o: /usr/include/net/route.h /usr/include/netinet/in.h
60af.o: /usr/include/protocols/routed.h /usr/include/stdio.h /usr/include/netdb.h
61af.o: trace.h interface.h table.h af.h
62if.o: if.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h
63if.o: /usr/include/net/route.h /usr/include/netinet/in.h
64if.o: /usr/include/protocols/routed.h /usr/include/stdio.h /usr/include/netdb.h
65if.o: trace.h interface.h table.h af.h
66input.o: input.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h
67input.o: /usr/include/net/route.h /usr/include/netinet/in.h
68input.o: /usr/include/protocols/routed.h /usr/include/stdio.h
69input.o: /usr/include/netdb.h trace.h interface.h table.h af.h
70input.o: /usr/include/sys/syslog.h
71main.o: main.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h
72main.o: /usr/include/net/route.h /usr/include/netinet/in.h
73main.o: /usr/include/protocols/routed.h /usr/include/stdio.h
74main.o: /usr/include/netdb.h trace.h interface.h table.h af.h
75main.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
76main.o: /usr/include/sys/ttydev.h /usr/include/sys/time.h /usr/include/time.h
77main.o: /usr/include/net/if.h /usr/include/net/if_arp.h /usr/include/errno.h
45c8edda 78main.o: /usr/include/signal.h /usr/include/machine/trap.h /usr/include/syslog.h
d2748719
KB
79output.o: output.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h
80output.o: /usr/include/net/route.h /usr/include/netinet/in.h
81output.o: /usr/include/protocols/routed.h /usr/include/stdio.h
82output.o: /usr/include/netdb.h trace.h interface.h table.h af.h
83startup.o: startup.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h
84startup.o: /usr/include/net/route.h /usr/include/netinet/in.h
85startup.o: /usr/include/protocols/routed.h /usr/include/stdio.h
86startup.o: /usr/include/netdb.h trace.h interface.h table.h af.h
87startup.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
88startup.o: /usr/include/sys/ttydev.h /usr/include/net/if.h
89startup.o: /usr/include/net/if_arp.h /usr/include/syslog.h
90tables.o: tables.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h
91tables.o: /usr/include/net/route.h /usr/include/netinet/in.h
92tables.o: /usr/include/protocols/routed.h /usr/include/stdio.h
93tables.o: /usr/include/netdb.h trace.h interface.h table.h af.h
94tables.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
95tables.o: /usr/include/sys/ttydev.h /usr/include/errno.h /usr/include/syslog.h
96timer.o: timer.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h
97timer.o: /usr/include/net/route.h /usr/include/netinet/in.h
98timer.o: /usr/include/protocols/routed.h /usr/include/stdio.h
99timer.o: /usr/include/netdb.h trace.h interface.h table.h af.h
100trace.o: trace.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h
101trace.o: /usr/include/net/route.h /usr/include/netinet/in.h
102trace.o: /usr/include/protocols/routed.h /usr/include/stdio.h
103trace.o: /usr/include/netdb.h trace.h interface.h table.h af.h
104trace.o: /usr/include/sys/stat.h
105inet.o: inet.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h
106inet.o: /usr/include/net/route.h /usr/include/netinet/in.h
107inet.o: /usr/include/protocols/routed.h /usr/include/stdio.h
108inet.o: /usr/include/netdb.h trace.h interface.h table.h af.h
66da2b0f 109
d2748719 110# IF YOU PUT ANYTHING HERE IT WILL GO AWAY