aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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