diff options
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) |