Commit | Line | Data |
---|---|---|
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 |
14 | CFLAGS= -O |
15 | LIBC= /lib/libc.a | |
16 | C2= /lib/c2 | |
17 | INLINE= /sys/machine/inline/inline | |
18 | SRCS= af.c if.c input.c main.c output.c startup.c tables.c timer.c \ | |
19 | trace.c inet.c | |
9e3338b9 | 20 | OBJS= 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 | 23 | all: routed |
9e3338b9 | 24 | |
d2748719 KB |
25 | routed: ${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 | 35 | clean: FRC |
45c8edda KB |
36 | rm -f ${OBJS} core routed tags |
37 | (cd tools; make ${MFLAGS} clean) | |
d2748719 KB |
38 | |
39 | depend: FRC | |
40 | mkdep ${CFLAGS} ${SRCS} | |
45c8edda | 41 | (cd tools; make ${MFLAGS} depend) |
d2748719 KB |
42 | |
43 | install: FRC | |
44 | install -s -o bin -g bin -m 755 routed ${DESTDIR}/etc/routed | |
45 | ||
46 | lint: FRC | |
47 | lint ${CFLAGS} ${SRCS} | |
48 | ||
49 | tags: FRC | |
50 | ctags ${SRCS} | |
45c8edda | 51 | (cd tools; make ${MFLAGS} tags) |
d2748719 KB |
52 | |
53 | FRC: | |
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 |
58 | af.o: af.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h |
59 | af.o: /usr/include/net/route.h /usr/include/netinet/in.h | |
60 | af.o: /usr/include/protocols/routed.h /usr/include/stdio.h /usr/include/netdb.h | |
61 | af.o: trace.h interface.h table.h af.h | |
62 | if.o: if.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h | |
63 | if.o: /usr/include/net/route.h /usr/include/netinet/in.h | |
64 | if.o: /usr/include/protocols/routed.h /usr/include/stdio.h /usr/include/netdb.h | |
65 | if.o: trace.h interface.h table.h af.h | |
66 | input.o: input.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h | |
67 | input.o: /usr/include/net/route.h /usr/include/netinet/in.h | |
68 | input.o: /usr/include/protocols/routed.h /usr/include/stdio.h | |
69 | input.o: /usr/include/netdb.h trace.h interface.h table.h af.h | |
70 | input.o: /usr/include/sys/syslog.h | |
71 | main.o: main.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h | |
72 | main.o: /usr/include/net/route.h /usr/include/netinet/in.h | |
73 | main.o: /usr/include/protocols/routed.h /usr/include/stdio.h | |
74 | main.o: /usr/include/netdb.h trace.h interface.h table.h af.h | |
75 | main.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
76 | main.o: /usr/include/sys/ttydev.h /usr/include/sys/time.h /usr/include/time.h | |
77 | main.o: /usr/include/net/if.h /usr/include/net/if_arp.h /usr/include/errno.h | |
45c8edda | 78 | main.o: /usr/include/signal.h /usr/include/machine/trap.h /usr/include/syslog.h |
d2748719 KB |
79 | output.o: output.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h |
80 | output.o: /usr/include/net/route.h /usr/include/netinet/in.h | |
81 | output.o: /usr/include/protocols/routed.h /usr/include/stdio.h | |
82 | output.o: /usr/include/netdb.h trace.h interface.h table.h af.h | |
83 | startup.o: startup.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h | |
84 | startup.o: /usr/include/net/route.h /usr/include/netinet/in.h | |
85 | startup.o: /usr/include/protocols/routed.h /usr/include/stdio.h | |
86 | startup.o: /usr/include/netdb.h trace.h interface.h table.h af.h | |
87 | startup.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
88 | startup.o: /usr/include/sys/ttydev.h /usr/include/net/if.h | |
89 | startup.o: /usr/include/net/if_arp.h /usr/include/syslog.h | |
90 | tables.o: tables.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h | |
91 | tables.o: /usr/include/net/route.h /usr/include/netinet/in.h | |
92 | tables.o: /usr/include/protocols/routed.h /usr/include/stdio.h | |
93 | tables.o: /usr/include/netdb.h trace.h interface.h table.h af.h | |
94 | tables.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
95 | tables.o: /usr/include/sys/ttydev.h /usr/include/errno.h /usr/include/syslog.h | |
96 | timer.o: timer.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h | |
97 | timer.o: /usr/include/net/route.h /usr/include/netinet/in.h | |
98 | timer.o: /usr/include/protocols/routed.h /usr/include/stdio.h | |
99 | timer.o: /usr/include/netdb.h trace.h interface.h table.h af.h | |
100 | trace.o: trace.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h | |
101 | trace.o: /usr/include/net/route.h /usr/include/netinet/in.h | |
102 | trace.o: /usr/include/protocols/routed.h /usr/include/stdio.h | |
103 | trace.o: /usr/include/netdb.h trace.h interface.h table.h af.h | |
104 | trace.o: /usr/include/sys/stat.h | |
105 | inet.o: inet.c defs.h /usr/include/sys/types.h /usr/include/sys/socket.h | |
106 | inet.o: /usr/include/net/route.h /usr/include/netinet/in.h | |
107 | inet.o: /usr/include/protocols/routed.h /usr/include/stdio.h | |
108 | inet.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 |