2024-12-09 21:04:33 +01:00
|
|
|
#compiler flags
|
2024-12-09 21:14:48 +01:00
|
|
|
|
2024-12-09 21:13:26 +01:00
|
|
|
CFLAGS=-Wall -Wextra -g
|
2024-12-09 21:04:33 +01:00
|
|
|
|
|
|
|
|
|
|
|
#files
|
2024-12-09 19:27:50 +01:00
|
|
|
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
|
2024-12-09 21:04:33 +01:00
|
|
|
CALF=src/iCal.c src/iCal.h
|
2024-12-09 19:27:50 +01:00
|
|
|
CONFIG=src/config.h #config file
|
2024-12-09 21:04:33 +01:00
|
|
|
|
|
|
|
|
|
|
|
#targets
|
2024-12-10 22:06:49 +01:00
|
|
|
debug: test ui planner db iCal config
|
|
|
|
gcc test.o ui.o planner.o db.o iCal.o -o debugOut
|
2024-12-09 21:04:33 +01:00
|
|
|
|
2024-12-10 22:06:49 +01:00
|
|
|
config: $(CONFIG)
|
2024-12-10 22:13:25 +01:00
|
|
|
|
2024-12-10 22:06:49 +01:00
|
|
|
test: src/test.c
|
|
|
|
gcc -c $(CFLAGS) src/test.c
|
2024-12-09 21:04:33 +01:00
|
|
|
iCal: $(CALF)
|
|
|
|
gcc -c $(CFLAGS) $(CALF)
|
2024-12-10 22:06:49 +01:00
|
|
|
ui: $(UIF)
|
2024-12-09 19:27:50 +01:00
|
|
|
gcc -c $(CFLAGS) $(UIF)
|
2024-12-10 22:06:49 +01:00
|
|
|
planner: $(PLF)
|
2024-12-09 19:27:50 +01:00
|
|
|
gcc -c $(CFLAGS) $(PLF)
|
2024-12-10 22:06:49 +01:00
|
|
|
db: $(DBF)
|
2024-12-09 19:27:50 +01:00
|
|
|
gcc -c $(CFLAGS) $(DBF)
|
|
|
|
|
2024-12-09 21:04:33 +01:00
|
|
|
clean:
|
2024-12-10 22:06:49 +01:00
|
|
|
rm -rf *.o debugOut src/*.gch
|
2024-12-09 21:04:33 +01:00
|
|
|
|
2024-12-09 19:27:50 +01:00
|
|
|
|
|
|
|
|