diff options
Diffstat (limited to 'lib/libpam/modules/Makefile.inc')
-rw-r--r-- | lib/libpam/modules/Makefile.inc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/libpam/modules/Makefile.inc b/lib/libpam/modules/Makefile.inc new file mode 100644 index 0000000..cdfe599 --- /dev/null +++ b/lib/libpam/modules/Makefile.inc @@ -0,0 +1,24 @@ +# $FreeBSD$ + +PAMDIR= ${.CURDIR}/../../../../contrib/openpam + +NOINSTALLLIB= yes +NOPROFILE= yes + +CFLAGS+= -I${PAMDIR}/include +CFLAGS+= -I${.CURDIR}/../../libpam +WARNS?= 4 +NO_WERROR= yes + +# This is nasty. +# For the static case, libpam.a depends on the modules. +# For the dynamic case, the modules depend on libpam.so.N +.if defined(_NO_LIBPAM_SO_YET) +NOPIC= YES +.else +SHLIB_NAME?= ${LIB}.so.${SHLIB_MAJOR} +DPADD+= ${LIBPAM} +LDADD+= -lpam +.endif + +.include "../Makefile.inc" |