Sync usage with man page.
[netbsd-mini2440.git] / share / mk / bsd.shlib.mk
blob42dede14b6511da18a32c0e23e427138d9538f5e
1 # $NetBSD: bsd.shlib.mk,v 1.5 2006/11/11 14:41:20 jmmv Exp $
3 .if !defined(_BSD_SHLIB_MK_)
4 _BSD_SHLIB_MK_=1
6 .if ${MKDYNAMICROOT} == "no"
7 SHLIBINSTALLDIR?= /usr/lib
8 .else
9 SHLIBINSTALLDIR?= /lib
10 .endif
12 .if ${MKDYNAMICROOT} == "no" || \
13 (${BINDIR:Ux} != "/bin" && ${BINDIR:Ux} != "/sbin" && \
14 ${BINDIR:Ux} != "/libexec" && ${USE_SHLIBDIR:Uno} == "no")
15 SHLIBDIR?= /usr/lib
16 .else
17 SHLIBDIR?= /lib
18 .endif
20 .if ${USE_SHLIBDIR:Uno} != "no"
21 _LIBSODIR?= ${SHLIBINSTALLDIR}
22 .else
23 _LIBSODIR?= ${LIBDIR}
24 .endif
26 .if ${MKDYNAMICROOT} == "no"
27 SHLINKINSTALLDIR?= /usr/libexec
28 .else
29 SHLINKINSTALLDIR?= /libexec
30 .endif
32 .if ${MKDYNAMICROOT} == "no" || \
33 (${BINDIR:Ux} != "/bin" && ${BINDIR:Ux} != "/sbin" && \
34 ${BINDIR:Ux} != "/libexec")
35 SHLINKDIR?= /usr/libexec
36 .else
37 SHLINKDIR?= /libexec
38 .endif
40 .endif # !defined(_BSD_SHLIB_MK_)