summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--c/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/c/Makefile b/c/Makefile
index 9938411..126e76e 100644
--- a/c/Makefile
+++ b/c/Makefile
@@ -1,12 +1,15 @@
out = gpgsecure
cc = cc
-std = --std=c99
+std = -std=gnu99
warnings = -Wall -Wpedantic
ccopts = $(std) $(warnings)
larchive = $(shell pkg-config --libs libarchive)
all:
if [ ! -d obj ]; then mkdir obj; fi
- $(cc) $(ccopts) $(larchive) -c src/encarchive.c -o obj/encarchive.o
- $(cc) $(ccopts) $(larchive) src/main.c obj/*.o -o $(out)
+ $(cc) $(ccopts) $(dbg) $(larchive) -c src/encarchive.c -o obj/encarchive.o
+ $(cc) $(ccopts) $(dbg) $(larchive) src/main.c obj/*.o -o $(out)
+
+debug:
+ make dbg=-g

Generated by cgit