aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-10-12 11:06:37 -0400
committernodist <kevin.comas.git@gmail.com>2026-10-12 11:06:37 -0400
commit332c114cf633f70027c28ec6bedb898d9de85e51 (patch)
tree0a9bb4760772e5e407c1aef9b896d65165f82f6c /Makefile
parent4ee5b8d6a9ebf49ce30ff7d93ef7401039ffecc6 (diff)
basic allocator with valgrind testing
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 134e338..42d9982 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-.PHONY: kpl_test_memory kpl_test_thread clean rsync_list
+.PHONY: kpl_valgrind kpl_test_valgrind kpl_test_memory kpl_test_thread clean rsync_list
MAKEFLAGS := -j$(shell nproc)
@@ -23,9 +23,15 @@ kpl: FLAGS += -DKPL_MAIN
kpl: $(SOURCE_OBJECTS)
$(CCOBJ)
+kpl_valgrind: FLAGS += -DKPL_VALGRIND
+kpl_valgrind: kpl
+
kpl_test: $(SOURCE_OBJECTS) $(TEST_OBJECTS)
$(CCOBJ)
+kpl_test_valgrind: FLAGS += -DKPL_VALGRIND
+kpl_test_valgrind: kpl_test
+
kpl_test_memory: FFLAGS += -fsanitize=address,leak,undefined
kpl_test_memory: kpl_test