#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 LLST=src/llist.c src/llist.h CONFIG=src/config.h #config file #targets debug: db test ui planner iCal config llist gcc test.o ui.o planner.o db.o iCal.o llist.o -o debugOut config: $(CONFIG) db: $(DBF) curl -L https://sqlite.org/2024/sqlite-amalgamation-3470200.zip --output src/sqlite.zip unzip src/sqlite.zip mv sqlite-amalgamation-3470200/* src/ rm -rf sqlite-amalgamation-3470200 gcc -c $(CFLAGS) $(DBF) llist: $(LLST) gcc -c $(CFLAGS) $(LLST) 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) edit: nvim $(PLF) Makefile $(LLST) src/test.c clean: rm -rf *.o debugOut src/*.gch