4 #EXTRACOPIES=lookout boundary # copy to these servers on install
12 APBOOTSTRAP=0xF0007000
15 DEVS=`{rc ../port/mkdevlist $CONF}
64 /$objtype/lib/libmemlayer.a\
65 /$objtype/lib/libmemdraw.a\
66 /$objtype/lib/libdraw.a\
67 /$objtype/lib/libip.a\
69 /$objtype/lib/libsec.a\
70 /$objtype/lib/libmp.a\
71 /$objtype/lib/libfis.a\
72 /$objtype/lib/libaml.a\
73 /$objtype/lib/libdtracy.a\
75 ETHER=`{echo devether.c ether*.c | sed 's/\.c/.'$O'/g'}
76 AUDIO=`{echo devaudio.c audio*.c | sed 's/\.c/.'$O'/g'}
77 VGA=`{echo devvga.c screen.c vga*.c | sed 's/\.c/.'$O'/g'}
78 SDEV=`{echo devsd.c sd*.c | sed 's/\.c/.'$O'/g'}
80 $p$CONF: $OBJ $CONF.$O $LIB
81 $LD -o $target -T$KTZERO -l $prereq
84 # don't strip the gzipped kernels -- too frustrating when that's all you have!
86 gzip -9 <$p$stem >$p$stem.gz
89 # pcflop and pccd need all the space they can get
91 strip -o /fd/1 9pcflop | gzip -9 >9pcflop.gz
94 strip -o /fd/1 9pccd | gzip -9 >9pccd.gz
99 for(i in $EXTRACOPIES)
100 import $i / /n/$i && cp $p$CONF $p$CONF.gz /n/$i/$objtype/
104 <|../port/mkbootrules $CONF
106 $ETHER: ../port/etherif.h ../port/netif.h
107 $AUDIO: ../port/audioif.h
108 ether8003.$O ether8390.$O: ether8390.h
109 etheryuk.$O: yukdump.h
110 $VGA mouse.$O: screen.h /sys/include/memdraw.h
111 vgavesa.$O: /386/include/ureg.h
112 devfloppy.$O: floppy.h
114 apic.$O archmp.$O mp.$O: mp.h
117 sd53c8xx.$O: sd53c8xx.i
119 devaoe.$O sdaoe.$O: ../port/aoe.h
120 main.$O: rebootcode.i
121 wavelan.$O: wavelan.c ../pc/wavelan.c ../pc/wavelan.h
122 etherwavelan.$O: etherwavelan.c ../pc/wavelan.h
123 devusb.$O usbuhci.$O usbohci.$O usbehci.$O usbehcipc.$O usbxhci.$O: ../port/usb.h
124 usbehci.$O usbehcipc.$O: usbehci.h
125 trap.$O main.$O: /sys/include/tos.h
126 uartaxp.$O: uartaxp.i
127 ether8169.$O: ../port/ethermii.h
128 etherdp83820.$O: ../port/ethermii.h
129 etherigbe.$O: ../port/ethermii.h
130 ethervgbe.$O: ../port/ethermii.h
131 ethervt6102.$O: ../port/ethermii.h
132 ethervt6105m.$O: ../port/ethermii.h
133 etherm10g.$O: etherm10g2k.i etherm10g4k.i
134 etheriwl.$O: ../port/wifi.h
135 etherwpi.$O: ../port/wifi.h
136 etherrt2860.$O: ../port/wifi.h
137 l.$O rebootcode.$O apbootstrap.$O: mem.h
139 initcode.out: init9.$O initcode.$O /$objtype/lib/libc.a
140 $LD -l -R1 -s -o $target $prereq
142 rebootcode.out: rebootcode.$O
143 $LD -l -R4 -s -o $target -T$REBOOTADDR -H3 $prereq
145 apbootstrap.out: apbootstrap.$O
146 $LD -l -R4 -s -o $target -T$APBOOTSTRAP -H3 $prereq
148 sd53c8xx.i: sd53c8xx.n
149 aux/na $prereq > $target
152 {echo 'static uchar uartaxpcp[] = {'
154 sed -e 's/^[0-9a-f]+ //' -e '/^$/d' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
158 etherm10g%.i: etherm10g%.fw
159 {echo 'static char fw'^$stem^'[] = {'
161 sed -e 's/^[0-9a-f]+ //' -e '/^$/d' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
166 8c -a -w -I. i8253.c>acid
170 x=`{echo $i | sed 's/\.c//'}
171 if(! ~ $x ether8390 && ! grep -s '^ '^$x^'([ ]|$)' $stem)
172 echo $x not included in $stem
178 x=`{echo $i | sed 's/\.c//'}
179 if(! ~ $x vga vgax vgasavage && ! grep -s '^ '^$x^'([ ]|$)' $stem)
180 echo $x not included in $stem
185 for(i in pcdisk pcflop)
186 for(j in checkvga checkether)