summaryrefslogtreecommitdiff
path: root/Makefile
blob: 68e9503b0f6d8aa936c773985c34f93374762e1f (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 -o $(out)
   15 	$(cc) $(dbg) $(warnings) -std=$(std) src/main.c $(obj)/* -o $(out)
   16 
   17 debug:
   18 	make all dbg="-g"
   19 
   20 clean:
   21 	rm -rvf $(obj)*.o

Generated by cgit