From bc53d5bcf3909ee62a674dcff9941f5f92bf9749 Mon Sep 17 00:00:00 2001 From: ketrptr Date: Mon, 16 Dec 2024 19:46:40 +0100 Subject: [PATCH] modified: Makefile modified: src/StudyPlanner.h modified: src/ui.c bugfix --- Makefile | 5 +++-- src/StudyPlanner.h | 4 ++-- src/ui.c | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 047ef52..ae0d0b0 100644 --- a/Makefile +++ b/Makefile @@ -14,13 +14,14 @@ CONFIG=src/config.h #config file ALLF=$(UIF) $(PLF) $(DBF) $(LLST) +all: debug release #targets debug: test ui planner db iCal llist gcc test.o ui.o planner.o db.o iCal.o llist.o -o debugOut release: $(ALLF) - gcc -DRELEASE -fPIC -shared -o StudyPlanner.so $(ALLF) + gcc -DRELEASE -fPIC -shared -o libStudyPlanner.so $(ALLF) # config: $(CONFIG) @@ -39,7 +40,7 @@ db: $(DBF) edit: - nvim $(PLF) Makefile $(LLST) src/test.c + nvim $(PLF) Makefile $(ALLF) clean: rm -rf *.o debugOut src/*.gch *.csv *.ics *.so diff --git a/src/StudyPlanner.h b/src/StudyPlanner.h index 9e853ec..b497a8f 100644 --- a/src/StudyPlanner.h +++ b/src/StudyPlanner.h @@ -1,5 +1,5 @@ -#ifndef PLANNER -#define PLANNER +#ifndef SPLANNER +#define SPLANNER int StudyPlanner(); diff --git a/src/ui.c b/src/ui.c index a4cd8b8..ec05624 100644 --- a/src/ui.c +++ b/src/ui.c @@ -6,6 +6,7 @@ */ #define _GNU_SOURCE #include "ui.h" +#include "StudyPlanner.h" #include "db.h" #include "llist.h" #include "planner.h" // for subject and event structs