Module Name: src Committed By: mrg Date: Fri Feb 1 10:32:32 UTC 2019
Modified Files: src/external/gpl3/gcc/usr.bin/frontend: Makefile Added Files: src/external/gpl3/gcc/usr.bin: Makefile.driver Log Message: - move driver file config to Makefile.driver. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/external/gpl3/gcc/usr.bin/Makefile.driver cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gcc/usr.bin/frontend/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gcc/usr.bin/frontend/Makefile diff -u src/external/gpl3/gcc/usr.bin/frontend/Makefile:1.12 src/external/gpl3/gcc/usr.bin/frontend/Makefile:1.13 --- src/external/gpl3/gcc/usr.bin/frontend/Makefile:1.12 Sun Jul 15 16:37:04 2018 +++ src/external/gpl3/gcc/usr.bin/frontend/Makefile Fri Feb 1 10:32:32 2019 @@ -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 @@ SRCS= gcc.c version.c prefix.c 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 Added files: Index: src/external/gpl3/gcc/usr.bin/Makefile.driver diff -u /dev/null src/external/gpl3/gcc/usr.bin/Makefile.driver:1.1 --- /dev/null Fri Feb 1 10:32:32 2019 +++ src/external/gpl3/gcc/usr.bin/Makefile.driver Fri Feb 1 10:32:32 2019 @@ -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