blob: 6f916a2271ae7bd02d7adfc4916c1d4aaf50da75 (
plain)
1 CCOPTS=-std=gnu18 -O2 -Wall -Werror -Wpedantic
2
3 all: daily weekly
4
5 daily: lib
6 cc $(CCOPTS) obj/*.o src/daily.c -o dailyjournal
7
8 weekly: lib
9 cc $(CCOPTS) obj/*.o src/weekly.c -o weeklyjournal
10
11 lib:
12 if [ ! -d obj ]; then mkdir obj; fi
13 cc $(CCOPTS) src/path.c -c -o obj/path.o
14 cc $(CCOPTS) src/edit.c -c -o obj/edit.o
15
16 clean:
17 rm -rf obj
|