modified: Makefile

modified:   README.md
	new file:   src/StudyPlanner.h
	modified:   src/db.h
	modified:   src/ui.c
bugfixes. added release target to Makefile to use in other tools.
This commit is contained in:
ketrptr committed 2024-12-16 18:23:24 +01:00
1 parent 0922b8d6b8
commit c616b98589
5 files changed
+182 -156

No files matched your search

+8 -2
View File
@@ -12,11 +12,17 @@ CALF=src/iCal.c src/iCal.h
LLST=src/llist.c src/llist.h
CONFIG=src/config.h #config file
ALLF=$(UIF) $(PLF) $(DBF) $(LLST)
#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)
# config: $(CONFIG)
llist: $(LLST)
gcc -c $(CFLAGS) $(LLST)
@@ -25,7 +31,7 @@ test: src/test.c
iCal: $(CALF)
gcc -c $(CFLAGS) $(CALF)
ui: $(UIF)
gcc -c $(CFLAGS) $(UIF)
gcc -DDEBUG -c $(CFLAGS) $(UIF)
planner: $(PLF)
gcc -c $(CFLAGS) $(PLF)
db: $(DBF)
@@ -36,7 +42,7 @@ edit:
nvim $(PLF) Makefile $(LLST) src/test.c
clean:
rm -rf *.o debugOut src/*.gch *.csv *.ics
rm -rf *.o debugOut src/*.gch *.csv *.ics *.so