summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2018-04-19 15:07:21 -0600
committerAaron Ball <nullspoon@oper.io>2018-04-19 15:07:21 -0600
commiteecbd521f95c552f537fe9f2949b36d8795c102f (patch)
treec5966c7a6a38a22a10e81eeb3519ca429d0bbd98
parentac0e400b2d7cdd7ecec2c9bed47fa0a4c49c5dae (diff)
downloadgpgsecure-eecbd521f95c552f537fe9f2949b36d8795c102f.tar.gz
gpgsecure-eecbd521f95c552f537fe9f2949b36d8795c102f.tar.xz
Makefile: added debug target and set std to gnu99
-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