Make the rules for compiling rustc explicit

Not sure why they were implicit since their dependencies only work for rustc
This commit is contained in:
Brian Anderson 2011-07-07 17:11:34 -07:00
parent 42877bba8a
commit c6ff1e8061
3 changed files with 5 additions and 3 deletions

View File

@ -39,7 +39,8 @@ stage1/%.o: stage1/%.s
@$(call E, assemble [gcc]: $@)
$(Q)gcc $(CFG_GCCISH_CFLAGS) -o $@ -c $<
stage1/%$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ0) stage0/intrinsics.bc
stage1/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ0) \
stage0/intrinsics.bc
@$(call E, compile_and_link: $@)
$(STAGE0) -o $@ $<

View File

@ -39,6 +39,7 @@ stage2/%.o: stage2/%.s
@$(call E, assemble [gcc]: $@)
$(Q)gcc $(CFG_GCCISH_CFLAGS) -o $@ -c $<
stage2/%$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ1) stage1/intrinsics.bc
stage2/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ1) \
stage1/intrinsics.bc
@$(call E, compile_and_link: $@)
$(STAGE1) -o $@ $<

View File

@ -39,6 +39,6 @@ stage3/%.o: stage3/%.s
@$(call E, assemble [gcc]: $@)
$(Q)gcc $(CFG_GCCISH_CFLAGS) -o $@ -c $<
stage3/%$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ2) stage2/intrinsics.bc
stage3/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ2) stage2/intrinsics.bc
@$(call E, compile_and_link: $@)
$(STAGE2) -o $@ $<