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