diff --git a/external/gpl3/gcc/usr.bin/Makefile b/external/gpl3/gcc/usr.bin/Makefile index 2bc6d45882d4..f1dbc1a0fa59 100644 --- a/external/gpl3/gcc/usr.bin/Makefile +++ b/external/gpl3/gcc/usr.bin/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2014/03/01 10:00:49 mrg Exp $ +# $NetBSD: Makefile,v 1.6 2015/01/07 02:02:44 christos Exp $ NOOBJ=# defined @@ -16,6 +16,7 @@ SUBDIR+= host-libiberty .WAIT \ common common-target .WAIT \ libcpp libdecnumber .WAIT \ gcov cc1 cc1obj cc1plus cpp g++ gcc \ + lto lto-wrapper \ include .include diff --git a/external/gpl3/gcc/usr.bin/lto-wrapper/Makefile b/external/gpl3/gcc/usr.bin/lto-wrapper/Makefile new file mode 100644 index 000000000000..f5c40961d2db --- /dev/null +++ b/external/gpl3/gcc/usr.bin/lto-wrapper/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1 2015/01/07 02:02:44 christos Exp $ + +NOMAN=1 +PROG= lto-wrapper +SRCS= lto-wrapper.c +CPPFLAGS+= -DPREFIX=\"/usr\" + +.include "../Makefile.backend" +.include "../Makefile.backtrace" +.include "../Makefile.common-target" +.include "../Makefile.libcpp" + +DPADD+= ${LIBIBERTYOBJ}/libiberty.a +LDADD+= ${LIBIBERTYOBJ}/libiberty.a + + +# VER_CPPFLAGS from Makefile.inc + +LDADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm +DPADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM} + +.PATH: ${DIST}/gcc ${DIST}/gcc/c ${DIST}/gcc/c-family ${DIST}/gcc/config +.PATH: ${G_out_file:H} diff --git a/external/gpl3/gcc/usr.bin/lto1/Makefile b/external/gpl3/gcc/usr.bin/lto1/Makefile new file mode 100644 index 000000000000..0d6324fba13e --- /dev/null +++ b/external/gpl3/gcc/usr.bin/lto1/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2015/01/07 02:02:44 christos Exp $ + +PROG= lto1 +SRCS= lto-partition.c lto-object.c lto.c lto-lang.c attribs.c main.c + +CPPFLAGS+= -DPREFIX=\"/usr\" + +.include "../Makefile.backend" +.include "../Makefile.backtrace" +.include "../Makefile.common" +.include "../Makefile.common-target" +.include "../Makefile.libcpp" +.include "../Makefile.libdecnumber" +.include "../Makefile.libiberty" + +LDADD+= ${LIBIBERTYOBJ}/libiberty.a +DPADD+= ${LIBIBERTYOBJ}/libiberty.a +LDADD+= ${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm +DPADD+= ${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM} + +.PATH: ${DIST}/gcc/lto ${DIST}/gcc # ${DIST}/gcc/c ${DIST}/gcc/c-family ${DIST}/gcc/config +.PATH: ${G_out_file:H}