Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/usr.bin - move driver file config to Makef...
details: https://anonhg.NetBSD.org/src/rev/166d343e43c1
branches: trunk
changeset: 448393:166d343e43c1
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Feb 01 10:32:32 2019 +0000
description:
- move driver file config to Makefile.driver.
diffstat:
external/gpl3/gcc/usr.bin/Makefile.driver | 20 ++++++++++++++++++++
external/gpl3/gcc/usr.bin/frontend/Makefile | 17 ++---------------
2 files changed, 22 insertions(+), 15 deletions(-)
diffs (55 lines):
diff -r aa3e59225b7f -r 166d343e43c1 external/gpl3/gcc/usr.bin/Makefile.driver
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gcc/usr.bin/Makefile.driver Fri Feb 01 10:32:32 2019 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile.driver,v 1.1 2019/02/01 10:32:32 mrg Exp $
+
+.ifndef _EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_DRIVER_
+_EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_DRIVER_=1
+
+# XXX
+.if ${GCC_MACHINE_ARCH} == "x86_64" || ${GCC_MACHINE_ARCH} == "i386"
+SRCS+= driver-i386.c
+.PATH: ${DIST}/gcc/config/i386
+.endif
+.if ${GCC_MACHINE_ARCH} == "powerpc" || ${GCC_MACHINE_ARCH} == "powerpc64"
+SRCS+= driver-rs6000.c
+.PATH: ${DIST}/gcc/config/rs6000
+.endif
+.if ${GCC_MACHINE_ARCH} == "aarch64"
+SRCS+= driver-aarch64.c
+.PATH: ${DIST}/gcc/config/aarch64
+.endif
+
+.endif
diff -r aa3e59225b7f -r 166d343e43c1 external/gpl3/gcc/usr.bin/frontend/Makefile
--- a/external/gpl3/gcc/usr.bin/frontend/Makefile Fri Feb 01 10:31:55 2019 +0000
+++ b/external/gpl3/gcc/usr.bin/frontend/Makefile Fri Feb 01 10:32:32 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2018/07/15 16:37:04 christos Exp $
+# $NetBSD: Makefile,v 1.13 2019/02/01 10:32:32 mrg Exp $
LIBISPRIVATE= yes
@@ -11,20 +11,7 @@
HOSTPROG_CXX= 1
-# XXX
-.if ${GCC_MACHINE_ARCH} == "x86_64" || ${GCC_MACHINE_ARCH} == "i386"
-SRCS+= driver-i386.c
-.PATH: ${DIST}/gcc/config/i386
-.endif
-.if ${GCC_MACHINE_ARCH} == "powerpc" || ${GCC_MACHINE_ARCH} == "powerpc64"
-SRCS+= driver-rs6000.c
-.PATH: ${DIST}/gcc/config/rs6000
-.endif
-.if ${GCC_MACHINE_ARCH} == "aarch64"
-SRCS+= driver-aarch64.c
-.PATH: ${DIST}/gcc/config/aarch64
-.endif
-
+.include "../Makefile.driver"
.include "../Makefile.target-defines"
version.c: ${GCCARCH}/defs.mk ${TOP}/tools/gcc/gcc-version.mk
Home |
Main Index |
Thread Index |
Old Index