2011-06-15 22:36:55 +02:00
|
|
|
stage3/$(CFG_STDLIB): $(STDLIB_CRATE) $(STDLIB_INPUTS) \
|
2011-06-16 01:40:22 +02:00
|
|
|
stage3/rustc$(X) stage2/$(CFG_STDLIB) stage3/intrinsics.bc \
|
2011-06-16 21:18:15 +02:00
|
|
|
stage3/glue.o $(LREQ) $(MKFILES)
|
2011-06-15 22:36:55 +02:00
|
|
|
@$(call E, compile_and_link: $@)
|
2011-06-16 01:40:22 +02:00
|
|
|
$(STAGE3) --shared -o $@ $<
|
2011-05-01 22:18:52 +02:00
|
|
|
|
2011-06-16 01:40:22 +02:00
|
|
|
stage3/glue.o: stage3/rustc$(X) stage2/$(CFG_STDLIB) stage3/intrinsics.bc \
|
2011-06-07 22:41:19 +02:00
|
|
|
rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME)
|
2011-05-01 22:18:52 +02:00
|
|
|
@$(call E, generate: $@)
|
2011-06-16 01:40:22 +02:00
|
|
|
$(STAGE3) -c -o $@ --glue
|
2011-05-01 22:18:52 +02:00
|
|
|
|
2011-05-05 03:28:30 +02:00
|
|
|
stage3/intrinsics.bc: $(INTRINSICS_BC)
|
|
|
|
@$(call E, cp: $@)
|
|
|
|
$(Q)cp $< $@
|
|
|
|
|
2011-05-01 22:18:52 +02: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-09 06:10:04 +02:00
|
|
|
$(Q)gcc $(CFG_GCCISH_CFLAGS) -o $@ -c $<
|
2011-05-01 22:18:52 +02:00
|
|
|
|
2011-06-16 21:49:12 +02:00
|
|
|
stage3/%$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ2) stage2/intrinsics.bc
|
2011-06-13 22:28:46 +02:00
|
|
|
@$(call E, compile_and_link: $@)
|
|
|
|
$(STAGE2) -o $@ $<
|