rdos/Makefile
2019-03-27 22:10:03 +00:00

16 lines
333 B
Makefile

default: kernel.com
kernel.com: kernel/*.asm
nasm -s -o $@ -I kernel kernel/main.asm
vbr.bin: boot/vbr.asm
nasm -s -o $@ -I lib $<
fdimage.img: vbr.bin kernel.com
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:
rm -f *.com *.bin *.img