out = noteless obj = obj/ std = c99 warnings = -Wall -Wpedantic cc = cc all: if [ ! -d obj ]; then mkdir obj; fi $(cc) $(dbg) $(warnings) -std=$(std) -c src/common.c -o $(obj)common.o # $(cc) $(dbg) $(warnings) -std=$(std) -c src/path.c -o $(obj)path.o $(cc) $(dbg) $(warnings) -std=$(std) -c src/config.c -o $(obj)config.o $(cc) $(dbg) $(warnings) -std=$(std) -c src/note.c -o $(obj)note.o $(cc) $(dbg) $(warnings) -std=$(std) -c src/note_list.c -o $(obj)note_list.o $(cc) $(dbg) $(warnings) -std=$(std) src/main.c $(obj)/* -o $(out) debug: make all dbg="-g" clean: rm -rvf $(obj)*.o