s/LD32DIR/MLIBDIR/ in most places, also look for CSU_MACHINE_ARCH.diff -r1.24 -r1.24.46.1 src/lib/csu/Makefile
(mrg)
--- src/lib/csu/Makefile 2002/05/02 16:42:53 1.24
+++ src/lib/csu/Makefile 2009/12/14 06:29:20 1.24.46.1
@@ -1,18 +1,20 @@ | @@ -1,18 +1,20 @@ | |||
1 | # $NetBSD: Makefile,v 1.24 2002/05/02 16:42:53 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.24.46.1 2009/12/14 06:29:20 mrg Exp $ | |
2 | 2 | |||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> | |
4 | 4 | |||
5 | .if ${OBJECT_FMT} == "ELF" && exists(${MACHINE_ARCH}_elf) | 5 | .if ${OBJECT_FMT} == "ELF" && exists(${CSU_MACHINE_ARCH}_elf) | |
6 | SUBDIR= ${CSU_MACHINE_ARCH}_elf | |||
7 | .elif ${OBJECT_FMT} == "ELF" && exists(${MACHINE_ARCH}_elf) | |||
6 | SUBDIR= ${MACHINE_ARCH}_elf | 8 | SUBDIR= ${MACHINE_ARCH}_elf | |
7 | .elif ${OBJECT_FMT} == "ELF" && exists(${MACHINE_CPU}_elf) | 9 | .elif ${OBJECT_FMT} == "ELF" && exists(${MACHINE_CPU}_elf) | |
8 | SUBDIR= ${MACHINE_CPU}_elf | 10 | SUBDIR= ${MACHINE_CPU}_elf | |
9 | .elif exists(${MACHINE_ARCH}) | 11 | .elif exists(${MACHINE_ARCH}) | |
10 | SUBDIR= ${MACHINE_ARCH} | 12 | SUBDIR= ${MACHINE_ARCH} | |
11 | .elif exists(${MACHINE_CPU}) | 13 | .elif exists(${MACHINE_CPU}) | |
12 | SUBDIR= ${MACHINE_CPU} | 14 | SUBDIR= ${MACHINE_CPU} | |
13 | .else | 15 | .else | |
14 | .BEGIN: | 16 | .BEGIN: | |
15 | @echo no SUBDIR for ${MACHINE_ARCH}_elf, ${MACHINE_ARCH} nor \ | 17 | @echo no SUBDIR for ${MACHINE_ARCH}_elf, ${MACHINE_ARCH} nor \ | |
16 | ${MACHINE_CPU} | 18 | ${MACHINE_CPU} | |
17 | @false | 19 | @false | |
18 | .endif | 20 | .endif |
--- src/lib/i18n_module/Makefile.inc 2008/10/26 07:06:07 1.10
+++ src/lib/i18n_module/Makefile.inc 2009/12/14 06:29:20 1.10.8.1
@@ -1,26 +1,26 @@ | @@ -1,26 +1,26 @@ | |||
1 | # $NetBSD: Makefile.inc,v 1.10 2008/10/26 07:06:07 mrg Exp $ | 1 | # $NetBSD: Makefile.inc,v 1.10.8.1 2009/12/14 06:29:20 mrg Exp $ | |
2 | 2 | |||
3 | NOLINT= # defined | 3 | NOLINT= # defined | |
4 | NOPICINSTALL= # defined | 4 | NOPICINSTALL= # defined | |
5 | NOPROFILE= # defined | 5 | NOPROFILE= # defined | |
6 | 6 | |||
7 | .include <bsd.own.mk> | 7 | .include <bsd.own.mk> | |
8 | 8 | |||
9 | SHLIB_VERSION_FILE= ${NETBSDSRCDIR}/lib/i18n_module/shlib_version | 9 | SHLIB_VERSION_FILE= ${NETBSDSRCDIR}/lib/i18n_module/shlib_version | |
10 | .if defined(LD32DIR) | 10 | .if defined(MLIBDIR) | |
11 | LIBDIR= /usr/lib/${LD32DIR}/i18n | 11 | LIBDIR= /usr/lib/${MLIBDIR}/i18n | |
12 | SHLIBDIR= /usr/lib/${LD32DIR}/i18n | 12 | SHLIBDIR= /usr/lib/${MLIBDIR}/i18n | |
13 | SHLIBINSTALLDIR=/usr/lib/${LD32DIR}/i18n | 13 | SHLIBINSTALLDIR=/usr/lib/${MLIBDIR}/i18n | |
14 | .else | 14 | .else | |
15 | LIBDIR= /usr/lib/i18n | 15 | LIBDIR= /usr/lib/i18n | |
16 | SHLIBDIR= /usr/lib/i18n | 16 | SHLIBDIR= /usr/lib/i18n | |
17 | SHLIBINSTALLDIR=/usr/lib/i18n | 17 | SHLIBINSTALLDIR=/usr/lib/i18n | |
18 | .endif | 18 | .endif | |
19 | CPPFLAGS+= -I${NETBSDSRCDIR}/lib/libc/citrus | 19 | CPPFLAGS+= -I${NETBSDSRCDIR}/lib/libc/citrus | |
20 | CPPFLAGS+= -DLOCALEMOD_MAJOR=${SHLIB_MAJOR} | 20 | CPPFLAGS+= -DLOCALEMOD_MAJOR=${SHLIB_MAJOR} | |
21 | CPPFLAGS+= -DLIBC_SCCS | 21 | CPPFLAGS+= -DLIBC_SCCS | |
22 | BASENAME= ${.CURDIR:T} | 22 | BASENAME= ${.CURDIR:T} | |
23 | LIB= ${BASENAME} | 23 | LIB= ${BASENAME} | |
24 | SRCS?= ${SRCPRE:tl}${BASENAME:tl}.c | 24 | SRCS?= ${SRCPRE:tl}${BASENAME:tl}.c | |
25 | 25 | |||
26 | .PATH: ${NETBSDSRCDIR}/lib/libc/citrus ${NETBSDSRCDIR}/lib/libc/citrus/modules | 26 | .PATH: ${NETBSDSRCDIR}/lib/libc/citrus ${NETBSDSRCDIR}/lib/libc/citrus/modules |
--- src/lib/libarch/Makefile 2008/10/26 07:05:33 1.21
+++ src/lib/libarch/Makefile 2009/12/14 06:29:20 1.21.8.1
@@ -1,29 +1,29 @@ | @@ -1,29 +1,29 @@ | |||
1 | # $NetBSD: Makefile,v 1.21 2008/10/26 07:05:33 mrg Exp $ | 1 | # $NetBSD: Makefile,v 1.21.8.1 2009/12/14 06:29:20 mrg Exp $ | |
2 | 2 | |||
3 | # These should always be a MACHINE_CPU value | 3 | # These should always be a MACHINE_CPU value | |
4 | ARCHDIRS= alpha arm i386 m68k sparc x86_64 | 4 | ARCHDIRS= alpha arm i386 m68k sparc x86_64 | |
5 | 5 | |||
6 | .for arch in ${ARCHDIRS} | 6 | .for arch in ${ARCHDIRS} | |
7 | .include "${.CURDIR}/${arch}/Makefile.inc" | 7 | .include "${.CURDIR}/${arch}/Makefile.inc" | |
8 | .PATH: ${.CURDIR}/${arch} | 8 | .PATH: ${.CURDIR}/${arch} | |
9 | .endfor | 9 | .endfor | |
10 | 10 | |||
11 | OBJS+= ${ASM} | 11 | OBJS+= ${ASM} | |
12 | POBJS+= ${ASM:.o=.po} | 12 | POBJS+= ${ASM:.o=.po} | |
13 | CLEANFILES+= ${ASM} ${POBJS} | 13 | CLEANFILES+= ${ASM} ${POBJS} | |
14 | 14 | |||
15 | # Build the library if SRCS is now defined ... | 15 | # Build the library if SRCS is now defined ... | |
16 | .if defined(SRCS) | 16 | .if defined(SRCS) | |
17 | .if defined(LD32DIR) && ${LD32DIR} != "none" | 17 | .if defined(MLIBDIR) && ${MLIBDIR} != "none" | |
18 | LIB= ${LD32DIR} | 18 | LIB= ${MLIBDIR} | |
19 | .else | 19 | .else | |
20 | LIB= ${MACHINE_CPU} | 20 | LIB= ${MACHINE_CPU} | |
21 | .endif | 21 | .endif | |
22 | SHLIB_VERSION_FILE= ${.CURDIR}/${LIB}/shlib_version | 22 | SHLIB_VERSION_FILE= ${.CURDIR}/${LIB}/shlib_version | |
23 | 23 | |||
24 | .include <bsd.lib.mk> | 24 | .include <bsd.lib.mk> | |
25 | .else | 25 | .else | |
26 | # ... otherwise just build the manpages | 26 | # ... otherwise just build the manpages | |
27 | .include <bsd.man.mk> | 27 | .include <bsd.man.mk> | |
28 | .endif | 28 | .endif | |
29 | .include <bsd.subdir.mk> | 29 | .include <bsd.subdir.mk> |
--- src/lib/libarch/i386/Makefile.inc 2008/10/26 07:05:33 1.13
+++ src/lib/libarch/i386/Makefile.inc 2009/12/14 06:29:20 1.13.8.1
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | # $NetBSD: Makefile.inc,v 1.13 2008/10/26 07:05:33 mrg Exp $ | 1 | # $NetBSD: Makefile.inc,v 1.13.8.1 2009/12/14 06:29:20 mrg Exp $ | |
2 | 2 | |||
3 | LD32DIR?= none | 3 | MLIBDIR?= none | |
4 | 4 | |||
5 | .if (${MACHINE_ARCH} == "i386" || ${LD32DIR} == "i386") | 5 | .if (${MACHINE_ARCH} == "i386" || ${MLIBDIR} == "i386") | |
6 | SRCS+= i386_get_ldt.c i386_set_ldt.c \ | 6 | SRCS+= i386_get_ldt.c i386_set_ldt.c \ | |
7 | i386_iopl.c i386_get_ioperm.c i386_set_ioperm.c \ | 7 | i386_iopl.c i386_get_ioperm.c i386_set_ioperm.c \ | |
8 | i386_vm86.c i386_pmc.c i386_mtrr.c | 8 | i386_vm86.c i386_pmc.c i386_mtrr.c | |
9 | .endif | 9 | .endif | |
10 | 10 | |||
11 | MAN+= i386_get_ldt.2 \ | 11 | MAN+= i386_get_ldt.2 \ | |
12 | i386_get_mtrr.2 \ | 12 | i386_get_mtrr.2 \ | |
13 | i386_iopl.2 \ | 13 | i386_iopl.2 \ | |
14 | i386_pmc_info.2 \ | 14 | i386_pmc_info.2 \ | |
15 | i386_vm86.2 | 15 | i386_vm86.2 | |
16 | 16 | |||
17 | MLINKS+=i386_get_ldt.2 i386_set_ldt.2 \ | 17 | MLINKS+=i386_get_ldt.2 i386_set_ldt.2 \ | |
18 | i386_get_mtrr.2 i386_set_mtrr.2 \ | 18 | i386_get_mtrr.2 i386_set_mtrr.2 \ |
--- src/lib/libarch/x86_64/Makefile.inc 2008/10/26 07:05:33 1.3
+++ src/lib/libarch/x86_64/Makefile.inc 2009/12/14 06:29:20 1.3.8.1
@@ -1,11 +1,11 @@ | @@ -1,11 +1,11 @@ | |||
1 | # $NetBSD: Makefile.inc,v 1.3 2008/10/26 07:05:33 mrg Exp $ | 1 | # $NetBSD: Makefile.inc,v 1.3.8.1 2009/12/14 06:29:20 mrg Exp $ | |
2 | 2 | |||
3 | LD32DIR?= none | 3 | MLIBDIR?= none | |
4 | 4 | |||
5 | .if (${MACHINE_ARCH} == "x86_64" && ${LD32DIR} != "i386") | 5 | .if (${MACHINE_ARCH} == "x86_64" && ${MLIBDIR} != "i386") | |
6 | SRCS+= x86_64_mtrr.c x86_64_iopl.c | 6 | SRCS+= x86_64_mtrr.c x86_64_iopl.c | |
7 | .endif | 7 | .endif | |
8 | 8 | |||
9 | MAN+= x86_64_get_mtrr.2 x86_64_iopl.2 | 9 | MAN+= x86_64_get_mtrr.2 x86_64_iopl.2 | |
10 | 10 | |||
11 | MLINKS+=x86_64_get_mtrr.2 x86_64_set_mtrr.2 | 11 | MLINKS+=x86_64_get_mtrr.2 x86_64_set_mtrr.2 |
--- src/lib/libpam/Makefile.inc 2008/05/11 19:17:07 1.8
+++ src/lib/libpam/Makefile.inc 2009/12/14 06:29:20 1.8.8.1
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.inc,v 1.8 2008/05/11 19:17:07 he Exp $ | 1 | # $NetBSD: Makefile.inc,v 1.8.8.1 2009/12/14 06:29:20 mrg Exp $ | |
2 | # Copyright 1998 Juniper Networks, Inc. | 2 | # Copyright 1998 Juniper Networks, Inc. | |
3 | # All rights reserved. | 3 | # All rights reserved. | |
4 | # | 4 | # | |
5 | # Redistribution and use in source and binary forms, with or without | 5 | # Redistribution and use in source and binary forms, with or without | |
6 | # modification, are permitted provided that the following conditions | 6 | # modification, are permitted provided that the following conditions | |
7 | # are met: | 7 | # are met: | |
8 | # 1. Redistributions of source code must retain the above copyright | 8 | # 1. Redistributions of source code must retain the above copyright | |
9 | # notice, this list of conditions and the following disclaimer. | 9 | # notice, this list of conditions and the following disclaimer. | |
10 | # 2. Redistributions in binary form must reproduce the above copyright | 10 | # 2. Redistributions in binary form must reproduce the above copyright | |
11 | # notice, this list of conditions and the following disclaimer in the | 11 | # notice, this list of conditions and the following disclaimer in the | |
12 | # documentation and/or other materials provided with the distribution. | 12 | # documentation and/or other materials provided with the distribution. | |
13 | # | 13 | # | |
14 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND | 14 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND | |
@@ -17,25 +17,36 @@ | @@ -17,25 +17,36 @@ | |||
17 | # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | 17 | # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | |
18 | # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | 18 | # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
19 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | 19 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
20 | # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 20 | # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
21 | # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 21 | # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
22 | # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 22 | # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
23 | # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 23 | # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
24 | # SUCH DAMAGE. | 24 | # SUCH DAMAGE. | |
25 | # | 25 | # | |
26 | # $FreeBSD: src/lib/libpam/Makefile.inc,v 1.15 2004/03/15 13:23:20 des Exp $ | 26 | # $FreeBSD: src/lib/libpam/Makefile.inc,v 1.15 2004/03/15 13:23:20 des Exp $ | |
27 | 27 | |||
28 | USE_FORT?= yes # network client software *and* authentication software | 28 | USE_FORT?= yes # network client software *and* authentication software | |
29 | 29 | |||
30 | CPPFLAGS+= -DOPENPAM_MODULES_DIR=\"/usr/lib/security\" | 30 | # This needs to be before bsd.init.mk | |
31 | .if defined(BSD_MK_COMPAT_FILE) | |||
32 | .include <${BSD_MK_COMPAT_FILE}> | |||
33 | .endif | |||
34 | ||||
35 | .if defined(MLIBDIR) | |||
36 | MODLIBDIR=/usr/lib/${MLIBDIR}/security | |||
37 | .else | |||
38 | MODLIBDIR=/usr/lib/security | |||
39 | .endif | |||
40 | ||||
41 | CPPFLAGS+= -DOPENPAM_MODULES_DIR=\"${MODLIBDIR}\" | |||
31 | # No debugging | 42 | # No debugging | |
32 | #CPPFLAGS+= -DDEBUG | 43 | #CPPFLAGS+= -DDEBUG | |
33 | 44 | |||
34 | # ...and don't do either of those on the shared library. | 45 | # ...and don't do either of those on the shared library. | |
35 | # XXX CSHLIBFLAGS isn't perfect, but it'll do for now. | 46 | # XXX CSHLIBFLAGS isn't perfect, but it'll do for now. | |
36 | CSHLIBFLAGS+= -DNO_STATIC_MODULES | 47 | CSHLIBFLAGS+= -DNO_STATIC_MODULES | |
37 | 48 | |||
38 | # Define the shared library version here. libpam and the modules share a | 49 | # Define the shared library version here. libpam and the modules share a | |
39 | # version, and we need these variables early for module install rules. | 50 | # version, and we need these variables early for module install rules. | |
40 | SHLIB_MAJOR= 1 | 51 | SHLIB_MAJOR= 1 | |
41 | SHLIB_MINOR= 0 | 52 | SHLIB_MINOR= 0 |
--- src/lib/libpam/modules/mod.mk 2008/10/27 07:48:27 1.6
+++ src/lib/libpam/modules/mod.mk 2009/12/14 06:29:20 1.6.8.1
@@ -1,25 +1,25 @@ | @@ -1,25 +1,25 @@ | |||
1 | # $NetBSD: mod.mk,v 1.6 2008/10/27 07:48:27 mrg Exp $ | 1 | # $NetBSD: mod.mk,v 1.6.8.1 2009/12/14 06:29:20 mrg Exp $ | |
2 | 2 | |||
3 | NOLINT= # don't build a lint library | 3 | NOLINT= # don't build a lint library | |
4 | NOPROFILE= # don't build a profile library | 4 | NOPROFILE= # don't build a profile library | |
5 | NOPICINSTALL= # don't install _pic.a library | 5 | NOPICINSTALL= # don't install _pic.a library | |
6 | 6 | |||
7 | .include <bsd.own.mk> | 7 | .include <bsd.own.mk> | |
8 | 8 | |||
9 | .include "${.CURDIR}/../../Makefile.inc" | 9 | .include "${.CURDIR}/../../Makefile.inc" | |
10 | 10 | |||
11 | .if defined(LD32DIR) | 11 | .if defined(MLIBDIR) | |
12 | LIBDIR=/usr/lib/${LD32DIR}/security | 12 | LIBDIR=/usr/lib/${MLIBDIR}/security | |
13 | .else | 13 | .else | |
14 | LIBDIR=/usr/lib/security | 14 | LIBDIR=/usr/lib/security | |
15 | .endif | 15 | .endif | |
16 | WARNS=3 | 16 | WARNS=3 | |
17 | 17 | |||
18 | .if ${MKPIC} != "no" | 18 | .if ${MKPIC} != "no" | |
19 | .PRECIOUS: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR} | 19 | .PRECIOUS: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR} | |
20 | libinstall:: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR} | 20 | libinstall:: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR} | |
21 | .else | 21 | .else | |
22 | libinstall:: | 22 | libinstall:: | |
23 | .endif | 23 | .endif | |
24 | 24 | |||
25 | .include <bsd.lib.mk> | 25 | .include <bsd.lib.mk> |