Automatically track dependencies
This commit is contained in:
parent
ae90faf4d6
commit
68cd3c8821
|
@ -1,2 +1,3 @@
|
||||||
*.bin
|
*.bin
|
||||||
*.img
|
*.img
|
||||||
|
*.d
|
||||||
|
|
5
Makefile
5
Makefile
|
@ -11,11 +11,14 @@ nor86.img: bootsector.bin kernel.bin
|
||||||
|
|
||||||
.asm.bin:
|
.asm.bin:
|
||||||
nasm -fbin -o $@ $<
|
nasm -fbin -o $@ $<
|
||||||
|
nasm -MD $@.d -fbin -o $@ $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.bin *.img
|
rm -f *.bin *.img *.bin.d
|
||||||
|
|
||||||
run: nor86.img
|
run: nor86.img
|
||||||
qemu-system-i386 -fda $<
|
qemu-system-i386 -fda $<
|
||||||
|
|
||||||
.PHONY: all clean run
|
.PHONY: all clean run
|
||||||
|
|
||||||
|
include *.d
|
||||||
|
|
Loading…
Reference in New Issue