2011-07-20 18:32:53 -05:00
|
|
|
# FIXME: temporary hack: stdlib comes in the lib/ directory, but we want it in
|
|
|
|
# the base directory, so we move it out.
|
2011-07-07 18:40:58 -05:00
|
|
|
stage0/rustc$(X): $(S)src/snapshots.txt $(S)src/etc/get-snapshot.py $(MKFILES)
|
2011-05-03 13:34:44 -05:00
|
|
|
@$(call E, fetch: $@)
|
2011-05-03 17:51:21 -05:00
|
|
|
$(Q)$(S)src/etc/get-snapshot.py
|
2011-07-20 18:32:53 -05:00
|
|
|
$(Q)mv stage0/lib/$(CFG_STDLIB) stage0/$(CFG_STDLIB)
|
2011-05-03 17:51:21 -05:00
|
|
|
$(Q)touch $@
|
2011-05-01 15:18:52 -05:00
|
|
|
|
2011-07-15 18:12:41 -05:00
|
|
|
# Host libs will be made in the process of making rustc above.
|
2011-05-03 13:34:44 -05:00
|
|
|
|
2011-07-20 18:32:53 -05:00
|
|
|
# FIXME: temporary hack: the runtime is currently carried in
|
|
|
|
# lib/ directory only, so we copy it out.
|
2011-05-03 13:34:44 -05:00
|
|
|
|
2011-07-15 18:12:41 -05:00
|
|
|
stage0/$(CFG_RUNTIME): stage0/lib/$(CFG_RUNTIME)
|
|
|
|
$(Q)cp $< $@
|
2011-05-04 20:28:30 -05:00
|
|
|
|
2011-07-20 18:32:53 -05:00
|
|
|
stage0/$(CFG_STDLIB): stage0/rustc$(X)
|
|
|
|
$(Q)touch $@
|
2011-07-11 15:31:47 -05:00
|
|
|
|
2011-07-11 17:33:17 -05:00
|
|
|
stage0/$(CFG_RUSTLLVM): stage0/rustc$(X)
|
2011-07-11 15:31:47 -05:00
|
|
|
$(Q)touch $@
|
|
|
|
|
2011-07-15 18:12:41 -05:00
|
|
|
# Target libs will be made in the process of making rustc above.
|
|
|
|
|
|
|
|
stage0/lib/glue.o: stage0/rustc$(X)
|
|
|
|
$(Q)touch $@
|
|
|
|
|
|
|
|
# FIXME: temporary hack: currently not distributing main.o like we should;
|
|
|
|
# copying from rt
|
|
|
|
|
|
|
|
stage0/lib/main.o: rt/main.o
|
|
|
|
$(Q)cp $< $@
|
|
|
|
|
2011-07-20 18:32:53 -05:00
|
|
|
|
2011-07-11 15:31:47 -05:00
|
|
|
stage0/lib/$(CFG_RUNTIME): stage0/rustc$(X)
|
|
|
|
$(Q)touch $@
|
2011-07-15 18:12:41 -05:00
|
|
|
|
2011-07-21 13:58:01 -05:00
|
|
|
# Instantiate template (in stageN.mk) for building
|
|
|
|
# stage0/lib/$(CFG_STDLIB) and stage0/lib/libstd.rlib.
|
|
|
|
SREQpre = stage0/lib/main.o $(MKFILES)
|
|
|
|
$(eval $(call STDLIBGEN,pre,0))
|
2011-07-20 15:02:36 -05:00
|
|
|
|