aboutsummaryrefslogtreecommitdiff
path: root/lib/Makefile
blob: b82d773f2978f8854e3039c4422f0c5c0935966c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
include ../Makefile.config

libk.SRCS = stdio/printf.c stdio/fprintf.c stdio/vfprintf.cpp \
            stdlib/memcpy.c stdlib/memset.c stdlib/linked_list_allocator.c \
            string/itoa.c

include ../rules.mk

.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;)