From 74a585eeb764882a482f1092d3701426023ea151 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Sat, 19 Mar 2011 22:55:28 -0700 Subject: Add build rules for stage1. --- Makefile.in | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Makefile.in b/Makefile.in index a83c0c6f..fe153137 100644 --- a/Makefile.in +++ b/Makefile.in @@ -343,6 +343,8 @@ COMPILER_INPUTS := $(wildcard $(addprefix $(S)src/comp/, \ all: boot/rustboot$(X) \ rt/$(CFG_RUNTIME) \ llvmext/$(CFG_LLVMEXT) \ + stage0/$(CFG_STDLIB) \ + stage1/$(CFG_STDLIB) \ stage0/rustc$(X) \ stage0/glue.o \ $(GENERATED) @@ -372,11 +374,18 @@ boot/version.ml: $(MKFILES) $(Q)git log -1 \ --pretty=format:'let version = "prerelease (%h %ci)";;' >$@ || exit 1 + stage0/$(CFG_STDLIB): $(S)src/$(STDLIB_CRATE) $(STDLIB_INPUTS) \ boot/rustboot$(X) $(MKFILES) @$(call E, compile: $@) $(BOOT) -shared -o $@ $< +stage1/$(CFG_STDLIB): $(S)src/$(STDLIB_CRATE) $(STDLIB_INPUTS) \ + stage0/rustc$(X) $(MKFILES) + @$(call E, compile: $@) + $(STAGE0) -shared -o $@ $< + + stage0/rustc$(X): $(S)src/$(COMPILER_CRATE) $(COMPILER_INPUTS) \ boot/rustboot$(X) rt/$(CFG_RUNTIME) \ stage0/$(CFG_STDLIB) @@ -384,11 +393,24 @@ stage0/rustc$(X): $(S)src/$(COMPILER_CRATE) $(COMPILER_INPUTS) \ $(BOOT) -minimal -o $@ $< $(Q)chmod 0755 $@ +stage1/rustc$(X): $(S)src/$(COMPILER_CRATE) $(COMPILER_INPUTS) \ + stage0/rustc$(X) rt/$(CFG_RUNTIME) \ + stage1/$(CFG_STDLIB) + @$(call E, compile: $@) + $(STAGE0) -o $@ $< + $(Q)chmod 0755 $@ + + stage0/glue.bc: stage0/rustc$(X) stage0/$(CFG_STDLIB) \ llvmext/$(CFG_LLVMEXT) rt/$(CFG_RUNTIME) @$(call E, generate: $@) $(STAGE0) -o $@ -glue +stage1/glue.bc: stage1/rustc$(X) stage1/$(CFG_STDLIB) \ + llvmext/$(CFG_LLVMEXT) rt/$(CFG_RUNTIME) + @$(call E, generate: $@) + $(STAGE1) -o $@ -glue + ###################################################################### # Pattern rules ###################################################################### -- cgit v1.2.3