|
|
@ -1,5 +1,6 @@ |
|
|
|
CC ?= gcc
|
|
|
|
CC ?= gcc
|
|
|
|
CFLAGS = -Wall -pedantic --std=c99 -O2
|
|
|
|
CFLAGS = -Wall -pedantic --std=c99 -O2
|
|
|
|
|
|
|
|
DBG_CFLAGS = -Wall -Werror -pedantic --std=c99 -O0 -g
|
|
|
|
LDFLAGS = -lpam -lpam_misc
|
|
|
|
LDFLAGS = -lpam -lpam_misc
|
|
|
|
PREFIX = /usr/local
|
|
|
|
PREFIX = /usr/local
|
|
|
|
MANPREFIX = ${PREFIX}/share/man
|
|
|
|
MANPREFIX = ${PREFIX}/share/man
|
|
|
@ -7,7 +8,7 @@ MANPREFIX = ${PREFIX}/share/man |
|
|
|
us: us.c |
|
|
|
us: us.c |
|
|
|
|
|
|
|
|
|
|
|
dbg: |
|
|
|
dbg: |
|
|
|
gcc -O0 -g us.c -o us
|
|
|
|
gcc ${LDFLAGS} ${DBG_CFLAGS} us.c -o us
|
|
|
|
|
|
|
|
|
|
|
|
install: us |
|
|
|
install: us |
|
|
|
mkdir -p ${DESTDIR}${PREFIX}/bin
|
|
|
|
mkdir -p ${DESTDIR}${PREFIX}/bin
|
|
|
|