aboutsummaryrefslogtreecommitdiff
path: root/kernel/Makefile
diff options
context:
space:
mode:
authorMarvin Borner2020-08-30 18:56:05 +0200
committerMarvin Borner2020-08-30 18:56:05 +0200
commit30932492e9f8a98e1f98461c9d28547f23d82e7e (patch)
treeffc7acb099a81e09d73df2e4a8290d4a8dc8bfc2 /kernel/Makefile
parentffa367193078ba32012494cfa7be50e6b3b18e2d (diff)
Even more tests
Diffstat (limited to 'kernel/Makefile')
-rw-r--r--kernel/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/kernel/Makefile b/kernel/Makefile
index da6a26c..bdf89ff 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -1,6 +1,7 @@
# MIT License, Copyright (c) 2020 Marvin Borner
COBJS = main.o \
+ test.o \
drivers/interrupts.o \
drivers/interrupts_asm.o \
drivers/keyboard.o \
@@ -43,10 +44,7 @@ compile: $(COBJS)
@$(LD) -N -ekernel_main -Ttext 0x00050000 -o ../build/kernel.bin -L../build/ $+ -lk --oformat binary
@$(CC) $(CFLAGS) -o ../build/debug.o -L../build/ $+ -lk
-compile_test: CFLAGS += -Dtest -Wl,-etest_all
-compile_test: $(COBJS:main.o=test.o)
- @mkdir -p ../build/
- @$(LD) -N -etest_all -Ttext 0x00050000 -o ../build/kernel.bin -L../build/ $+ -lk --oformat binary
- @$(CC) $(CFLAGS) -o ../build/debug.o -L../build/ $+ -lk
+compile_test: CFLAGS += -Dtest
+compile_test: compile
.PHONY: test compile_test