diff options
-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 |