nor86/Makefile

25 lines
346 B
Makefile

.SUFFIXES:
.SUFFIXES: .bin .asm
all: nor86.img
nor86.img: bootsector.bin kernel.bin
rm -f $@
mkdosfs -C $@ 1440
rw -i bootsector.bin -o $@
mcopy -i $@ kernel.bin ::
.asm.bin:
nasm -fbin -o $@ $<
nasm -MD $@.d -fbin -o $@ $<
clean:
rm -f *.bin *.img *.bin.d
run: nor86.img
qemu-system-i386 -fda $<
.PHONY: all clean run
include *.d