Automatically track dependencies

This commit is contained in:
Juhani Krekelä 2021-06-28 23:00:50 +03:00
parent ae90faf4d6
commit 68cd3c8821
3 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
*.bin
*.img
*.d

View File

@ -11,11 +11,14 @@ nor86.img: bootsector.bin kernel.bin
.asm.bin:
nasm -fbin -o $@ $<
nasm -MD $@.d -fbin -o $@ $<
clean:
rm -f *.bin *.img
rm -f *.bin *.img *.bin.d
run: nor86.img
qemu-system-i386 -fda $<
.PHONY: all clean run
include *.d

1
empty.d Normal file
View File

@ -0,0 +1 @@
# This file is needed so that initial make invocation will work