]> Pileus Git - lackey/blobdiff - makefile
Add popup views
[lackey] / makefile
index 495115dc6202f6cb689d8c4e36f2eeab329a0612..c1acd8f3a9169828df4d19f7587aae47bb371f10 100644 (file)
--- a/makefile
+++ b/makefile
@@ -16,9 +16,9 @@ LDFLAGS   ?= -lncursesw -lical
 
 # Sources
 PROG      ?= lackey
-PROG_SRC  ?= main view date cal util
+PROG_SRC  ?= main view date cal conf util
 TEST      ?= test
-TEST_SRC  ?= test date util
+TEST_SRC  ?= test date cal conf util
 VIEWS     ?= day week month year events todo settings help
 CALS      ?= dummy ical
 
@@ -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)