~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Minix Cross Reference
Minix/inet/Makefile


  1 # Makefile for inet
  2 
  3 # Programs, flags, etc.
  4 CC = mcc
  5 CFLAGS = -I. -I.. -I$i 
  6 LDFLAGS = -Minet.map -dn -e crt_server
  7 LIB = $(MX_LIB)
  8 
  9 # Directories
 10 i = $(MX_INCL)
 11 s = $i/sys
 12 h = $i/minix
 13 n = $i/net
 14 g = generic
 15 
 16 
 17 OBJ =   buf.o clock.o mnx_eth.o mq.o inet.o sr.o \
 18         $g/arp.o $g/eth.o $g/icmp.o $g/io.o \
 19         $g/ip.o $g/ip_ioctl.o $g/ip_lib.o \
 20         $g/ip_read.o $g/ip_write.o $g/ipr.o \
 21         $g/tcp.o $g/tcp_lib.o $g/tcp_recv.o \
 22         $g/tcp_send.o $g/udp.o putk.o
 23 
 24 inet:   $(OBJ) $(LIB)/head.o $(LIB)/libc.a inet.map
 25         $(LD)  $(LDFLAGS) -o inet.elf $(LIB)/head.o $(OBJ) $(LIB)/libc.a
 26         elf2smx -S 10kw inet.elf inet
 27         rm inet.elf
 28         minix_combine
 29 
 30 
 31 clean:
 32         rm -f inet inet.elf inet.map *.o generic/*.o
 33 
 34 inet.map: ../fs/fs
 35         make_map_file <../fs/fs >inet.map
 36 
 37 # Depencencies
 38 .all:   const.h
 39 .all:   $s/ioctl.h
 40 .all:   $n/gen/udp_io.h
 41 .all:   $n/gen/udp_hdr.h
 42 .all:   $n/gen/udp.h
 43 .all:   $n/gen/tcp_io.h
 44 .all:   $n/gen/tcp_hdr.h
 45 .all:   $n/gen/tcp.h
 46 .all:   $n/gen/route.h
 47 .all:   $n/gen/oneCsum.h
 48 .all:   $n/gen/icmp_hdr.h
 49 .all:   $n/gen/icmp.h
 50 .all:   $n/gen/ip_io.h
 51 .all:   $n/gen/ip_hdr.h
 52 .all:   $n/gen/in.h
 53 .all:   $n/gen/eth_io.h
 54 .all:   $n/gen/eth_hdr.h
 55 .all:   $n/gen/ether.h
 56 .all:   $n/hton.h
 57 .all:   $h/syslib.h
 58 .all:   $h/const.h
 59 .all:   $h/com.h
 60 .all:   $h/type.h
 61 .all:   $h/config.h
 62 .all:   $i/string.h
 63 .all:   $i/stdlib.h
 64 .all:   $i/stddef.h
 65 .all:   $i/errno.h
 66 .all:   $i/ansi.h
 67 .all:   $s/types.h
 68 .all:   inet.h
 69         touch .all
 70 a =     .all    # Trick to avoid many dependencies (that overload make)
 71 
 72 buf.o:  $g/type.h
 73 buf.o:  $g/buf.h
 74 buf.o:  $g/assert.h
 75 buf.o:  $i/string.h
 76 buf.o:  $i/stdlib.h
 77 buf.o:  $a
 78 
 79 clock.o:        $g/type.h
 80 clock.o:        $g/clock.h
 81 clock.o:        $g/buf.h
 82 clock.o:        $g/assert.h
 83 clock.o:        proto.h
 84 clock.o:        $a
 85 
 86 mnx_eth.o:      $g/sr.h
 87 mnx_eth.o:      $g/eth_int.h
 88 mnx_eth.o:      $g/eth.h
 89 mnx_eth.o:      $g/clock.h
 90 mnx_eth.o:      osdep_eth.h
 91 mnx_eth.o:      $g/buf.h
 92 mnx_eth.o:      $g/assert.h
 93 mnx_eth.o:      proto.h
 94 mnx_eth.o:      $a
 95 
 96 mq.o:   mq.h
 97 mq.o:   $a
 98 
 99 inet.o: $i/unistd.h
100 inet.o: $g/udp.h
101 inet.o: $g/type.h
102 inet.o: $g/tcp.h
103 inet.o: $g/sr.h
104 inet.o: $g/ip.h
105 inet.o: $g/eth.h
106 inet.o: $g/clock.h
107 inet.o: $g/buf.h
108 inet.o: $g/arp.h
109 inet.o: $g/assert.h
110 inet.o: proto.h
111 inet.o: mq.h
112 inet.o: $h/callnr.h
113 inet.o: $i/limits.h
114 inet.o: config.h
115 inet.o: $a
116 
117 putk.o: $a
118 
119 sr.o:   $g/type.h
120 sr.o:   $g/sr.h
121 sr.o:   $g/buf.h
122 sr.o:   $g/assert.h
123 sr.o:   proto.h
124 sr.o:   mq.h
125 sr.o:   $h/callnr.h
126 sr.o:   $a
127 
128 $g/arp.o:       $g/type.h
129 $g/arp.o:       $g/sr.h
130 $g/arp.o:       $g/io.h
131 $g/arp.o:       $g/eth.h
132 $g/arp.o:       $g/clock.h
133 $g/arp.o:       $g/buf.h
134 $g/arp.o:       $g/assert.h
135 $g/arp.o:       $g/arp.h
136 $g/arp.o:       $a
137 $g/arp.o:       $g/arp.c
138         cd generic; $(CC) -c $(CFLAGS) arp.c
139 
140 $g/eth.o:       $g/type.h
141 $g/eth.o:       $g/sr.h
142 $g/eth.o:       $g/io.h
143 $g/eth.o:       $g/eth_int.h
144 $g/eth.o:       $g/eth.h
145 $g/eth.o:       $g/assert.h
146 $g/eth.o:       osdep_eth.h
147 $g/eth.o:       $g/clock.h
148 $g/eth.o:       $g/buf.h
149 $g/eth.o:       $a
150 $g/eth.o:       $g/eth.c
151         cd generic; $(CC) -c $(CFLAGS) eth.c
152 
153 $g/icmp.o:      $g/ipr.h
154 $g/icmp.o:      $g/ip_int.h
155 $g/icmp.o:      $g/ip.h
156 $g/icmp.o:      $g/io.h
157 $g/icmp.o:      $g/icmp_lib.h
158 $g/icmp.o:      $g/icmp.h
159 $g/icmp.o:      $g/clock.h
160 $g/icmp.o:      $g/assert.h
161 $g/icmp.o:      $g/type.h
162 $g/icmp.o:      $g/buf.h
163 $g/icmp.o:      $a
164 $g/icmp.o:      $g/icmp.c
165         cd generic; $(CC) -c $(CFLAGS) icmp.c
166 
167 $g/io.o:        $g/io.h
168 $g/io.o:        $a
169 $g/io.o:        $g/io.c
170         cd generic; $(CC) -c $(CFLAGS) io.c
171 
172 $g/ip.o:        $g/sr.h
173 $g/ip.o:        $g/ipr.h
174 $g/ip.o:        $g/ip_int.h
175 $g/ip.o:        $g/ip.h
176 $g/ip.o:        $g/io.h
177 $g/ip.o:        $g/icmp_lib.h
178 $g/ip.o:        $g/icmp.h
179 $g/ip.o:        $g/eth.h
180 $g/ip.o:        $g/clock.h
181 $g/ip.o:        $g/assert.h
182 $g/ip.o:        $g/arp.h
183 $g/ip.o:        $g/type.h
184 $g/ip.o:        $g/buf.h
185 $g/ip.o:        $a
186 $g/ip.o:        $g/ip.c
187         cd generic; $(CC) -c $(CFLAGS) ip.c
188 
189 $g/ip_ioctl.o:  $g/ipr.h
190 $g/ip_ioctl.o:  $g/ip_int.h
191 $g/ip_ioctl.o:  $g/ip.h
192 $g/ip_ioctl.o:  $g/icmp_lib.h
193 $g/ip_ioctl.o:  $g/clock.h
194 $g/ip_ioctl.o:  $g/assert.h
195 $g/ip_ioctl.o:  $g/arp.h
196 $g/ip_ioctl.o:  $g/type.h
197 $g/ip_ioctl.o:  $g/buf.h
198 $g/ip_ioctl.o:  $a
199 $g/ip_ioctl.o:  $g/ip_ioctl.c
200         cd generic; $(CC) -c $(CFLAGS) ip_ioctl.c
201 
202 $g/ip_lib.o:    $g/ip_int.h
203 $g/ip_lib.o:    $g/io.h
204 $g/ip_lib.o:    $g/assert.h
205 $g/ip_lib.o:    $g/type.h
206 $g/ip_lib.o:    $g/buf.h
207 $g/ip_lib.o:    $a
208 $g/ip_lib.o:    $g/ip_lib.c
209         cd generic; $(CC) -c $(CFLAGS) ip_lib.c
210 
211 $g/ip_read.o:   $g/ip_int.h
212 $g/ip_read.o:   $g/ip.h
213 $g/ip_read.o:   $g/io.h
214 $g/ip_read.o:   $g/icmp_lib.h
215 $g/ip_read.o:   $g/assert.h
216 $g/ip_read.o:   $g/type.h
217 $g/ip_read.o:   $g/clock.h
218 $g/ip_read.o:   $g/buf.h
219 $g/ip_read.o:   $a
220 $g/ip_read.o:   $g/ip_read.c
221         cd generic; $(CC) -c $(CFLAGS) ip_read.c
222 
223 $g/ip_write.o:  $g/ipr.h
224 $g/ip_write.o:  $g/ip_int.h
225 $g/ip_write.o:  $g/ip.h
226 $g/ip_write.o:  $g/io.h
227 $g/ip_write.o:  $g/icmp_lib.h
228 $g/ip_write.o:  $g/eth.h
229 $g/ip_write.o:  $g/clock.h
230 $g/ip_write.o:  $g/assert.h
231 $g/ip_write.o:  $g/arp.h
232 $g/ip_write.o:  $g/type.h
233 $g/ip_write.o:  $g/buf.h
234 $g/ip_write.o:  $a
235 $g/ip_write.o:  $g/ip_write.c
236         cd generic; $(CC) -c $(CFLAGS) ip_write.c
237 
238 $g/ipr.o:       $g/ipr.h
239 $g/ipr.o:       $g/io.h
240 $g/ipr.o:       $g/assert.h
241 $g/ipr.o:       $g/clock.h
242 $g/ipr.o:       $a
243 $g/ipr.o:       $g/ipr.c
244         cd generic; $(CC) -c $(CFLAGS) ipr.c
245 
246 $g/tcp.o:       $g/tcp_int.h
247 $g/tcp.o:       $g/tcp.h
248 $g/tcp.o:       $g/assert.h
249 $g/tcp.o:       $g/sr.h
250 $g/tcp.o:       $g/ip.h
251 $g/tcp.o:       $g/io.h
252 $g/tcp.o:       $g/type.h
253 $g/tcp.o:       $g/clock.h
254 $g/tcp.o:       $g/buf.h
255 $g/tcp.o:       $a
256 $g/tcp.o:       $g/tcp.c
257         cd generic; $(CC) -c $(CFLAGS) tcp.c
258 
259 $g/tcp_lib.o:   $g/tcp_int.h
260 $g/tcp_lib.o:   $g/assert.h
261 $g/tcp_lib.o:   $g/type.h
262 $g/tcp_lib.o:   $g/io.h
263 $g/tcp_lib.o:   $g/clock.h
264 $g/tcp_lib.o:   $g/buf.h
265 $g/tcp_lib.o:   $a
266 $g/tcp_lib.o:   $g/tcp_lib.c
267         cd generic; $(CC) -c $(CFLAGS) tcp_lib.c
268 
269 $g/tcp_recv.o:  $g/assert.h
270 $g/tcp_recv.o:  $g/tcp.h
271 $g/tcp_recv.o:  $g/tcp_int.h
272 $g/tcp_recv.o:  $g/type.h
273 $g/tcp_recv.o:  $g/clock.h
274 $g/tcp_recv.o:  $g/buf.h
275 $g/tcp_recv.o:  $a
276 $g/tcp_recv.o:  $g/tcp_recv.c
277         cd generic; $(CC) -c $(CFLAGS) tcp_recv.c
278 
279 $g/tcp_send.o:  $g/tcp_int.h
280 $g/tcp_send.o:  $g/tcp.h
281 $g/tcp_send.o:  $g/clock.h
282 $g/tcp_send.o:  $g/assert.h
283 $g/tcp_send.o:  $g/type.h
284 $g/tcp_send.o:  $g/buf.h
285 $g/tcp_send.o:  $g/ip.h
286 $g/tcp_send.o:  $a
287 $g/tcp_send.o:  $g/tcp_send.c
288         cd generic; $(CC) -c $(CFLAGS) tcp_send.c
289 
290 $g/udp.o:       $g/assert.h
291 $g/udp.o:       $g/buf.h
292 $g/udp.o:       $g/clock.h
293 $g/udp.o:       $g/io.h
294 $g/udp.o:       $g/ip.h
295 $g/udp.o:       $g/sr.h
296 $g/udp.o:       $g/type.h
297 $g/udp.o:       $g/udp.h
298 $g/udp.o:       $a
299 $g/udp.o:       $g/udp.c
300         cd generic; $(CC) -c $(CFLAGS) udp.c

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.