diff options
author | Robin Krahl <me@robin-krahl.de> | 2017-03-25 15:26:40 +0100 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2017-03-25 15:26:40 +0100 |
commit | 760b3fee15e64622e47442eb93608e5eb138ff10 (patch) | |
tree | 8fcbd9b96cdb6ed7a577562127cd7cedf62d0a10 | |
parent | eef18d10b4edb26713f683f4b5cd5b0770e9e875 (diff) | |
download | sqlitepp-760b3fee15e64622e47442eb93608e5eb138ff10.tar.gz sqlitepp-760b3fee15e64622e47442eb93608e5eb138ff10.tar.bz2 |
Makefile: Add a memcheck target
Add a memcheck target to the Makefile that calls the valgrind memcheck
tool on the test binary.
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |