-PROG = lackey
-PROG_SRC = main screen date event util
-TEST = test
-TEST_SRC = test date util
-VIEWS = day week month year todo notes settings help
-CALS = dummy ical
+PROG ?= lackey
+PROG_SRC ?= main util args conf date cal view print daemon
+TEST ?= test
+TEST_SRC ?= test util conf date cal daemon
+VIEWS ?= day week month year events todo settings help edit
+CALS ?= dummy ical
+
+# Objects
+views/%.o cals/%.o: CFLAGS += -Isrc
+src/view.o views/%.o: CFLAGS += $(strip $(shell pkg-config --cflags ncursesw))