From de9f0aa8f8d248292815e5571e1fa3fb068de8c3 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Thu, 10 Mar 2016 16:31:07 +0100 Subject: Makefile: add memcheck rule --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') 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) -- cgit v1.2.3