X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=makefile;h=8d76a502be0b0c945af808a4297822e30668bf61;hb=e1c3ab2bd61a81054b713f735fa31f827d258d76;hp=9996deebf66058a1d41d60403e06d19def156587;hpb=04e9723d16af1a0a071582b61eec622e10848c33;p=lackey diff --git a/makefile b/makefile index 9996dee..8d76a50 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,5 @@ # lackey - curses calendar program -# See COPYING file for copyright and license details. +# See COPYING file for license details. -include config.mk @@ -16,17 +16,20 @@ 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 +CPPFLAGS += $(strip $(shell pkg-config --cflags ncursesw)) + # Targets all: $(PROG) clean: - rm -f src/*.o views/*.o cals/*.o $(PROG) $(TEST) + rm -f src/*.o views/*.o cals/*.o $(PROG) $(TEST) dist: tar -czf $(PROG)-$(VERSION).tar.gz --transform s::$(PROG)-$(VERSION)/: \ @@ -40,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)