2019-03-24 19:30:49 +01:00
|
|
|
default: kernel.com
|
|
|
|
|
2019-03-28 00:07:04 +01:00
|
|
|
boot.bin: kernel/*.asm
|
2019-03-25 09:51:37 +01:00
|
|
|
nasm -s -o $@ -I kernel kernel/main.asm
|
|
|
|
|
2019-03-30 13:39:53 +01:00
|
|
|
%.bin: boot/%.asm
|
2019-03-25 09:51:37 +01:00
|
|
|
nasm -s -o $@ -I lib $<
|
|
|
|
|
2019-03-30 13:39:53 +01:00
|
|
|
fdimage.img: fat12vbr.bin boot.bin
|
2019-03-27 23:10:03 +01:00
|
|
|
dd if=/dev/zero bs=512 count=720 of=$@
|
2019-03-30 13:39:53 +01:00
|
|
|
mformat -i $@ -f 360 -B fat12vbr.bin ::
|
2019-03-28 00:07:04 +01:00
|
|
|
mcopy -i fdimage.img boot.bin ::boot.bin
|
2019-03-24 19:30:49 +01:00
|
|
|
|
|
|
|
clean:
|
2019-03-27 23:10:03 +01:00
|
|
|
rm -f *.com *.bin *.img
|