Please wait until the page is fully downloaded and then press the "Expand" button or the blue line numbers.

0001001 # Makefile for inet.
0001002 
0001003 # Directories
0001004 u = /usr
0001005 i = $u/include
0001006 s = $i/sys
0001007 h = $i/minix
0001008 n = $i/net
0001009 g = generic
0001010 
0001011 # Programs, flags, and libraries
0001012 CC =              cc
0001013 CPPFLAGS =       -I. -I..
0001014 CFLAGS =       $(OPT) $(CPPFLAGS) -m
0001015 LDFLAGS =       -i
0001016 LIBS =              -lsys
0001017 
0001018 OBJ =        buf.o clock.o inet.o inet_config.o \
0001019          mnx_eth.o mq.o sr.o stacktrace.o \
0001020          $g/udp.o $g/arp.o $g/eth.o $g/event.o \
0001021          $g/icmp.o $g/io.o $g/ip.o $g/ip_ioctl.o \
0001022          $g/ip_lib.o $g/ip_read.o $g/ip_write.o \
0001023          $g/ipr.o $g/tcp.o $g/tcp_lib.o \
0001024          $g/tcp_recv.o $g/tcp_send.o $g/ip_eth.o \
0001025          $g/ip_ps.o $g/psip.o
0001026 
0001027 all:       inet
0001028 
0001029 inet:       inet.a
0001030          $(CC) -o $@ $(LDFLAGS) inet.a version.c $(LIBS)
0001031          install -S 2kw $@
0001032 
0001033 install:       /usr/bin/inet
0001034 
0001035 /usr/bin/inet:       inet
0001036          install -cs $? $@
0001037 
0001038 inet.a:       $(OBJ)
0001039          @rm -f $@
0001040          aal cr $@ $(OBJ)
0001041 
0001042 clean:
0001043          rm -f $(OBJ) inet.a inet *.bak .all
0001044 
0001045 # Depencencies
0001046 .all:       $h/com.h
0001047 .all:       $h/config.h
0001048 .all:       $h/const.h
0001049 .all:       $h/syslib.h
0001050 .all:       $h/type.h
0001051 .all:       $i/ansi.h
0001052 .all:       $i/errno.h
0001053 .all:       $i/stddef.h
0001054 .all:       $i/stdlib.h
0001055 .all:       $i/string.h
0001056 .all:       $n/gen/eth_hdr.h
0001057 .all:       $n/gen/eth_io.h
0001058 .all:       $n/gen/ether.h
0001059 .all:       $n/gen/icmp.h
0001060 .all:       $n/gen/icmp_hdr.h
0001061 .all:       $n/gen/in.h
0001062 .all:       $n/gen/ip_hdr.h
0001063 .all:       $n/gen/ip_io.h
0001064 .all:       $n/gen/oneCsum.h
0001065 .all:       $n/gen/psip_hdr.h
0001066 .all:       $n/gen/psip_io.h
0001067 .all:       $n/gen/route.h
0001068 .all:       $n/gen/tcp.h
0001069 .all:       $n/gen/tcp_hdr.h
0001070 .all:       $n/gen/tcp_io.h
0001071 .all:       $n/gen/udp.h
0001072 .all:       $n/gen/udp_hdr.h
0001073 .all:       $n/gen/udp_io.h
0001074 .all:       $n/hton.h
0001075 .all:       $s/ioctl.h
0001076 .all:       $s/types.h
0001077 .all:       const.h
0001078 .all:       inet_config.h
0001079 .all:       inet.h
0001080          touch .all
0001081 a =       .all       # Trick to avoid many dependencies (that overload make)
0001082 
0001083 buf.o:       $g/assert.h
0001084 buf.o:       $g/buf.h
0001085 buf.o:       $g/type.h
0001086 buf.o:       $i/stdlib.h
0001087 buf.o:       $i/string.h
0001088 buf.o:       inet.h
0001089 buf.o:       $a
0001090 
0001091 clock.o:       $g/assert.h
0001092 clock.o:       $g/buf.h
0001093 clock.o:       $g/clock.h
0001094 clock.o:       $g/type.h
0001095 clock.o:       inet.h
0001096 clock.o:       proto.h
0001097 clock.o:       $a
0001098 
0001099 inet.o:       $g/arp.h
0001100 inet.o:       $g/assert.h
0001101 inet.o:       $g/buf.h
0001102 inet.o:       $g/clock.h
0001103 inet.o:       $g/eth.h
0001104 inet.o:       $g/event.h
0001105 inet.o:       $g/ip.h
0001106 inet.o:       $g/psip.h
0001107 inet.o:       $g/sr.h
0001108 inet.o:       $g/tcp.h
0001109 inet.o:       $g/type.h
0001110 inet.o:       $g/udp.h
0001111 inet.o:       $i/unistd.h
0001112 inet.o:       $s/svrctl.h
0001113 inet.o:       inet.h
0001114 inet.o:       mq.h
0001115 inet.o:       proto.h
0001116 inet.o:       $a
0001117 
0001118 inet_config.o:       $i/unistd.h
0001119 inet_config.o:       $i/fcntl.h
0001120 inet_config.o:       $s/stat.h
0001121 inet_config.o:       $a
0001122 
0001123 mnx_eth.o:       $g/assert.h
0001124 mnx_eth.o:       $g/buf.h
0001125 mnx_eth.o:       $g/clock.h
0001126 mnx_eth.o:       $g/eth.h
0001127 mnx_eth.o:       $g/eth_int.h
0001128 mnx_eth.o:       $g/sr.h
0001129 mnx_eth.o:       $g/type.h
0001130 mnx_eth.o:       inet.h
0001131 mnx_eth.o:       osdep_eth.h
0001132 mnx_eth.o:       $g/event.h
0001133 mnx_eth.o:       proto.h
0001134 mnx_eth.o:       $a
0001135 
0001136 mq.o:       $g/assert.h
0001137 mq.o:       inet.h
0001138 mq.o:       mq.h
0001139 mq.o:       $a
0001140 
0001141 sr.o:       $g/assert.h
0001142 sr.o:       $g/buf.h
0001143 sr.o:       $g/sr.h
0001144 sr.o:       $g/type.h
0001145 sr.o:       $h/callnr.h
0001146 sr.o:       inet.h
0001147 sr.o:       mq.h
0001148 sr.o:       proto.h
0001149 sr.o:       $a
0001150 
0001151 stacktrace.o:       inet.h
0001152 stacktrace.o:       $a
0001153 
0001154 $g/arp.o:       $g/arp.h
0001155 $g/arp.o:       $g/assert.h
0001156 $g/arp.o:       $g/buf.h
0001157 $g/arp.o:       $g/clock.h
0001158 $g/arp.o:       $g/eth.h
0001159 $g/arp.o:       inet.h
0001160 $g/arp.o:       $g/io.h
0001161 $g/arp.o:       $g/sr.h
0001162 $g/arp.o:       $g/type.h
0001163 $g/arp.o:       $a
0001164 $g/arp.o:       $g/arp.c
0001165          cd generic && $(CC) -c $(CFLAGS) arp.c
0001166 
0001167 $g/eth.o:       $g/assert.h
0001168 $g/eth.o:       $g/buf.h
0001169 $g/eth.o:       $g/buf.h
0001170 $g/eth.o:       $g/clock.h
0001171 $g/eth.o:       $g/eth.h
0001172 $g/eth.o:       $g/eth_int.h
0001173 $g/eth.o:       $g/event.h
0001174 $g/eth.o:       inet.h
0001175 $g/eth.o:       $g/io.h
0001176 $g/eth.o:       osdep_eth.h
0001177 $g/eth.o:       $g/event.h
0001178 $g/eth.o:       $g/sr.h
0001179 $g/eth.o:       $g/type.h
0001180 $g/eth.o:       $a
0001181 $g/eth.o:       $g/eth.c
0001182          cd generic && $(CC) -c $(CFLAGS) eth.c
0001183 
0001184 $g/event.o:       $g/assert.h
0001185 $g/event.o:       $g/event.h
0001186 $g/event.o:       inet.h
0001187 $g/event.o:       $a
0001188 $g/event.o:       $g/event.c
0001189          cd generic && $(CC) -c $(CFLAGS) event.c
0001190 
0001191 $g/icmp.o:       $g/assert.h
0001192 $g/icmp.o:       $g/buf.h
0001193 $g/icmp.o:       $g/event.h
0001194 $g/icmp.o:       $g/icmp.h
0001195 $g/icmp.o:       $g/icmp_lib.h
0001196 $g/icmp.o:       inet.h
0001197 $g/icmp.o:       $g/io.h
0001198 $g/icmp.o:       $g/ip.h
0001199 $g/icmp.o:       $g/ip_int.h
0001200 $g/icmp.o:       $g/ipr.h
0001201 $g/icmp.o:       $g/type.h
0001202 $g/icmp.o:       $a
0001203 $g/icmp.o:       $g/icmp.c
0001204          cd generic && $(CC) -c $(CFLAGS) icmp.c
0001205 
0001206 $g/io.o:       $i/stdlib.h
0001207 $g/io.o:       inet.h
0001208 $g/io.o:       $g/io.h
0001209 $g/io.o:       $a
0001210 $g/io.o:       $g/io.c
0001211          cd generic && $(CC) -c $(CFLAGS) io.c
0001212 
0001213 $g/ip.o:       $g/arp.h
0001214 $g/ip.o:       $g/assert.h
0001215 $g/ip.o:       $g/buf.h
0001216 $g/ip.o:       $g/clock.h
0001217 $g/ip.o:       $g/eth.h
0001218 $g/ip.o:       $g/event.h
0001219 $g/ip.o:       $g/icmp.h
0001220 $g/ip.o:       $g/icmp_lib.h
0001221 $g/ip.o:       inet.h
0001222 $g/ip.o:       $g/io.h
0001223 $g/ip.o:       $g/ip.h
0001224 $g/ip.o:       $g/ip_int.h
0001225 $g/ip.o:       $g/ipr.h
0001226 $g/ip.o:       $g/sr.h
0001227 $g/ip.o:       $g/type.h
0001228 $g/ip.o:       $a
0001229 $g/ip.o:       $g/ip.c
0001230          cd generic && $(CC) -c $(CFLAGS) ip.c
0001231 
0001232 $g/ip_eth.o:       $g/arp.h
0001233 $g/ip_eth.o:       $g/assert.h
0001234 $g/ip_eth.o:       $g/buf.h
0001235 $g/ip_eth.o:       $g/clock.h
0001236 $g/ip_eth.o:       $g/eth.h
0001237 $g/ip_eth.o:       $g/event.h
0001238 $g/ip_eth.o:       inet.h
0001239 $g/ip_eth.o:       $g/ip.h
0001240 $g/ip_eth.o:       $g/ip_int.h
0001241 $g/ip_eth.o:       $g/type.h
0001242 $g/ip_eth.o:       $a
0001243 $g/ip_eth.o:       $g/ip_eth.c
0001244          cd generic && $(CC) -c $(CFLAGS) ip_eth.c
0001245 
0001246 $g/ip_ioctl.o:       $g/arp.h
0001247 $g/ip_ioctl.o:       $g/assert.h
0001248 $g/ip_ioctl.o:       $g/buf.h
0001249 $g/ip_ioctl.o:       $g/clock.h
0001250 $g/ip_ioctl.o:       $g/event.h
0001251 $g/ip_ioctl.o:       $g/icmp_lib.h
0001252 $g/ip_ioctl.o:       inet.h
0001253 $g/ip_ioctl.o:       $g/ip.h
0001254 $g/ip_ioctl.o:       $g/ip_int.h
0001255 $g/ip_ioctl.o:       $g/ipr.h
0001256 $g/ip_ioctl.o:       $g/type.h
0001257 $g/ip_ioctl.o:       $a
0001258 $g/ip_ioctl.o:       $g/ip_ioctl.c
0001259          cd generic && $(CC) -c $(CFLAGS) ip_ioctl.c
0001260 
0001261 $g/ip_lib.o:       $g/assert.h
0001262 $g/ip_lib.o:       $g/buf.h
0001263 $g/ip_lib.o:       $g/event.h
0001264 $g/ip_lib.o:       inet.h
0001265 $g/ip_lib.o:       $g/io.h
0001266 $g/ip_lib.o:       $g/ip_int.h
0001267 $g/ip_lib.o:       $g/type.h
0001268 $g/ip_lib.o:       $a
0001269 $g/ip_lib.o:       $g/ip_lib.c
0001270          cd generic && $(CC) -c $(CFLAGS) ip_lib.c
0001271 
0001272 $g/ip_ps.o:       $g/assert.h
0001273 $g/ip_ps.o:       $g/buf.h
0001274 $g/ip_ps.o:       $g/event.h
0001275 $g/ip_ps.o:       inet.h
0001276 $g/ip_ps.o:       $g/ip.h
0001277 $g/ip_ps.o:       $g/ip_int.h
0001278 $g/ip_ps.o:       $g/psip.h
0001279 $g/ip_ps.o:       $g/type.h
0001280 $g/ip_ps.o:       $a
0001281 $g/ip_ps.o:       $g/ip_ps.c
0001282          cd generic && $(CC) -c $(CFLAGS) ip_ps.c
0001283 
0001284 $g/ip_read.o:       $g/assert.h
0001285 $g/ip_read.o:       $g/buf.h
0001286 $g/ip_read.o:       $g/clock.h
0001287 $g/ip_read.o:       $g/event.h
0001288 $g/ip_read.o:       $g/icmp_lib.h
0001289 $g/ip_read.o:       inet.h
0001290 $g/ip_read.o:       $g/io.h
0001291 $g/ip_read.o:       $g/ip.h
0001292 $g/ip_read.o:       $g/ip_int.h
0001293 $g/ip_read.o:       $g/ipr.h
0001294 $g/ip_read.o:       $g/type.h
0001295 $g/ip_read.o:       $a
0001296 $g/ip_read.o:       $g/ip_read.c
0001297          cd generic && $(CC) -c $(CFLAGS) ip_read.c
0001298 
0001299 $g/ip_write.o:       $g/arp.h
0001300 $g/ip_write.o:       $g/assert.h
0001301 $g/ip_write.o:       $g/buf.h
0001302 $g/ip_write.o:       $g/clock.h
0001303 $g/ip_write.o:       $g/eth.h
0001304 $g/ip_write.o:       $g/event.h
0001305 $g/ip_write.o:       $g/icmp_lib.h
0001306 $g/ip_write.o:       inet.h
0001307 $g/ip_write.o:       $g/io.h
0001308 $g/ip_write.o:       $g/ip.h
0001309 $g/ip_write.o:       $g/ip_int.h
0001310 $g/ip_write.o:       $g/ipr.h
0001311 $g/ip_write.o:       $g/type.h
0001312 $g/ip_write.o:       $a
0001313 $g/ip_write.o:       $g/ip_write.c
0001314          cd generic && $(CC) -c $(CFLAGS) ip_write.c
0001315 
0001316 $g/ipr.o:       $g/assert.h
0001317 $g/ipr.o:       $g/buf.h
0001318 $g/ipr.o:       $g/clock.h
0001319 $g/ipr.o:       $g/event.h
0001320 $g/ipr.o:       inet.h
0001321 $g/ipr.o:       $g/io.h
0001322 $g/ipr.o:       $g/ip_int.h
0001323 $g/ipr.o:       $g/ipr.h
0001324 $g/ipr.o:       $g/type.h
0001325 $g/ipr.o:       $a
0001326 $g/ipr.o:       $g/ipr.c
0001327          cd generic && $(CC) -c $(CFLAGS) ipr.c
0001328 
0001329 $g/psip.o:       $g/assert.h
0001330 $g/psip.o:       $g/buf.h
0001331 $g/psip.o:       $g/event.h
0001332 $g/psip.o:       inet.h
0001333 $g/psip.o:       $g/ip_int.h
0001334 $g/psip.o:       $g/psip.h
0001335 $g/psip.o:       $g/sr.h
0001336 $g/psip.o:       $g/type.h
0001337 $g/psip.o:       $a
0001338 $g/psip.o:       $g/psip.c
0001339          cd generic && $(CC) -c $(CFLAGS) psip.c
0001340 
0001341 $g/tcp.o:       $g/assert.h
0001342 $g/tcp.o:       $g/buf.h
0001343 $g/tcp.o:       $g/clock.h
0001344 $g/tcp.o:       $g/event.h
0001345 $g/tcp.o:       inet.h
0001346 $g/tcp.o:       $g/io.h
0001347 $g/tcp.o:       $g/ip.h
0001348 $g/tcp.o:       $g/sr.h
0001349 $g/tcp.o:       $g/tcp.h
0001350 $g/tcp.o:       $g/tcp_int.h
0001351 $g/tcp.o:       $g/type.h
0001352 $g/tcp.o:       $a
0001353 $g/tcp.o:       $g/tcp.c
0001354          cd generic && $(CC) -c $(CFLAGS) tcp.c
0001355 
0001356 $g/tcp_lib.o:       $g/assert.h
0001357 $g/tcp_lib.o:       $g/buf.h
0001358 $g/tcp_lib.o:       $g/clock.h
0001359 $g/tcp_lib.o:       $g/event.h
0001360 $g/tcp_lib.o:       inet.h
0001361 $g/tcp_lib.o:       $g/io.h
0001362 $g/tcp_lib.o:       $g/tcp_int.h
0001363 $g/tcp_lib.o:       $g/type.h
0001364 $g/tcp_lib.o:       $a
0001365 $g/tcp_lib.o:       $g/tcp_lib.c
0001366          cd generic && $(CC) -c $(CFLAGS) tcp_lib.c
0001367 
0001368 $g/tcp_recv.o:       $g/assert.h
0001369 $g/tcp_recv.o:       $g/buf.h
0001370 $g/tcp_recv.o:       $g/clock.h
0001371 $g/tcp_recv.o:       $g/event.h
0001372 $g/tcp_recv.o:       inet.h
0001373 $g/tcp_recv.o:       $g/io.h
0001374 $g/tcp_recv.o:       $g/tcp.h
0001375 $g/tcp_recv.o:       $g/tcp_int.h
0001376 $g/tcp_recv.o:       $g/type.h
0001377 $g/tcp_recv.o:       $a
0001378 $g/tcp_recv.o:       $g/tcp_recv.c
0001379          cd generic && $(CC) -c $(CFLAGS) tcp_recv.c
0001380 
0001381 $g/tcp_send.o:       $g/assert.h
0001382 $g/tcp_send.o:       $g/buf.h
0001383 $g/tcp_send.o:       $g/clock.h
0001384 $g/tcp_send.o:       $g/event.h
0001385 $g/tcp_send.o:       inet.h
0001386 $g/tcp_send.o:       $g/io.h
0001387 $g/tcp_send.o:       $g/ip.h
0001388 $g/tcp_send.o:       $g/tcp.h
0001389 $g/tcp_send.o:       $g/tcp_int.h
0001390 $g/tcp_send.o:       $g/type.h
0001391 $g/tcp_send.o:       $a
0001392 $g/tcp_send.o:       $g/tcp_send.c
0001393          cd generic && $(CC) -c $(CFLAGS) tcp_send.c
0001394 
0001395 $g/udp.o:       $g/assert.h
0001396 $g/udp.o:       $g/buf.h
0001397 $g/udp.o:       $g/clock.h
0001398 $g/udp.o:       $g/icmp_lib.h
0001399 $g/udp.o:       inet.h
0001400 $g/udp.o:       $g/io.h
0001401 $g/udp.o:       $g/ip.h
0001402 $g/udp.o:       $g/sr.h
0001403 $g/udp.o:       $g/type.h
0001404 $g/udp.o:       $g/udp.h
0001405 $g/udp.o:       $a
0001406 $g/udp.o:       $g/udp.c
0001407          cd generic && $(CC) -c $(CFLAGS) udp.c