9 KTZERO=0xffffffff80110000
10 APBOOTSTRAP=0xffffffff80007000
13 DEVS=`{rc ../port/mkdevlist $CONF}
61 /$objtype/lib/libmemlayer.a\
62 /$objtype/lib/libmemdraw.a\
63 /$objtype/lib/libdraw.a\
64 /$objtype/lib/libip.a\
65 /$objtype/lib/libsec.a\
66 /$objtype/lib/libmp.a\
68 /$objtype/lib/libfis.a\
69 /$objtype/lib/libaml.a\
70 /$objtype/lib/libdtracy.a\
72 ETHER=`{cd ../pc; echo devether.c ether*.c | sed 's/\.c/.'$O'/g'}
73 AUDIO=`{cd ../pc; echo devaudio.c audio*.c | sed 's/\.c/.'$O'/g'}
74 VGA=`{cd ../pc; echo devvga.c screen.c vga*.c | sed 's/\.c/.'$O'/g'}
75 SDEV=`{cd ../pc; echo devsd.c sd*.c | sed 's/\.c/.'$O'/g'}
77 $p$CONF: $CONF.c $OBJ $LIB
78 $CC $CFLAGS '-DKERNDATE='`{date -n} $CONF.c
79 $LD -o $target -T$KTZERO -R4096 -l $OBJ $CONF.$O $LIB
84 for(i in $EXTRACOPIES)
85 import $i / /n/$i && cp $p$CONF $p$CONF.gz /n/$i/$objtype/
88 # copies generated by the rule below
89 PCHEADERS=usbehci.h screen.h mp.h io.h ahci.h \
92 REPCH=`{echo $PCHEADERS | sed 's/\.h//g; s/ /|/g'}
93 ^($REPCH)\.h:R: ../pc/\1.h
96 REPCC=`{../port/mkfilelist ../pc}
97 ^($REPCC)\.$O:R: '../pc/\1.c'
98 $CC $CFLAGS -I. -. ../pc/$stem1.c
102 <|../port/mkbootrules $CONF
104 l.$O rebootcode.$O apbootstrap.$O: mem.h
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
113 mp.$O: mp.h apbootstrap.i
114 apic.$O squidboy.$O: mp.h
115 archmp.$O archacpi.$O: mp.h
117 sd53c8xx.$O: ../pc/sd53c8xx.i
118 ../pc/sd53c8xx.i: ../pc/sd53c8xx.n
119 cd ../pc && mk sd53c8xx.i
123 devaoe.$O sdaoe.$O: ../port/aoe.h
124 main.$O: rebootcode.i
126 devusb.$O usbuhci.$O usbohci.$O usbehci.$O usbehcipc.$O usbxhci.$O: ../port/usb.h
127 usbehci.$O usbehcipc.$O: usbehci.h
129 trap.$O main.$O: /sys/include/tos.h
131 ether8169.$O: ../port/ethermii.h
132 etherdp83820.$O: ../port/ethermii.h
133 etherigbe.$O: ../port/ethermii.h
134 ethervgbe.$O: ../port/ethermii.h
135 ethervt6102.$O: ../port/ethermii.h
136 ethervt6105m.$O: ../port/ethermii.h
138 etheriwl.$O: ../port/wifi.h
139 etherwpi.$O: ../port/wifi.h
140 etherrt2860.$O: ../port/wifi.h
142 initcode.out: init9.$O initcode.$O /$objtype/lib/libc.a
143 $LD -l -R1 -s -o $target $prereq
145 $O.rebootcode: rebootcode.$O
146 $LD -l -R1 -s -o $target -T$REBOOTADDR $prereq
147 rebootcode.out: $O.rebootcode
148 dd -if $prereq(1) -of $target -bs 1 -iseek 40
150 $O.apbootstrap: apbootstrap.$O
151 $LD -l -R1 -s -o $target -T$APBOOTSTRAP $prereq
152 apbootstrap.out: $O.apbootstrap
153 dd -if $prereq(1) -of $target -bs 1 -iseek 40
155 sd53c8xx.i: sd53c8xx.n
156 aux/na $prereq > $target
159 $CC -a -w main.c>acid
162 rm -f $stem.c [9bz]$stem [9bz]$stem.gz boot$stem.* $O.rebootcode $O.apbootstrap $PCHEADERS