summaryrefslogtreecommitdiff
path: root/gcc/Makefile.in
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2012-06-25 14:41:18 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2012-06-25 14:41:18 +0000
commit2a811dad4305b83c54cf1716729324137369346f (patch)
tree6141f2f4b55a15152d6852df1f0ad944116b02da /gcc/Makefile.in
parent947d3fbd8af3c53700c23aa0e13d8dc0294c6537 (diff)
downloadgcc-2a811dad4305b83c54cf1716729324137369346f.tar.gz
2012-06-25 Basile Starynkevitch <basile@starynkevitch.net>
* Makefile.in: Enable melt-newbuild.* files. when MELT_NEWBUILD * melt-newbuild.tpl: New file, incomplete. * melt-newbuild.def: New file. * melt-newbuild.mk: New generated file, incomplete. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@188936 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/Makefile.in')
-rw-r--r--gcc/Makefile.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 6f6b6e9246a..f9072c85cc9 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -5476,9 +5476,24 @@ melt_xtra_cflags = -O1
MELT_STAGE_ZERO?=melt-stage0-dynamic
AUTOGEN= autogen
+
+GCCMELT_COMPILER= $(COMPILER)
+GCCMELT_COMPILER_FLAGS= $(COMPILER_FLAGS)
+GCCMELT_LINKER= $(LINKER)
+GCCMELT_LINKER_FLAGS= $(LINKER_FLAGS)
+
+## we want to redesign the build system, so have a conditional
+## newbuild, because we might need to old build to improve and
+## regenerate MELT for the newbuild...
+ifdef MELT_NEWBUILD
+$(srcdir)/melt-newbuild.mk: @MAINT@ $(srcdir)/melt-newbuild.def $(srcdir)/melt-newbuild.tpl
+ cd $(srcdir) && $(AUTOGEN) melt-newbuild.def
+include $(srcdir)/melt-newbuild.mk
+else
$(srcdir)/melt-build.mk: @MAINT@ $(srcdir)/melt-build.def $(srcdir)/melt-build.tpl
cd $(srcdir) && $(AUTOGEN) melt-build.def
include $(srcdir)/melt-build.mk
+endif
MELT_MAKE_MODULE_XTRAMAKEFLAGS ?= -j 2