]> Pileus Git - lackey/blobdiff - makefile
Fix some ical memory issues
[lackey] / makefile
index 495115dc6202f6cb689d8c4e36f2eeab329a0612..244b08b71f633c786b75196e75bde5aa488088a3 100644 (file)
--- a/makefile
+++ b/makefile
@@ -43,6 +43,13 @@ uninstall:
        rm -f $(DESTDIR)$(PREFIX)/bin/$(PROG)
        rm -f $(DESTDIR)$(MANPREFIX)/man1/$(PROG).1
 
+memcheck: $(PROG)
+       valgrind --log-file=valgrind.out \
+                --track-origins=yes     \
+                --leak-check=full       \
+                --leak-resolution=high  \
+                ./$(PROG)
+
 # Rules
 $(PROG): $(PROG_SRC:%=src/%.o) $(VIEWS:%=views/%.o) $(CALS:%=cals/%.o)
        $(GCC) $(CFLAGS) -o $@ $+ $(LDFLAGS)