StudyPlanner/Makefile

31 lines
519 B
Makefile
Raw Normal View History

#compiler flags
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
CONFIG=src/config.h #config file
#targets
debug: ui planner db iCal
gcc ui.o planner.o db.o iCal.o -o debugOut
iCal: $(CALF)
gcc -c $(CFLAGS) $(CALF)
ui: $(UIF) $(CONFIG)
gcc -c $(CFLAGS) $(UIF)
planner: $(PLF) $(CONFIG)
gcc -c $(CFLAGS) $(PLF)
db: $(DBF) $(CONFIG)
gcc -c $(CFLAGS) $(DBF)
clean:
rm -rf *.o debugOut