X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;ds=sidebyside;f=makefile;h=ce82c84d434401e28ec17441bdcaafe6733bb5ff;hb=d45541aeb31a0e34a2a43df0e112f1f720f80abf;hp=f50f07445b9229007b7df637a2df4241953d08a8;hpb=a10db2328b82791a75bf7d8a97273e6402e62f17;p=lackey diff --git a/makefile b/makefile index f50f074..ce82c84 100644 --- a/makefile +++ b/makefile @@ -11,19 +11,19 @@ MANPREFIX ?= $(PREFIX)/share/man # Compiler GCC ?= gcc CFLAGS ?= -Wall --std=c99 -CPPFLAGS ?= -Isrc LDFLAGS ?= -lncursesw -lical # Sources PROG ?= lackey -PROG_SRC ?= main view date cal args conf util +PROG_SRC ?= main util args conf date cal view print daemon TEST ?= test -TEST_SRC ?= test date cal conf util +TEST_SRC ?= test util conf date cal daemon VIEWS ?= day week month year events todo settings help edit CALS ?= dummy ical -# For ncursesw -CPPFLAGS += $(strip $(shell pkg-config --cflags ncursesw)) +# Objects +views/%.o cals/%.o: CFLAGS += -Isrc +src/view.o views/%.o: CFLAGS += $(strip $(shell pkg-config --cflags ncursesw)) # Targets all: $(PROG) @@ -58,6 +58,6 @@ $(TEST): $(TEST_SRC:%=src/%.o) $(CALS:%=cals/%.o) $(GCC) $(CFLAGS) -o $@ $+ $(LDFLAGS) %.o: %.c $(wildcard src/*.h makefile config.mk) - $(GCC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< + $(GCC) $(CFLAGS) -c -o $@ $< .PHONY: all clean dist install uninstall