summaryrefslogtreecommitdiff
path: root/Makefile
blob: b42e1da7c2d0af500cfa9b5381c7f5db0de16ffe (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/path.c -o $(obj)path.o
   10 	$(cc) $(dbg) $(warnings) -std=$(std) -c src/config.c -o $(obj)config.o
   11 	$(cc) $(dbg) $(warnings) -std=$(std) -c src/note.c -o $(obj)note.o
   12 	$(cc) $(dbg) $(warnings) -std=$(std) -c src/note_list.c -o $(obj)note_list.o
   13 	$(cc) $(dbg) $(warnings) -std=$(std) src/main.c $(obj)*.o -o $(out)
   14 
   15 debug:
   16 	make all dbg="-g"
   17 
   18 clean:
   19 	rm -rvf $(obj)*.o

Generated by cgit