rdos/Makefile

16 lines
333 B
Makefile
Raw Normal View History

default: kernel.com
kernel.com: 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 kernel.com
2019-03-27 23:10:03 +01:00
dd if=/dev/zero bs=512 count=720 of=$@
mformat -i $@ -f 360 -B vbr.bin -v "BOOT2B" ::
mcopy -i fdimage.img kernel.com ::boot.bin
clean:
2019-03-27 23:10:03 +01:00
rm -f *.com *.bin *.img