ramdisk Makefile: CLEANFILES fix
[minix.git] / share / mk / bsd.shlib.mk
blobbb058c2f6b3dc90dfee4b1383fc063f6bfa449ac
1 # $NetBSD: bsd.shlib.mk,v 1.8 2012/08/23 21:21:17 joerg 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_)