2001-06-04 15:25:41 -04:00
|
|
|
# $FreeBSD$
|
2001-06-04 15:47:56 -04:00
|
|
|
|
2002-03-05 16:56:25 -05:00
|
|
|
PAMDIR= ${.CURDIR}/../../../../contrib/openpam
|
2001-06-04 15:47:56 -04:00
|
|
|
|
2004-12-21 04:51:09 -05:00
|
|
|
NO_INSTALLLIB=
|
2006-03-19 03:52:49 -05:00
|
|
|
NO_PROFILE=
|
2001-06-04 15:47:56 -04:00
|
|
|
|
2003-03-09 15:06:38 -05:00
|
|
|
CFLAGS+= -I${PAMDIR}/include -I${.CURDIR}/../../libpam
|
2001-06-04 15:47:56 -04:00
|
|
|
|
|
|
|
|
# This is nasty.
|
|
|
|
|
# For the static case, libpam.a depends on the modules.
|
|
|
|
|
# For the dynamic case, the modules depend on libpam.so.N
|
2002-11-14 14:24:51 -05:00
|
|
|
.if defined(_NO_LIBPAM_SO_YET)
|
2004-12-21 04:33:47 -05:00
|
|
|
NO_PIC=
|
2002-11-14 14:24:51 -05:00
|
|
|
.else
|
|
|
|
|
SHLIB_NAME?= ${LIB}.so.${SHLIB_MAJOR}
|
|
|
|
|
DPADD+= ${LIBPAM}
|
|
|
|
|
LDADD+= -lpam
|
|
|
|
|
.endif
|
2002-01-24 13:37:17 -05:00
|
|
|
|
2009-02-17 11:35:19 -05:00
|
|
|
.c.o:
|
|
|
|
|
${CC} ${CFLAGS} -DOPENPAM_STATIC_MODULES -c ${.IMPSRC}
|
|
|
|
|
|
2003-03-09 15:06:38 -05:00
|
|
|
.include "../Makefile.inc"
|