Home | History | Annotate | Line # | Download | only in modules
mod.mk revision 1.6.2.1
      1  1.6.2.1       riz #	$NetBSD: mod.mk,v 1.6.2.1 2010/11/21 17:32:52 riz 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.6       mrg .if defined(LD32DIR)
     12      1.6       mrg LIBDIR=/usr/lib/${LD32DIR}/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.6.2.1       riz LIBDPLIBS+=   pam     ${.CURDIR}/../../libpam
     20      1.1  christos .PRECIOUS: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR}
     21      1.1  christos libinstall:: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR}
     22      1.5  christos .else
     23      1.5  christos libinstall::
     24      1.5  christos .endif
     25      1.3  christos 
     26      1.1  christos .include <bsd.lib.mk>
     27      1.1  christos 
     28      1.1  christos ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR}: lib${LIB}.so.${SHLIB_FULLVERSION}
     29      1.1  christos 	${_MKTARGET_INSTALL}
     30      1.1  christos 	${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
     31      1.1  christos 	    ${.ALLSRC} ${.TARGET}
     32