diff options
author | Aaron Ball <nullspoon@oper.io> | 2018-04-19 15:07:21 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2018-04-19 15:07:21 -0600 |
commit | eecbd521f95c552f537fe9f2949b36d8795c102f (patch) | |
tree | c5966c7a6a38a22a10e81eeb3519ca429d0bbd98 | |
parent | ac0e400b2d7cdd7ecec2c9bed47fa0a4c49c5dae (diff) | |
download | gpgsecure-eecbd521f95c552f537fe9f2949b36d8795c102f.tar.gz gpgsecure-eecbd521f95c552f537fe9f2949b36d8795c102f.tar.xz |
Makefile: added debug target and set std to gnu99
-rw-r--r-- | c/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |