From 7bde59183f40fe7540ab87a03429453b76e286c3 Mon Sep 17 00:00:00 2001 From: aqua Date: Tue, 27 Dec 2022 13:42:58 +0200 Subject: Add test and valgrind targets to rules.mk --- src/Makefile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index df59f24..c3e4931 100644 --- a/src/Makefile +++ b/src/Makefile @@ -3,14 +3,9 @@ include ../Makefile.config kernel.SRCS := multiboot2.c mmap.c kernel.cpp mem/vmm.c kernel.OBJS := include conf.h -include ../rules.mk - -.PHONY: test valgrind -test: tst/test_taskqueue tst/test_roundrobin - $(foreach f,$^,./$f;) +TESTS += tst/test_taskqueue tst/test_roundrobin -valgrind: tst/test_taskqueue tst/test_roundrobin - $(foreach f,$^,valgrind --leak-check=full ./$f;) +include ../rules.mk conf.h: conf.h.in @echo ' GEN $@' -- cgit v1.2.1