blob: 0682b61fda25a0a90d331c13f490e8a048e34730 (
plain)
1 out = noteless
2 obj = obj/
3 std = c99
4 warnings = -Wall -Wpedantic
5 cc = cc
6
7 all:
8 if [[ ! -d obj ]]; then mkdir obj; fi
9 $(cc) $(dbg) $(warnings) -std=$(std) -c src/common.c -o $(obj)common.o
10 # $(cc) $(dbg) $(warnings) -std=$(std) -c src/path.c -o $(obj)path.o
11 $(cc) $(dbg) $(warnings) -std=$(std) -c src/config.c -o $(obj)config.o
12 $(cc) $(dbg) $(warnings) -std=$(std) -c src/note.c -o $(obj)note.o
13 $(cc) $(dbg) $(warnings) -std=$(std) -c src/note_list.c -o $(obj)note_list.o
14 $(cc) $(dbg) $(warnings) -std=$(std) src/main.c $(obj)/* -o $(out)
15
16 debug:
17 make all dbg="-g"
18
19 clean:
20 rm -rvf $(obj)*.o
|