V8/usr/sys/boot/bb/Makefile
ALL= htboot tmboot tsboot hpboot hkboot upboot noboot \
httoggle tmtoggle tstoggle 1kboot 4kboot
all: ${ALL}
htboot: htboot.s
as htboot.s
nm -u a.out
strip a.out
dd if=a.out of=b.out bs=32 skip=1
dd if=b.out of=htboot conv=sync
tmboot: tmboot.s
as tmboot.s
nm -u a.out
strip a.out
dd if=a.out of=b.out bs=32 skip=1
dd if=b.out of=tmboot conv=sync
tsboot: tsboot.s
as tsboot.s
nm -u a.out
strip a.out
dd if=a.out of=b.out bs=32 skip=1
dd if=b.out of=tsboot conv=sync
hpboot: hpboot.s
as hpboot.s
nm -u a.out
strip a.out
dd if=a.out bs=32 skip=1 of=b.out
dd if=b.out of=hpboot conv=sync
hkboot: hkboot.s
as hkboot.s
nm -u a.out
strip a.out
dd if=a.out bs=32 skip=1 of=b.out
dd if=b.out of=hkboot conv=sync
upboot: upboot.s
as upboot.s
nm -u a.out
strip a.out
dd if=a.out bs=32 skip=1 of=b.out
dd if=b.out of=upboot conv=sync
httoggle: httoggle.s
as httoggle.s
nm -u a.out
strip a.out
dd if=a.out bs=32 skip=1 of=httoggle
tstoggle: tstoggle.s
as tstoggle.s
nm -u a.out
strip a.out
dd if=a.out bs=32 skip=1 of=tstoggle
tmtoggle: tmtoggle.s
as tmtoggle.s
nm -u a.out
strip a.out
dd if=a.out bs=32 skip=1 of=tmtoggle
noboot:
echo | dd of=noboot conv=sync
1kboot: 1k.s bblock.s
as 1k.s bblock.s
strip a.out
dd <a.out >1kboot bs=32 skip=1
4kboot: 4k.s bblock.s
as 4k.s bblock.s
strip a.out
dd <a.out >4kboot bs=32 skip=1
clean:
rm -f a.out b.out ${ALL}
install:
cp *boot /usr/mdec
rm -f /usr/mdec/mboot
ln /usr/mdec/htboot /usr/mdec/mboot
rm -f /usr/mdec/uboot
ln /usr/mdec/hpboot /usr/mdec/uboot