rdos/Makefile

16 lines
315 B
Makefile
Raw Normal View History

default: kernel.com
boot.bin: kernel/*.asm
2019-03-25 09:51:37 +01:00
nasm -s -o $@ -I kernel kernel/main.asm
vbr.bin: boot/vbr.asm
nasm -s -o $@ -I lib $<
fdimage.img: vbr.bin boot.bin
2019-03-27 23:10:03 +01:00
dd if=/dev/zero bs=512 count=720 of=$@
mformat -i $@ -f 360 -B vbr.bin ::
mcopy -i fdimage.img boot.bin ::boot.bin
clean:
2019-03-27 23:10:03 +01:00
rm -f *.com *.bin *.img