debug options

correctly compile in debug mode
This commit is contained in:
Alessandro Mauri 2021-03-28 16:57:44 +02:00
parent b96d4648a3
commit 778168b21a

View File

@ -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