Makefile.inc revision 313579
1# $FreeBSD: stable/10/lib/libpam/modules/Makefile.inc 313579 2017-02-11 05:41:53Z ngie $
2
3PAMDIR=		${SRCTOP}/contrib/openpam
4
5NO_INSTALLLIB=
6NO_PROFILE=
7
8CFLAGS+= -I${PAMDIR}/include -I${SRCTOP}/lib/libpam
9
10# This is nasty.
11# For the static case, libpam.a depends on the modules.
12# For the dynamic case, the modules depend on libpam.so.N
13.if defined(_NO_LIBPAM_SO_YET)
14NO_PIC=
15.else
16SHLIB_NAME?=	${LIB}.so.${SHLIB_MAJOR}
17DPADD+=		${LIBPAM}
18LDADD+=		-lpam
19.endif
20
21.include "../Makefile.inc"
22