NetBSD/share/mk/bsd.shlib.mk
lukem 5e2ad4afcc Be consistent how "multiple include protection" is implemented. I.e,
.if !defined(_BSD_foo_MK_)
	_BSD_foo_MK_=1

	# ...

	.endif	# !defined(_BSD_foo_MK_)
2003-07-28 02:38:33 +00:00

39 lines
730 B
Makefile

# $NetBSD: bsd.shlib.mk,v 1.2 2003/07/28 02:38:33 lukem 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")
SHLIBDIR?= /usr/lib
.else
SHLIBDIR?= /lib
.endif
.if ${USE_SHLIBDIR:Uno} == "yes"
_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")
SHLINKDIR?= /usr/libexec
.else
SHLINKDIR?= /libexec
.endif
.endif # !defined(_BSD_SHLIB_MK_)