9 KTZERO=0xffffffff80110000
10 APBOOTSTRAP=0xffffffff80007000
13 DEVS=`{rc ../port/mkdevlist $CONF}
60 /$objtype/lib/libmemlayer.a\
61 /$objtype/lib/libmemdraw.a\
62 /$objtype/lib/libdraw.a\
63 /$objtype/lib/libip.a\
64 /$objtype/lib/libsec.a\
65 /$objtype/lib/libmp.a\
67 /$objtype/lib/libfis.a\
68 /$objtype/lib/libaml.a\
69 /$objtype/lib/libdtracy.a\
71 ETHER=`{cd ../pc; echo devether.c ether*.c | sed 's/\.c/.'$O'/g'}
72 AUDIO=`{cd ../pc; echo devaudio.c audio*.c | sed 's/\.c/.'$O'/g'}
73 VGA=`{cd ../pc; echo devvga.c screen.c vga*.c | sed 's/\.c/.'$O'/g'}
74 SDEV=`{cd ../pc; echo devsd.c sd*.c | sed 's/\.c/.'$O'/g'}
76 $p$CONF: $CONF.c $OBJ $LIB
77 $CC $CFLAGS '-DKERNDATE='`{date -n} $CONF.c
78 $LD -o $target -T$KTZERO -R4096 -l $OBJ $CONF.$O $LIB
83 for(i in $EXTRACOPIES)
84 import $i / /n/$i && cp $p$CONF $p$CONF.gz /n/$i/$objtype/
87 # copies generated by the rule below
88 PCHEADERS=usbehci.h screen.h mp.h io.h ahci.h \
91 REPCH=`{echo $PCHEADERS | sed 's/\.h//g; s/ /|/g'}
92 ^($REPCH)\.h:R: ../pc/\1.h
95 REPCC=`{../port/mkfilelist ../pc}
96 ^($REPCC)\.$O:R: '../pc/\1.c'
97 $CC $CFLAGS -I. -. ../pc/$stem1.c
101 <|../port/mkbootrules $CONF
105 $ETHER: ../port/etherif.h ../port/netif.h
106 $AUDIO: ../port/audioif.h
107 ether8003.$O ether8390.$O: ether8390.h
108 etheryuk.$O: yukdump.h
109 $VGA mouse.$O: screen.h /sys/include/memdraw.h
110 vgavesa.$O: /386/include/ureg.h
112 mp.$O: mp.h apbootstrap.h
113 apic.$O squidboy.$O: mp.h
114 archmp.$O archacpi.$O: mp.h
118 devaoe.$O sdaoe.$O: ../port/aoe.h
120 main.$O: init.h reboot.h
122 devusb.$O usbuhci.$O usbohci.$O usbehci.$O usbehcipc.$O usbxhci.$O: ../port/usb.h
123 usbehci.$O usbehcipc.$O: usbehci.h
125 trap.$O: /sys/include/tos.h
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
134 etheriwl.$O: ../port/wifi.h
135 etherwpi.$O: ../port/wifi.h
136 etherrt2860.$O: ../port/wifi.h
138 init.h:D: ../port/initcode.c ../pc/init9.c
139 $CC ../port/initcode.c
141 $LD -l -R1 -s -o init.out init9.$O initcode.$O /$objtype/lib/libc.a
142 {echo 'uchar initcode[]={'
144 sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
147 reboot.h:D: rebootcode.s mem.h
149 $LD -l -R1 -s -o reboot.out -T$REBOOTADDR rebootcode.$O
150 {echo 'uchar rebootcode[]={'
151 dd -if reboot.out -bs 1 -iseek 40 |
153 sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
156 apbootstrap.h:D: apbootstrap.s mem.h
158 $LD -l -R1 -s -o apbootstrap.out -T$APBOOTSTRAP apbootstrap.$O
159 {echo 'uchar apbootstrap[]={'
160 dd -if apbootstrap.out -bs 1 -iseek 40 |
162 sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
165 sd53c8xx.i: sd53c8xx.n
166 aux/na $prereq > $target
169 $CC -a -w main.c>acid
172 rm -f $stem.c [9bz]$stem [9bz]$stem.gz boot$stem.* apbootstrap.h reboot.h init.h $PCHEADERS