aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5c534ee..0c0c3e6 100644
--- a/Makefile
+++ b/Makefile
@@ -36,7 +36,7 @@ else
QUIET := @
endif
-.PHONY = all clean doc test
+.PHONY = all clean doc memcheck test
all: $(TARGETS)
@@ -53,6 +53,9 @@ clean:
doc: $(INCLUDES)
doxygen
+memcheck: $(TARGET_TEST)
+ LD_LIBRARY_PATH=$(LIBRARY_DIR) valgrind --tool=memcheck ./$(TARGET_TEST)
+
test: $(TARGET_TEST)
LD_LIBRARY_PATH=$(LIBRARY_DIR) ./$(TARGET_TEST)