aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2023-12-21 03:32:06 -0600
committerNic Gaffney <gaffney_nic@protonmail.com>2023-12-21 03:32:06 -0600
commit138424b31d9c2af158e8ae619248b035b5a280d9 (patch)
tree0da4f6661d68737b5957029242bea43fad77d7a8 /Makefile
parent9dbc5231dd738d97eea13f8ecf9005e5b78ea0d3 (diff)
downloadgftos-138424b31d9c2af158e8ae619248b035b5a280d9.tar.gz
set up bochs for debugging and started working on interrupts.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f855c41..c6e14b0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
OUT_DIR = out
SRC = src
BUILD = build
+BOCHS = bochs
+TESTS = tests
+TEST = $(TESTS)/debug.rc
TARGET = i686-elf
ISO = myos
@@ -43,6 +46,9 @@ all: $(OUT_DIR)/$(ISO).iso
run: all
qemu-system-i386 -cdrom $(OUT_DIR)/$(ISO).iso
+test: all
+ mkdir -p $(BOCHS)
+ bochs -q -rc $(TEST)
$(OUT_DIR)/$(ISO).iso : $(OUT_DIR)/isodir/boot/$(ISO).bin
grub-mkrescue -o $@ $(OUT_DIR)/isodir
@@ -62,6 +68,7 @@ $(BUILD)/%.o: $(SRC)/%.c
clean:
+ rm -rf $(BOCHS)
rm -rf $(INTERNAL_OBJS)
rm -rf $(OUT_DIR)/$(ISO).iso
rm -rf $(OUT_DIR)/isodir/boot/$(ISO).bin