Home | History | Annotate | Line # | Download | only in modules
mod.mk revision 1.13
      1 #	$NetBSD: mod.mk,v 1.13 2020/02/26 19:33:30 christos Exp $
      2 
      3 NOLINT=		# don't build a lint library
      4 NOPROFILE=	# don't build a profile library
      5 NOPICINSTALL=	# don't install _pic.a library
      6 
      7 .include <bsd.own.mk>
      8 
      9 .include "${.PARSEDIR}/../../Makefile.inc"
     10 
     11 .if defined(MLIBDIR)
     12 LIBDIR=/usr/lib/${MLIBDIR}/security
     13 .else
     14 LIBDIR=/usr/lib/security
     15 .endif
     16 WARNS=6
     17 
     18 .if ${MKPIC} != "no"
     19 LIBDPLIBS+=   pam     ${NETBSDSRCDIR}/lib/libpam
     20 .PRECIOUS: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR}
     21 libinstall:: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR}
     22 .else
     23 libinstall::
     24 .endif
     25 
     26 .include <bsd.lib.mk>
     27 
     28 ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR}: lib${LIB}.so.${SHLIB_FULLVERSION}
     29 	${_MKTARGET_INSTALL}
     30 	${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
     31 	    ${.ALLSRC} ${.TARGET}
     32