aboutsummaryrefslogtreecommitdiff
path: root/Common.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Common.mk')
-rw-r--r--Common.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/Common.mk b/Common.mk
index 8ef25af..9852b2d 100644
--- a/Common.mk
+++ b/Common.mk
@@ -34,7 +34,7 @@ endif
CFLAGS += -DVERSION="\"0.1b\""
-.PHONY: clean run run-debug debug export tree disk
+.PHONY: clean run run-silent run-debug debug export tree disk test
default: clean build/kernel7.img
@@ -70,6 +70,10 @@ run: build/kernel.elf
@tput setaf 6 2> /dev/null || true; echo Starting QEMU; tput sgr0 2> /dev/null || true
@${QEMU} -kernel $< ${QFLAGS}
+run-silent: build/kernel.elf
+ @tput setaf 6 2> /dev/null || true; echo Starting QEMU; tput sgr0 2> /dev/null || true
+ @${QEMU} -kernel $< -nographic ${QFLAGS}
+
run-debug: build/kernel-g.elf
@echo Starting QEMU in Debug Mode
@${QEMU} -kernel $< -s -S ${QFLAGS}
@@ -88,3 +92,7 @@ clean:
tree:
@tree -a -I obj\|build\|.git\|.gitignore
+
+test: clean build/kernel.elf
+ @tput setaf 6 2> /dev/null || true; echo Running Tests; tput sgr0 2> /dev/null || true
+ @./tests/run.sh