StudyPlanner/Makefile

36 lines
612 B
Makefile
Raw 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
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)
gcc -c $(CFLAGS) $(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