rdos/Makefile

16 lines
315 B
Makefile

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