parent
c616b98589
commit
bc53d5bcf3
5
Makefile
5
Makefile
|
@ -14,13 +14,14 @@ CONFIG=src/config.h #config file
|
||||||
|
|
||||||
ALLF=$(UIF) $(PLF) $(DBF) $(LLST)
|
ALLF=$(UIF) $(PLF) $(DBF) $(LLST)
|
||||||
|
|
||||||
|
all: debug release
|
||||||
#targets
|
#targets
|
||||||
debug: test ui planner db iCal llist
|
debug: test ui planner db iCal llist
|
||||||
gcc test.o ui.o planner.o db.o iCal.o llist.o -o debugOut
|
gcc test.o ui.o planner.o db.o iCal.o llist.o -o debugOut
|
||||||
|
|
||||||
|
|
||||||
release: $(ALLF)
|
release: $(ALLF)
|
||||||
gcc -DRELEASE -fPIC -shared -o StudyPlanner.so $(ALLF)
|
gcc -DRELEASE -fPIC -shared -o libStudyPlanner.so $(ALLF)
|
||||||
|
|
||||||
|
|
||||||
# config: $(CONFIG)
|
# config: $(CONFIG)
|
||||||
|
@ -39,7 +40,7 @@ db: $(DBF)
|
||||||
|
|
||||||
|
|
||||||
edit:
|
edit:
|
||||||
nvim $(PLF) Makefile $(LLST) src/test.c
|
nvim $(PLF) Makefile $(ALLF)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf *.o debugOut src/*.gch *.csv *.ics *.so
|
rm -rf *.o debugOut src/*.gch *.csv *.ics *.so
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef PLANNER
|
#ifndef SPLANNER
|
||||||
#define PLANNER
|
#define SPLANNER
|
||||||
|
|
||||||
int StudyPlanner();
|
int StudyPlanner();
|
||||||
|
|
||||||
|
|
1
src/ui.c
1
src/ui.c
|
@ -6,6 +6,7 @@
|
||||||
*/
|
*/
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#include "ui.h"
|
#include "ui.h"
|
||||||
|
#include "StudyPlanner.h"
|
||||||
#include "db.h"
|
#include "db.h"
|
||||||
#include "llist.h"
|
#include "llist.h"
|
||||||
#include "planner.h" // for subject and event structs
|
#include "planner.h" // for subject and event structs
|
||||||
|
|
Loading…
Reference in New Issue