5 TARG=9bootiso 9bootpxe 9bootfat 9boothyb mbr pbs
7 HFILES=mem.h fns.h x16.h
9 all: 9bootiso 9bootpxe 9bootfat 9boothyb mbr pbs
12 rm -rf $TARG *.$O test.* tmp
15 $AS -DISO -o $target l.s
18 $AS -DPXE -o $target l.s
21 $AS -DFAT -o $target l.s
24 $AS -DFAT -o $target l.s
27 $CC $CFLAGS -DFAT -o $target iso.c
38 $LD -o $target -H3 -T0x0600 -l $prereq
42 $LD -o $target -H3 -T0x0800 -l $prereq
45 9boot&: l%.$O %.$O sub.$O apm.$O e820.$O a20.$O uart.$O
46 $LD -o $target -H3 -T0x7c00 -l $prereq
51 mk $MKFLAGS $i.install
59 test.iso: 9bootiso 9boothyb 9bootfat mbr pbs
66 cp /sys/lib/dist/cfg/plan9.ini tmp/cfg/plan9.ini
67 echo wait >>tmp/cfg/plan9.ini
68 disk/mk9660 -B 386/9bootiso -p <{echo +} -s tmp $target
70 bind 9boothyb 9bootfat
71 dd -if /dev/zero -bs 512 -count 4096 >> $target
72 disk/partfs -m /n/partfs $target
74 disk/mbr -m mbr $disk/data
79 echo q} | disk/fdisk -b $disk/data
80 disk/format -b pbs -d -r 1 $disk/dos 9bootfat
84 test.dsk: 9bootfat mbr pbs test.iso
87 cp test.iso 9bootfat tmp
90 echo 'bootfile=/386/9pcf' >tmp/plan9.ini
91 dd -if /dev/zero -of $target -bs 512 -count 32768
92 disk/partfs -m /n/$target $target
94 disk/mbr -m mbr $disk/data
95 disk/fdisk -baw $disk/data
96 disk/prep -bw -a 9fat $disk/plan9
97 disk/format -b pbs -d -r 2 $disk/9fat
101 dossrv -f $disk/9fat $s
103 @{cd tmp; tar c .} | @{cd $m; tar xv}