From 5db084e3b478be1c9aa9caeeea94b949264aa853 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Sat, 15 Jan 2022 16:12:32 -0600 Subject: 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 --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') 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) -- cgit v1.2.3