X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=makefile;h=3fefedb2868f52815d2a9f1d75b01c1407def9e9;hb=3265a69256eb1c88ad9776fd5e2a569186778180;hp=495115dc6202f6cb689d8c4e36f2eeab329a0612;hpb=daded0f3fb930e7758e1009683c0cdb46eada3f6;p=lackey diff --git a/makefile b/makefile index 495115d..3fefedb 100644 --- a/makefile +++ b/makefile @@ -16,10 +16,10 @@ 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 -VIEWS ?= day week month year events todo settings help +TEST_SRC ?= test date cal conf util +VIEWS ?= day week month year events todo settings help edit CALS ?= dummy ical # For ncursesw @@ -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)