bbde328be4
1. build the static modules first, before libpam so that the static libpam can link against the module .a files. 2. build the modules after the dynamic libpam is build, so that the dynamic modules can link against the dynamic libpam.
32 lines
775 B
Makefile
32 lines
775 B
Makefile
# $NetBSD: mod.mk,v 1.9 2010/05/03 22:12:32 christos Exp $
|
|
|
|
NOLINT= # don't build a lint library
|
|
NOPROFILE= # don't build a profile library
|
|
NOPICINSTALL= # don't install _pic.a library
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.include "${.CURDIR}/../../Makefile.inc"
|
|
|
|
.if defined(MLIBDIR)
|
|
LIBDIR=/usr/lib/${MLIBDIR}/security
|
|
.else
|
|
LIBDIR=/usr/lib/security
|
|
.endif
|
|
WARNS=3
|
|
|
|
.if ${MKPIC} != "no"
|
|
LIBDPLIBS+= pam ${.CURDIR}/../../libpam
|
|
.PRECIOUS: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR}
|
|
libinstall:: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR}
|
|
.else
|
|
libinstall::
|
|
.endif
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR}: lib${LIB}.so.${SHLIB_FULLVERSION}
|
|
${_MKTARGET_INSTALL}
|
|
${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
|
${.ALLSRC} ${.TARGET}
|