summaryrefslogtreecommitdiff
path: root/Makefile
blob: 4171f93ee635122f3bb42f8dce8abefd7501ab49 (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

Generated by cgit