aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2016-03-10 16:31:07 +0100
committerRobin Krahl <me@robin-krahl.de>2016-03-10 16:31:07 +0100
commitde9f0aa8f8d248292815e5571e1fa3fb068de8c3 (patch)
tree6fd52cd145cfff755c16717873a85e14caa170a5 /Makefile
parent4d9a2fba4987cd27b07db426fea921efcf8c9fc3 (diff)
downloaddbfp-de9f0aa8f8d248292815e5571e1fa3fb068de8c3.tar.gz
dbfp-de9f0aa8f8d248292815e5571e1fa3fb068de8c3.tar.bz2
Makefile: add memcheck rule
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e802cd4..9b79245 100644
--- a/Makefile
+++ b/Makefile
@@ -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)