aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-03-29 17:33:33 -0700
committerGraydon Hoare <[email protected]>2011-03-29 17:33:39 -0700
commitb55c8333cbc44c3dd21b6de8c6647c3c1a8f9c87 (patch)
treeab1ff40c0131afbc48416770af2cc5b1b6843b6f /Makefile.in
parentrustc: Un-XFAIL lib-int.rs. (diff)
downloadrust-b55c8333cbc44c3dd21b6de8c6647c3c1a8f9c87.tar.xz
rust-b55c8333cbc44c3dd21b6de8c6647c3c1a8f9c87.zip
Beef up the SREQ variables in Makefile.in, make tests depend on libstd.so
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in20
1 files changed, 9 insertions, 11 deletions
diff --git a/Makefile.in b/Makefile.in
index 1ac4c251..6b5d44b4 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -388,8 +388,9 @@ COMPILER_INPUTS := $(wildcard $(addprefix $(S)src/comp/, \
LREQ := rt/$(CFG_RUNTIME) rustllvm/$(CFG_RUSTLLVM)
BREQ := boot/rustboot$(X) boot/$(CFG_STDLIB)
-SREQ0 := stage0/rustc$(X) $(LREQ)
-SREQ1 := stage1/rustc$(X) $(LREQ)
+SREQ0 := stage0/rustc$(X) $(LREQ) stage0/glue.o stage0/$(CFG_STDLIB)
+SREQ1 := stage1/rustc$(X) $(LREQ) stage1/glue.o stage1/$(CFG_STDLIB)
+SREQ2 := stage2/rustc$(X) $(LREQ) stage2/glue.o stage2/$(CFG_STDLIB)
######################################################################
@@ -468,20 +469,17 @@ stage2/$(CFG_STDLIB): stage2/std.o stage2/glue.o
-stage0/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) \
- $(BREQ)
+stage0/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(BREQ)
@$(call E, compile: $@)
$(BOOT) -minimal -o $@ $<
$(Q)chmod 0755 $@
-stage1/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) \
- $(SREQ0) stage0/$(CFG_STDLIB)
+stage1/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ0)
@$(call E, compile: $@)
$(STAGE0) -o $@ $<
$(Q)chmod 0755 $@
-stage2/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) \
- $(SREQ1) stage1/$(CFG_STDLIB)
+stage2/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ1)
@$(call E, compile: $@)
$(STAGE1) -o $@ $<
$(Q)chmod 0755 $@
@@ -714,7 +712,7 @@ compile-check: tidy \
# Testing rules
######################################################################
-%.stage0$(X): %.stage0.o rt/$(CFG_RUNTIME) stage0/glue.o
+%.stage0$(X): %.stage0.o $(SREQ0)
@$(call E, link [gcc]: $@)
$(Q)gcc $(CFG_GCC_CFLAGS) stage0/glue.o -o $@ $< \
-Lstage0 -Lrt -lrustrt -lstd
@@ -723,7 +721,7 @@ compile-check: tidy \
@# programs, I\'ll live with the noise.
-$(Q)$(CFG_DSYMUTIL) $@
-%.stage1(X): %.stage1.o rt/$(CFG_RUNTIME) stage1/glue.o
+%.stage1(X): %.stage1.o $(SREQ1)
@$(call E, link [gcc]: $@)
$(Q)gcc $(CFG_GCC_CFLAGS) stage1/glue.o -o $@ $< \
-Lstage1 -Lrt -lrustrt -lstd
@@ -732,7 +730,7 @@ compile-check: tidy \
@# programs, I\'ll live with the noise.
-$(Q)$(CFG_DSYMUTIL) $@
-%.stage2$(X): %.stage2.o rt/$(CFG_RUNTIME) stage2/glue.o
+%.stage2$(X): %.stage2.o $(SREQ2)
@$(call E, link [gcc]: $@)
$(Q)gcc $(CFG_GCC_CFLAGS) stage2/glue.o -o $@ $< \
-Lstage2 -Lrt -lrustrt -lstd