Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / lib / libpam / modules / mod.mk
blob85856e1a953baecdb1b58ce5dab6fa37c4de2c00
1 # $NetBSD: mod.mk,v 1.6 2008/10/27 07:48:27 mrg Exp $
3 NOLINT= # don't build a lint library
4 NOPROFILE= # don't build a profile library
5 NOPICINSTALL= # don't install _pic.a library
7 .include <bsd.own.mk>
9 .include "${.CURDIR}/../../Makefile.inc"
11 .if defined(MLIBDIR)
12 LIBDIR=/usr/lib/${MLIBDIR}/security
13 .else
14 LIBDIR=/usr/lib/security
15 .endif
16 WARNS=3
18 .if ${MKPIC} != "no"
19 .PRECIOUS: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR}
20 libinstall:: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR}
21 .else
22 libinstall::
23 .endif
25 .include <bsd.lib.mk>
27 ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR}: lib${LIB}.so.${SHLIB_FULLVERSION}
28 ${_MKTARGET_INSTALL}
29 ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
30 ${.ALLSRC} ${.TARGET}