debug options
correctly compile in debug mode
This commit is contained in:
parent
b96d4648a3
commit
778168b21a
3
makefile
3
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
|
||||
|
Loading…
Reference in New Issue
Block a user