2011-06-17 15:32:41 -04:00
|
|
|
stage1/lib/$(CFG_STDLIB): $(STDLIB_CRATE) $(STDLIB_INPUTS) \
|
2011-06-17 18:17:15 -07:00
|
|
|
stage1/rustc$(X) stage0/lib/$(CFG_STDLIB) stage1/intrinsics.bc \
|
2011-06-16 15:18:15 -04:00
|
|
|
stage1/glue.o $(LREQ) $(MKFILES)
|
2011-06-15 19:40:22 -04:00
|
|
|
@$(call E, compile_and_link: $@)
|
|
|
|
$(STAGE1) --shared -o $@ $<
|
2011-05-01 20:18:52 +00:00
|
|
|
|
2011-06-17 18:17:15 -07:00
|
|
|
stage1/glue.o: stage1/rustc$(X) stage0/lib/$(CFG_STDLIB) stage1/intrinsics.bc \
|
2011-05-04 18:28:30 -07:00
|
|
|
$(LREQ) $(MKFILES)
|
2011-05-01 20:18:52 +00:00
|
|
|
@$(call E, generate: $@)
|
2011-06-15 19:40:22 -04:00
|
|
|
$(STAGE1) -c -o $@ --glue
|
2011-05-01 20:18:52 +00:00
|
|
|
|
2011-05-04 18:28:30 -07:00
|
|
|
stage1/intrinsics.bc: $(INTRINSICS_BC)
|
|
|
|
@$(call E, cp: $@)
|
|
|
|
$(Q)cp $< $@
|
|
|
|
|
2011-05-01 20:18:52 +00: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.
|
|
|
|
|
|
|
|
stage1/%.o: stage1/%.s
|
|
|
|
@$(call E, assemble [gcc]: $@)
|
2011-05-08 21:10:04 -07:00
|
|
|
$(Q)gcc $(CFG_GCCISH_CFLAGS) -o $@ -c $<
|
2011-05-01 20:18:52 +00:00
|
|
|
|
2011-06-16 15:49:12 -04:00
|
|
|
stage1/%$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ0) stage0/intrinsics.bc
|
2011-06-15 19:40:22 -04:00
|
|
|
@$(call E, compile_and_link: $@)
|
|
|
|
$(STAGE0) -o $@ $<
|