diff options
author | Robin Krahl <me@robin-krahl.de> | 2016-03-10 16:31:07 +0100 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2016-03-10 16:31:07 +0100 |
commit | de9f0aa8f8d248292815e5571e1fa3fb068de8c3 (patch) | |
tree | 6fd52cd145cfff755c16717873a85e14caa170a5 /Makefile | |
parent | 4d9a2fba4987cd27b07db426fea921efcf8c9fc3 (diff) | |
download | dbfp-de9f0aa8f8d248292815e5571e1fa3fb068de8c3.tar.gz dbfp-de9f0aa8f8d248292815e5571e1fa3fb068de8c3.tar.bz2 |
Makefile: add memcheck rule
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -14,7 +14,7 @@ CHECK_LDLIBS = $(shell pkg-config check --libs) CURL_LDLIBS = -lcurl EXPAT_LDLIBS = -lexpat -.PHONY: all check clean +.PHONY: all check clean memcheck all: libdbfp.so @@ -26,6 +26,9 @@ clean: $(RM) dbfp_check $(RM) dbfp.o dbfp_check.o +memcheck: libdbfp.so dbfp_check + LD_LIBRARY_PATH=. CK_FORK=no valgrind --tool=memcheck ./dbfp_check + libdbfp.so: LDFLAGS += -shared libdbfp.so: LDLIBS += $(CURL_LDLIBS) libdbfp.so: LDLIBS += $(EXPAT_LDLIBS) |