2011-06-17 14:32:41 -05:00
|
|
|
stage3/lib/$(CFG_STDLIB): $(STDLIB_CRATE) $(STDLIB_INPUTS) \
|
|
|
|
stage3/rustc$(X) stage2/lib/$(CFG_STDLIB) stage3/intrinsics.bc \
|
2011-07-11 15:31:47 -05:00
|
|
|
stage3/lib/$(CFG_RUNTIME) stage3/$(CFG_RUSTLLVM) \
|
2011-07-07 18:52:01 -05:00
|
|
|
stage3/lib/glue.o $(LREQ) $(MKFILES)
|
2011-06-15 15:36:55 -05:00
|
|
|
@$(call E, compile_and_link: $@)
|
2011-07-07 13:42:18 -05:00
|
|
|
$(STAGE3) --lib -o $@ $<
|
2011-05-01 15:18:52 -05:00
|
|
|
|
2011-07-07 15:07:16 -05:00
|
|
|
stage3/lib/libstd.rlib: $(STDLIB_CRATE) $(STDLIB_INPUTS) \
|
|
|
|
stage3/rustc$(X) stage2/lib/$(CFG_STDLIB) stage3/intrinsics.bc \
|
2011-07-11 15:31:47 -05:00
|
|
|
stage3/lib/$(CFG_RUNTIME) stage3/$(CFG_RUSTLLVM) \
|
2011-07-07 18:52:01 -05:00
|
|
|
stage3/lib/glue.o $(LREQ) $(MKFILES)
|
2011-07-07 15:07:16 -05:00
|
|
|
@$(call E, compile_and_link: $@)
|
|
|
|
$(STAGE3) --lib --static -o $@ $<
|
|
|
|
|
2011-06-28 14:20:43 -05:00
|
|
|
stage3/lib/glue.o: stage3/rustc$(X) stage2/lib/$(CFG_STDLIB) \
|
2011-07-11 15:31:47 -05:00
|
|
|
stage3/intrinsics.bc stage3/$(CFG_RUSTLLVM) \
|
|
|
|
stage2/lib/$(CFG_RUNTIME)
|
2011-05-01 15:18:52 -05:00
|
|
|
@$(call E, generate: $@)
|
2011-06-15 18:40:22 -05:00
|
|
|
$(STAGE3) -c -o $@ --glue
|
2011-05-01 15:18:52 -05:00
|
|
|
|
2011-05-04 20:28:30 -05:00
|
|
|
stage3/intrinsics.bc: $(INTRINSICS_BC)
|
|
|
|
@$(call E, cp: $@)
|
|
|
|
$(Q)cp $< $@
|
|
|
|
|
2011-07-07 08:39:11 -05:00
|
|
|
stage3/lib/$(CFG_RUNTIME): rt/$(CFG_RUNTIME)
|
|
|
|
@$(call E, cp: $@)
|
|
|
|
$(Q)cp $< $@
|
|
|
|
|
2011-07-11 15:31:47 -05:00
|
|
|
stage3/$(CFG_RUSTLLVM): rustllvm/$(CFG_RUSTLLVM)
|
2011-07-07 08:39:11 -05:00
|
|
|
@$(call E, cp: $@)
|
|
|
|
$(Q)cp $< $@
|
|
|
|
|
2011-05-01 15:18:52 -05:00
|
|
|
# Due to make not wanting to run the same implicit rules twice on the same
|
|
|
|
# rule tree (implicit-rule recursion prevention, see "Chains of Implicit
|
|
|
|
# Rules" in GNU Make manual) we have to re-state the %.o and %.s patterns here
|
|
|
|
# for different directories, to handle cases where (say) a test relies on a
|
|
|
|
# compiler that relies on a .o file.
|
|
|
|
|
|
|
|
stage3/%.o: stage3/%.s
|
|
|
|
@$(call E, assemble [gcc]: $@)
|
2011-05-08 23:10:04 -05:00
|
|
|
$(Q)gcc $(CFG_GCCISH_CFLAGS) -o $@ -c $<
|
2011-05-01 15:18:52 -05:00
|
|
|
|
2011-07-07 19:11:34 -05:00
|
|
|
stage3/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ2) stage2/intrinsics.bc
|
2011-06-13 15:28:46 -05:00
|
|
|
@$(call E, compile_and_link: $@)
|
|
|
|
$(STAGE2) -o $@ $<
|