summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index ac072b4..b42e1da 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,19 @@
out = noteless
-libs = src/lib/
obj = obj/
-
+std = c99
+warnings = -Wall -Wpedantic
+cc = cc
all:
if [[ ! -d obj ]]; then mkdir obj; fi
- g++ $(debug) -c $(libs)path.c -o $(obj)path.o
- g++ $(debug) -c $(libs)config.c -o $(obj)config.o
- g++ $(debug) -c $(libs)note.c -o $(obj)note.o
- g++ $(debug) -c $(libs)note_list.c -o $(obj)note_list.o
- g++ $(debug) src/main.c $(obj)*.o -o $(out)
+ $(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 -o $(out)
debug:
- make all debug="-g"
+ make all dbg="-g"
clean:
rm -rvf $(obj)*.o

Generated by cgit