StudyPlanner/Makefile

42 lines
718 B
Makefile
Raw Permalink Normal View History

#compiler flags
2024-12-09 21:14:48 +01:00
2024-12-09 21:13:26 +01:00
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: test ui planner db iCal config llist
gcc test.o ui.o planner.o db.o iCal.o llist.o -o debugOut
config: $(CONFIG)
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)
db: $(DBF)
gcc -c $(CFLAGS) $(DBF)
2024-12-13 17:32:41 +01:00
edit:
nvim $(PLF) Makefile $(LLST) src/test.c
clean:
rm -rf *.o debugOut src/*.gch