rdos/Makefile
2019-03-30 12:39:53 +00:00

16 lines
321 B
Makefile

default: kernel.com
boot.bin: kernel/*.asm
nasm -s -o $@ -I kernel kernel/main.asm
%.bin: boot/%.asm
nasm -s -o $@ -I lib $<
fdimage.img: fat12vbr.bin boot.bin
dd if=/dev/zero bs=512 count=720 of=$@
mformat -i $@ -f 360 -B fat12vbr.bin ::
mcopy -i fdimage.img boot.bin ::boot.bin
clean:
rm -f *.com *.bin *.img