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-14 21:00:32 +01:00
|
|
|
INCLUDES = -Isrc
|
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-11 03:09:54 +01:00
|
|
|
LLST=src/llist.c src/llist.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-11 03:09:54 +01:00
|
|
|
debug: test ui planner db iCal config llist
|
|
|
|
gcc test.o ui.o planner.o db.o iCal.o llist.o -o debugOut
|
2024-12-09 21:04:33 +01:00
|
|
|
|
2024-12-10 22:06:49 +01:00
|
|
|
config: $(CONFIG)
|
2024-12-11 03:09:54 +01:00
|
|
|
llist: $(LLST)
|
|
|
|
gcc -c $(CFLAGS) $(LLST)
|
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-13 17:32:41 +01:00
|
|
|
|
|
|
|
edit:
|
|
|
|
nvim $(PLF) Makefile $(LLST) src/test.c
|
|
|
|
|
2024-12-09 21:04:33 +01:00
|
|
|
clean:
|
2024-12-16 09:40:51 +01:00
|
|
|
rm -rf *.o debugOut src/*.gch *.csv *.ics
|
2024-12-09 21:04:33 +01:00
|
|
|
|
2024-12-09 19:27:50 +01:00
|
|
|
|
|
|
|
|