summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordzwdz2021-07-10 18:35:44 +0200
committerdzwdz2021-07-10 18:35:44 +0200
commit861c98378a19d39b0a64b1cc20cf2b797a094f09 (patch)
tree8ad9294ac094c0d347cc9922f3085716db45a295
parentf0118ca8050a6c1e96689469a6132aa5d1ac0a22 (diff)
building the .iso is now the default Make target
-rw-r--r--Makefile27
1 files changed, 13 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 35bb882..72e3a27 100644
--- a/Makefile
+++ b/Makefile
@@ -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/