Home | History | Annotate | Line # | Download | only in mk
      1  1.7    joerg #	$NetBSD: bsd.shlib.mk,v 1.8 2012/08/23 21:21:17 joerg Exp $
      2  1.1  thorpej 
      3  1.1  thorpej .if !defined(_BSD_SHLIB_MK_)
      4  1.1  thorpej _BSD_SHLIB_MK_=1
      5  1.1  thorpej 
      6  1.8    joerg .if ${MKDYNAMICROOT} == "no"
      7  1.8    joerg SHLIBINSTALLDIR?= /usr/lib
      8  1.8    joerg .else
      9  1.8    joerg SHLIBINSTALLDIR?= /lib
     10  1.8    joerg .endif
     11  1.8    joerg 
     12  1.1  thorpej .if ${MKDYNAMICROOT} == "no" || \
     13  1.4    lukem     (${BINDIR:Ux} != "/bin" && ${BINDIR:Ux} != "/sbin" && \
     14  1.5     jmmv      ${BINDIR:Ux} != "/libexec" && ${USE_SHLIBDIR:Uno} == "no")
     15  1.1  thorpej SHLIBDIR?=	/usr/lib
     16  1.1  thorpej .else
     17  1.1  thorpej SHLIBDIR?=	/lib
     18  1.1  thorpej .endif
     19  1.1  thorpej 
     20  1.8    joerg .if ${USE_SHLIBDIR:Uno} != "no"
     21  1.8    joerg _LIBSODIR?=	${SHLIBINSTALLDIR}
     22  1.8    joerg .else
     23  1.8    joerg _LIBSODIR?=	${LIBDIR}
     24  1.8    joerg .endif
     25  1.8    joerg 
     26  1.8    joerg .if ${MKDYNAMICROOT} == "no"
     27  1.8    joerg SHLINKINSTALLDIR?= /usr/libexec
     28  1.8    joerg .else
     29  1.8    joerg SHLINKINSTALLDIR?= /libexec
     30  1.8    joerg .endif
     31  1.1  thorpej 
     32  1.1  thorpej .if ${MKDYNAMICROOT} == "no" || \
     33  1.6     hira     (${BINDIR:Ux} != "/bin" && ${BINDIR:Ux} != "/sbin" && \
     34  1.6     hira      ${BINDIR:Ux} != "/libexec")
     35  1.1  thorpej SHLINKDIR?=	/usr/libexec
     36  1.1  thorpej .else
     37  1.1  thorpej SHLINKDIR?=	/libexec
     38  1.1  thorpej .endif
     39  1.1  thorpej 
     40  1.2    lukem .endif	# !defined(_BSD_SHLIB_MK_)
     41