aboutsummaryrefslogtreecommitdiff
path: root/lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Makefile b/lib/Makefile
index b3e1f66..b82d773 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -1,11 +1,14 @@
include ../Makefile.config
libk.SRCS = stdio/printf.c stdio/fprintf.c stdio/vfprintf.cpp \
- stdlib/memcpy.c stdlib/memset.c \
+ stdlib/memcpy.c stdlib/memset.c stdlib/linked_list_allocator.c \
string/itoa.c
include ../rules.mk
-.PHONY: test
+.PHONY: test valgrind
test: tst/test_mem tst/test_string tst/test_linked_list_allocator
$(foreach f,$^,./$f;)
+
+valgrind: tst/test_mem tst/test_string tst/test_linked_list_allocator
+ $(foreach f,$^,valgrind --leak-check=full ./$f;)