xref: /freebsd/lib/libpam/modules/Makefile.inc (revision 538015aa3b16b2819401ed2b6cebdd459affc7d4)
1# $FreeBSD$
2
3PAMDIR=		${.CURDIR}/../../../../contrib/openpam
4
5NOINSTALLLIB=	yes
6NOPROFILE=	yes
7
8CFLAGS+=	-I${PAMDIR}/include
9CFLAGS+=	-I${.CURDIR}/../../libpam
10WARNS?=		4
11NO_WERROR=	yes
12
13# This is nasty.
14# For the static case, libpam.a depends on the modules.
15# For the dynamic case, the modules depend on libpam.so.N
16.if defined(_NO_LIBPAM_SO_YET)
17NOPIC=		YES
18.else
19SHLIB_NAME?=	${LIB}.so.${SHLIB_MAJOR}
20DPADD+=		${LIBPAM}
21LDADD+=		-lpam
22.endif
23
24.include	"../Makefile.inc"
25