41 lines
833 B
Makefile
41 lines
833 B
Makefile
|
# $NetBSD: bsd.shlib.mk,v 1.6 2007/08/29 21:34:17 hira Exp $
|
||
|
|
||
|
.if !defined(_BSD_SHLIB_MK_)
|
||
|
_BSD_SHLIB_MK_=1
|
||
|
|
||
|
.if ${MKDYNAMICROOT} == "no"
|
||
|
SHLIBINSTALLDIR?= /usr/lib
|
||
|
.else
|
||
|
SHLIBINSTALLDIR?= /lib
|
||
|
.endif
|
||
|
|
||
|
.if ${MKDYNAMICROOT} == "no" || \
|
||
|
(${BINDIR:Ux} != "/bin" && ${BINDIR:Ux} != "/sbin" && \
|
||
|
${BINDIR:Ux} != "/libexec" && ${USE_SHLIBDIR:Uno} == "no")
|
||
|
SHLIBDIR?= /usr/lib
|
||
|
.else
|
||
|
SHLIBDIR?= /lib
|
||
|
.endif
|
||
|
|
||
|
.if ${USE_SHLIBDIR:Uno} != "no"
|
||
|
_LIBSODIR?= ${SHLIBINSTALLDIR}
|
||
|
.else
|
||
|
_LIBSODIR?= ${LIBDIR}
|
||
|
.endif
|
||
|
|
||
|
.if ${MKDYNAMICROOT} == "no"
|
||
|
SHLINKINSTALLDIR?= /usr/libexec
|
||
|
.else
|
||
|
SHLINKINSTALLDIR?= /libexec
|
||
|
.endif
|
||
|
|
||
|
.if ${MKDYNAMICROOT} == "no" || \
|
||
|
(${BINDIR:Ux} != "/bin" && ${BINDIR:Ux} != "/sbin" && \
|
||
|
${BINDIR:Ux} != "/libexec")
|
||
|
SHLINKDIR?= /usr/libexec
|
||
|
.else
|
||
|
SHLINKDIR?= /libexec
|
||
|
.endif
|
||
|
|
||
|
.endif # !defined(_BSD_SHLIB_MK_)
|