diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6f916a2 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +CCOPTS=-std=gnu18 -O2 -Wall -Werror -Wpedantic + +all: daily weekly + +daily: lib + cc $(CCOPTS) obj/*.o src/daily.c -o dailyjournal + +weekly: lib + cc $(CCOPTS) obj/*.o src/weekly.c -o weeklyjournal + +lib: + if [ ! -d obj ]; then mkdir obj; fi + cc $(CCOPTS) src/path.c -c -o obj/path.o + cc $(CCOPTS) src/edit.c -c -o obj/edit.o + +clean: + rm -rf obj |