aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-03-19 22:55:28 -0700
committerGraydon Hoare <[email protected]>2011-03-19 22:55:28 -0700
commit74a585eeb764882a482f1092d3701426023ea151 (patch)
treeb407f58cdca380208186d2ff6e53f608494cb88d /Makefile.in
parentSet up dynamic library paths properly in builddir. (diff)
downloadrust-74a585eeb764882a482f1092d3701426023ea151.tar.xz
rust-74a585eeb764882a482f1092d3701426023ea151.zip
Add build rules for stage1.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in22
1 files changed, 22 insertions, 0 deletions
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
######################################################################