#compiler flags CFLAGS=-Wall -Wextra -g #files UIF=src/ui.c src/ui.h #UI files PLF=src/planner.c src/planner.h #planner files DBF=src/db.c src/db.h #db files CALF=src/iCal.c src/iCal.h CONFIG=src/config.h #config file #targets debug: test ui planner db iCal config gcc test.o ui.o planner.o db.o iCal.o -o debugOut config: $(CONFIG) test: src/test.c gcc -c $(CFLAGS) src/test.c iCal: $(CALF) gcc -c $(CFLAGS) $(CALF) ui: $(UIF) gcc -c $(CFLAGS) $(UIF) planner: $(PLF) gcc -c $(CFLAGS) $(PLF) db: $(DBF) gcc -c $(CFLAGS) $(DBF) clean: rm -rf *.o debugOut src/*.gch