Rebuild image when files change, and monitor config.s

This commit is contained in:
Ry 2022-11-02 13:58:03 -07:00
parent f097ee739b
commit 5efa40dc9b
1 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,8 @@
TARGET = foxdos TARGET = foxdos
FILES = src/int21.s \ FILES = config.s \
src/kernel.s src/int21.s \
src/kernel.s
.PHONY: all qemu clean .PHONY: all qemu clean
all: obj/boot.o obj/kernel.o $(TARGET) all: obj/boot.o obj/kernel.o $(TARGET)
@ -17,7 +18,7 @@ obj/kernel.o: $(FILES)
@mkdir -p obj @mkdir -p obj
nasm -I. -Isrc src/kernel.s -o obj/kernel.o nasm -I. -Isrc src/kernel.s -o obj/kernel.o
$(TARGET): $(TARGET): src/boot.s $(FILES)
cat obj/boot.o obj/kernel.o > $(TARGET) cat obj/boot.o obj/kernel.o > $(TARGET)
clean: clean: