diff options
author | dzwdz | 2021-07-10 18:35:44 +0200 |
---|---|---|
committer | dzwdz | 2021-07-10 18:35:44 +0200 |
commit | 861c98378a19d39b0a64b1cc20cf2b797a094f09 (patch) | |
tree | 8ad9294ac094c0d347cc9922f3085716db45a295 /Makefile | |
parent | f0118ca8050a6c1e96689469a6132aa5d1ac0a22 (diff) |
building the .iso is now the default Make target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 27 |
1 files changed, 13 insertions, 14 deletions
@@ -9,20 +9,6 @@ QFLAGS = -no-reboot -d guest_errors,int,pcall,cpu_reset OBJ = $(patsubst src/%.s,out/obj/%.s.o,$(shell find src/ -type f -name '*.s')) OBJ += $(patsubst src/%.c,out/obj/%.c.o,$(shell find src/ -type f -name '*.c')) - -.PHONY: boot debug clean -boot: out/fs/boot/kernel.bin - qemu-system-i386 -kernel $< $(QFLAGS) -no-shutdown - -debug: kernel.bin - qemu-system-i386 -kernel $< $(QFLAGS) -s -S & - sleep 1 - gdb - -clean: - rm -rv out/ - - out/boot.iso: out/fs/boot/kernel.bin out/fs/boot/grub/grub.cfg grub-mkrescue -o $@ out/fs/ @@ -42,3 +28,16 @@ out/obj/%.s.o: src/%.s out/obj/%.c.o: src/%.c @mkdir -p $(@D) $(CC) $(CFLAGS) -c $^ -o $@ + + +.PHONY: boot debug clean +boot: out/fs/boot/kernel.bin + qemu-system-i386 -kernel $< $(QFLAGS) -no-shutdown + +debug: kernel.bin + qemu-system-i386 -kernel $< $(QFLAGS) -s -S & + sleep 1 + gdb + +clean: + rm -rv out/ |