Mon Dec 14 06:29:20 2009 UTC ()
s/LD32DIR/MLIBDIR/ in most places, also look for CSU_MACHINE_ARCH.


(mrg)
diff -r1.24 -r1.24.46.1 src/lib/csu/Makefile
diff -r1.10 -r1.10.8.1 src/lib/i18n_module/Makefile.inc
diff -r1.21 -r1.21.8.1 src/lib/libarch/Makefile
diff -r1.13 -r1.13.8.1 src/lib/libarch/i386/Makefile.inc
diff -r1.3 -r1.3.8.1 src/lib/libarch/x86_64/Makefile.inc
diff -r1.8 -r1.8.8.1 src/lib/libpam/Makefile.inc
diff -r1.6 -r1.6.8.1 src/lib/libpam/modules/mod.mk

cvs diff -r1.24 -r1.24.46.1 src/lib/csu/Makefile (expand / switch to unified diff)

--- 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)
 6SUBDIR= ${CSU_MACHINE_ARCH}_elf
 7.elif ${OBJECT_FMT} == "ELF" && exists(${MACHINE_ARCH}_elf)
6SUBDIR= ${MACHINE_ARCH}_elf 8SUBDIR= ${MACHINE_ARCH}_elf
7.elif ${OBJECT_FMT} == "ELF" && exists(${MACHINE_CPU}_elf) 9.elif ${OBJECT_FMT} == "ELF" && exists(${MACHINE_CPU}_elf)
8SUBDIR= ${MACHINE_CPU}_elf 10SUBDIR= ${MACHINE_CPU}_elf
9.elif exists(${MACHINE_ARCH}) 11.elif exists(${MACHINE_ARCH})
10SUBDIR= ${MACHINE_ARCH} 12SUBDIR= ${MACHINE_ARCH}
11.elif exists(${MACHINE_CPU}) 13.elif exists(${MACHINE_CPU})
12SUBDIR= ${MACHINE_CPU} 14SUBDIR= ${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

cvs diff -r1.10 -r1.10.8.1 src/lib/i18n_module/Makefile.inc (expand / switch to unified diff)

--- 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
3NOLINT= # defined 3NOLINT= # defined
4NOPICINSTALL= # defined 4NOPICINSTALL= # defined
5NOPROFILE= # defined 5NOPROFILE= # defined
6 6
7.include <bsd.own.mk> 7.include <bsd.own.mk>
8 8
9SHLIB_VERSION_FILE= ${NETBSDSRCDIR}/lib/i18n_module/shlib_version 9SHLIB_VERSION_FILE= ${NETBSDSRCDIR}/lib/i18n_module/shlib_version
10.if defined(LD32DIR) 10.if defined(MLIBDIR)
11LIBDIR= /usr/lib/${LD32DIR}/i18n 11LIBDIR= /usr/lib/${MLIBDIR}/i18n
12SHLIBDIR= /usr/lib/${LD32DIR}/i18n 12SHLIBDIR= /usr/lib/${MLIBDIR}/i18n
13SHLIBINSTALLDIR=/usr/lib/${LD32DIR}/i18n 13SHLIBINSTALLDIR=/usr/lib/${MLIBDIR}/i18n
14.else 14.else
15LIBDIR= /usr/lib/i18n 15LIBDIR= /usr/lib/i18n
16SHLIBDIR= /usr/lib/i18n 16SHLIBDIR= /usr/lib/i18n
17SHLIBINSTALLDIR=/usr/lib/i18n 17SHLIBINSTALLDIR=/usr/lib/i18n
18.endif 18.endif
19CPPFLAGS+= -I${NETBSDSRCDIR}/lib/libc/citrus 19CPPFLAGS+= -I${NETBSDSRCDIR}/lib/libc/citrus
20CPPFLAGS+= -DLOCALEMOD_MAJOR=${SHLIB_MAJOR} 20CPPFLAGS+= -DLOCALEMOD_MAJOR=${SHLIB_MAJOR}
21CPPFLAGS+= -DLIBC_SCCS 21CPPFLAGS+= -DLIBC_SCCS
22BASENAME= ${.CURDIR:T} 22BASENAME= ${.CURDIR:T}
23LIB= ${BASENAME} 23LIB= ${BASENAME}
24SRCS?= ${SRCPRE:tl}${BASENAME:tl}.c 24SRCS?= ${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

cvs diff -r1.21 -r1.21.8.1 src/lib/libarch/Makefile (expand / switch to unified diff)

--- 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
4ARCHDIRS= alpha arm i386 m68k sparc x86_64 4ARCHDIRS= 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
11OBJS+= ${ASM} 11OBJS+= ${ASM}
12POBJS+= ${ASM:.o=.po} 12POBJS+= ${ASM:.o=.po}
13CLEANFILES+= ${ASM} ${POBJS} 13CLEANFILES+= ${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"
18LIB= ${LD32DIR} 18LIB= ${MLIBDIR}
19.else 19.else
20LIB= ${MACHINE_CPU} 20LIB= ${MACHINE_CPU}
21.endif 21.endif
22SHLIB_VERSION_FILE= ${.CURDIR}/${LIB}/shlib_version 22SHLIB_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>

cvs diff -r1.13 -r1.13.8.1 src/lib/libarch/i386/Makefile.inc (expand / switch to unified diff)

--- 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
3LD32DIR?= none 3MLIBDIR?= none
4 4
5.if (${MACHINE_ARCH} == "i386" || ${LD32DIR} == "i386") 5.if (${MACHINE_ARCH} == "i386" || ${MLIBDIR} == "i386")
6SRCS+= i386_get_ldt.c i386_set_ldt.c \ 6SRCS+= 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
11MAN+= i386_get_ldt.2 \ 11MAN+= 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
17MLINKS+=i386_get_ldt.2 i386_set_ldt.2 \ 17MLINKS+=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 \

cvs diff -r1.3 -r1.3.8.1 src/lib/libarch/x86_64/Makefile.inc (expand / switch to unified diff)

--- 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
3LD32DIR?= none 3MLIBDIR?= none
4 4
5.if (${MACHINE_ARCH} == "x86_64" && ${LD32DIR} != "i386") 5.if (${MACHINE_ARCH} == "x86_64" && ${MLIBDIR} != "i386")
6SRCS+= x86_64_mtrr.c x86_64_iopl.c 6SRCS+= x86_64_mtrr.c x86_64_iopl.c
7.endif 7.endif
8 8
9MAN+= x86_64_get_mtrr.2 x86_64_iopl.2 9MAN+= x86_64_get_mtrr.2 x86_64_iopl.2
10 10
11MLINKS+=x86_64_get_mtrr.2 x86_64_set_mtrr.2 11MLINKS+=x86_64_get_mtrr.2 x86_64_set_mtrr.2

cvs diff -r1.8 -r1.8.8.1 src/lib/libpam/Makefile.inc (expand / switch to unified diff)

--- 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
28USE_FORT?= yes # network client software *and* authentication software 28USE_FORT?= yes # network client software *and* authentication software
29 29
30CPPFLAGS+= -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)
 36MODLIBDIR=/usr/lib/${MLIBDIR}/security
 37.else
 38MODLIBDIR=/usr/lib/security
 39.endif
 40
 41CPPFLAGS+= -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.
36CSHLIBFLAGS+= -DNO_STATIC_MODULES 47CSHLIBFLAGS+= -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.
40SHLIB_MAJOR= 1 51SHLIB_MAJOR= 1
41SHLIB_MINOR= 0 52SHLIB_MINOR= 0

cvs diff -r1.6 -r1.6.8.1 src/lib/libpam/modules/mod.mk (expand / switch to unified diff)

--- 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
3NOLINT= # don't build a lint library 3NOLINT= # don't build a lint library
4NOPROFILE= # don't build a profile library 4NOPROFILE= # don't build a profile library
5NOPICINSTALL= # don't install _pic.a library 5NOPICINSTALL= # 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)
12LIBDIR=/usr/lib/${LD32DIR}/security 12LIBDIR=/usr/lib/${MLIBDIR}/security
13.else 13.else
14LIBDIR=/usr/lib/security 14LIBDIR=/usr/lib/security
15.endif 15.endif
16WARNS=3 16WARNS=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}
20libinstall:: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR} 20libinstall:: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR}
21.else 21.else
22libinstall:: 22libinstall::
23.endif 23.endif
24 24
25.include <bsd.lib.mk> 25.include <bsd.lib.mk>