aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)