From 7b266086fd20d833c61a5a5d53e7ada951b97c17 Mon Sep 17 00:00:00 2001 From: ketrptr Date: Mon, 9 Dec 2024 21:04:33 +0100 Subject: [PATCH] new file: src/iCal.c new file: src/iCal.h --- Makefile | 22 +++++++++++++++++++--- README.md | 4 ++-- src/iCal.c | 0 src/iCal.h | 0 4 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 src/iCal.c create mode 100644 src/iCal.h diff --git a/Makefile b/Makefile index 6f143e5..0571999 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,30 @@ +#compiler flags CFLAGS=-Wall -Wetra -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 -ui: $(UIF) + + +#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) +planner: $(PLF) $(CONFIG) gcc -c $(CFLAGS) $(PLF) -db: $(DBF) +db: $(DBF) $(CONFIG) gcc -c $(CFLAGS) $(DBF) +clean: + rm -rf *.o debugOut + diff --git a/README.md b/README.md index cd7c583..3ef6a53 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,6 @@ Time management optimisation tool. ## Processing -- Use cake cutting algorithm to calculate timetable based on subject priorites and available time. +- Use cake cutting algorithm to calculate timetable based on subject priorities and available time. -- output in ical format +- output in iCal format diff --git a/src/iCal.c b/src/iCal.c new file mode 100644 index 0000000..e69de29 diff --git a/src/iCal.h b/src/iCal.h new file mode 100644 index 0000000..e69de29