Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/lib Skip building anything if the target's .mk files are...
details: https://anonhg.NetBSD.org/src/rev/a1ff0944336f
branches: trunk
changeset: 522160:a1ff0944336f
user: tv <tv%NetBSD.org@localhost>
date: Mon Feb 11 21:36:33 2002 +0000
description:
Skip building anything if the target's .mk files are missing. (Allows the
toolchain to be built in segments, or not at all if the in-tree toolchain
is inappropriate for the target.)
diffstat:
gnu/lib/libbfd/Makefile | 6 +++++-
gnu/lib/libg2c/Makefile | 6 +++++-
gnu/lib/libgcc/Makefile | 6 +++++-
gnu/lib/libiberty/Makefile | 4 ++--
gnu/lib/libobjc/Makefile | 6 +++++-
gnu/lib/libstdc++/Makefile | 6 +++++-
6 files changed, 27 insertions(+), 7 deletions(-)
diffs (153 lines):
diff -r 49364ef7b573 -r a1ff0944336f gnu/lib/libbfd/Makefile
--- a/gnu/lib/libbfd/Makefile Mon Feb 11 21:24:09 2002 +0000
+++ b/gnu/lib/libbfd/Makefile Mon Feb 11 21:36:33 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2001/12/12 01:48:57 tv Exp $
+# $NetBSD: Makefile,v 1.25 2002/02/11 21:36:33 tv Exp $
LIB= bfd
@@ -11,6 +11,7 @@
.if defined(USE_NEW_TOOLCHAIN)
+.if exists(${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk)
.include "${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk"
SHLIB_MAJOR= 4
@@ -40,6 +41,9 @@
${OBJS} ${SOBJS}: elf32-target.h elf64-target.h
targets.o targets.so: targmatch.h Makefile
+.else
+.include <bsd.prog.mk> # do nothing
+.endif
.else
#
diff -r 49364ef7b573 -r a1ff0944336f gnu/lib/libg2c/Makefile
--- a/gnu/lib/libg2c/Makefile Mon Feb 11 21:24:09 2002 +0000
+++ b/gnu/lib/libg2c/Makefile Mon Feb 11 21:36:33 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2001/12/12 23:08:26 lukem Exp $
+# $NetBSD: Makefile,v 1.16 2002/02/11 21:36:34 tv Exp $
REQUIRETOOLS= yes
NOLINT= # defined
@@ -9,6 +9,7 @@
.if defined(USE_NEW_TOOLCHAIN)
+.if exists(${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk)
.include "${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk"
SHLIB_MAJOR= 1
@@ -52,6 +53,9 @@
.include <bsd.lib.mk>
${OBJS}: ${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk
+.else
+.include <bsd.prog.mk> # do nothing
+.endif
.else
#
diff -r 49364ef7b573 -r a1ff0944336f gnu/lib/libgcc/Makefile
--- a/gnu/lib/libgcc/Makefile Mon Feb 11 21:24:09 2002 +0000
+++ b/gnu/lib/libgcc/Makefile Mon Feb 11 21:36:33 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 2002/01/02 09:17:48 tron Exp $
+# $NetBSD: Makefile,v 1.38 2002/02/11 21:36:35 tv Exp $
REQUIRETOOLS= yes
@@ -11,6 +11,7 @@
.if defined(USE_NEW_TOOLCHAIN)
+.if exists(${.CURDIR}/${MACHINE_ARCH}.mk)
.include "${.CURDIR}/${MACHINE_ARCH}.mk"
TOP= ${.CURDIR}/../..
@@ -69,6 +70,9 @@
.include <bsd.lib.mk>
${OBJS} ${SOBJS} ${POBJS}: ${.CURDIR}/${MACHINE_ARCH}.mk
+.else
+.include <bsd.prog.mk> # do nothing
+.endif
.else
#
diff -r 49364ef7b573 -r a1ff0944336f gnu/lib/libiberty/Makefile
--- a/gnu/lib/libiberty/Makefile Mon Feb 11 21:24:09 2002 +0000
+++ b/gnu/lib/libiberty/Makefile Mon Feb 11 21:36:33 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2001/12/12 23:09:13 lukem Exp $
+# $NetBSD: Makefile,v 1.4 2002/02/11 21:36:35 tv Exp $
NOLINT= # defined
NOPROFILE= # defined
@@ -7,7 +7,7 @@
.include <bsd.own.mk>
-.if defined(USE_NEW_TOOLCHAIN)
+.if defined(USE_NEW_TOOLCHAIN) && exists(${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk)
LIB= iberty
diff -r 49364ef7b573 -r a1ff0944336f gnu/lib/libobjc/Makefile
--- a/gnu/lib/libobjc/Makefile Mon Feb 11 21:24:09 2002 +0000
+++ b/gnu/lib/libobjc/Makefile Mon Feb 11 21:36:33 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2001/12/12 23:00:50 thorpej Exp $
+# $NetBSD: Makefile,v 1.17 2002/02/11 21:36:36 tv Exp $
REQUIRETOOLS= yes
NOLINT= # defined
@@ -9,6 +9,7 @@
.if defined(USE_NEW_TOOLCHAIN)
+.if exists(${.CURDIR}/${MACHINE_ARCH}.mk)
SHLIB_MAJOR= 1
SHLIB_MINOR= 0
@@ -41,6 +42,9 @@
.include <bsd.lib.mk>
${OBJS}: ${.CURDIR}/${MACHINE_ARCH}.mk runtime-info.h
+.else
+.include <bsd.prog.mk> # do nothing
+.endif
.else
#
diff -r 49364ef7b573 -r a1ff0944336f gnu/lib/libstdc++/Makefile
--- a/gnu/lib/libstdc++/Makefile Mon Feb 11 21:24:09 2002 +0000
+++ b/gnu/lib/libstdc++/Makefile Mon Feb 11 21:36:33 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2001/12/12 23:11:00 lukem Exp $
+# $NetBSD: Makefile,v 1.17 2002/02/11 21:36:36 tv Exp $
REQUIRETOOLS= yes
NOLINT= # defined
@@ -9,6 +9,7 @@
.if defined(USE_NEW_TOOLCHAIN)
+.if exists(${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk)
.include "${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk"
SHLIB_MAJOR= 4
@@ -77,6 +78,9 @@
.include <bsd.info.mk>
${OBJS}: ${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk
+.else
+.include <bsd.prog.mk> # do nothing
+.endif
.else
#
Home |
Main Index |
Thread Index |
Old Index