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