From 778168b21a7a5d72bbf43d96ea2c6e052ebf28fb Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Sun, 28 Mar 2021 16:57:44 +0200 Subject: [PATCH] debug options correctly compile in debug mode --- makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index a8799e2..2959836 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,6 @@ CC ?= gcc CFLAGS = -Wall -pedantic --std=c99 -O2 +DBG_CFLAGS = -Wall -Werror -pedantic --std=c99 -O0 -g LDFLAGS = -lpam -lpam_misc PREFIX = /usr/local MANPREFIX = ${PREFIX}/share/man @@ -7,7 +8,7 @@ MANPREFIX = ${PREFIX}/share/man us: us.c dbg: - gcc -O0 -g us.c -o us + gcc ${LDFLAGS} ${DBG_CFLAGS} us.c -o us install: us mkdir -p ${DESTDIR}${PREFIX}/bin