summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2022-01-15 16:12:32 -0600
committerDanny Holman <dholman@gymli.org>2022-01-15 16:12:32 -0600
commit5db084e3b478be1c9aa9caeeea94b949264aa853 (patch)
tree62f2671f4bfdc3d599587419376645f11aa84ac6
parentc83d7bdcb60859f232e0fa6994ffba01509aba2e (diff)
Makefile: add dry run and debug targets
Add targets to perform a test run and debug run inside a VM. Signed-off-by: Danny Holman <dholman@gymli.org>
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 52fda4e..d03990e 100644
--- a/Makefile
+++ b/Makefile
@@ -76,4 +76,10 @@ install-kernel: $(KERNEL)
mkdir -p $(DESTDIR)$(BOOTDIR)
cp $(KERNEL) $(DESTDIR)$(BOOTDIR)
+run: $(KERNEL)
+ qemu-system-i386 -kernel $(KERNEL)
+
+debug: $(KERNEL)
+ qemu-system-i386 -kernel $(KERNEL) -s -S
+
-include $(OBJS:.o=.d)