2011-07-21 16:11:35 -07:00
|
|
|
# FIXME: temporary hack: stdlib and rustrt come in the lib/ directory,
|
|
|
|
# but we want them in the base directory, so we move them out.
|
2011-09-28 17:06:57 -07:00
|
|
|
stage0/bin/rustc$(X): $(S)src/snapshots.txt $(S)src/etc/get-snapshot.py $(MKFILES)
|
2011-05-03 11:34:44 -07:00
|
|
|
@$(call E, fetch: $@)
|
2011-05-03 15:51:21 -07:00
|
|
|
$(Q)$(S)src/etc/get-snapshot.py
|
2011-09-28 17:06:57 -07:00
|
|
|
$(Q)cp stage0/rustc$(X) stage0/bin/rustc$(X)
|
|
|
|
$(Q)cp stage0/$(CFG_RUNTIME) stage0/lib/$(CFG_RUNTIME)
|
|
|
|
$(Q)cp stage0/$(CFG_RUSTLLVM) stage0/lib/$(CFG_RUSTLLVM)
|
|
|
|
$(Q)mkdir -p stage0/bin/lib
|
|
|
|
$(Q)cp stage0/lib/intrinsics.bc stage0/bin/lib/intrinsics.bc
|
|
|
|
$(Q)cp stage0/lib/glue.o stage0/bin/lib/glue.o
|
|
|
|
$(Q)cp stage0/lib/main.o stage0/bin/lib/main.o
|
2011-05-03 15:51:21 -07:00
|
|
|
$(Q)touch $@
|
2011-05-01 20:18:52 +00:00
|
|
|
|
2011-07-15 16:12:41 -07:00
|
|
|
# Host libs will be made in the process of making rustc above.
|
2011-05-03 11:34:44 -07:00
|
|
|
|
2011-09-28 17:06:57 -07:00
|
|
|
stage0/lib/$(CFG_RUNTIME): stage0/bin/rustc$(X)
|
2011-07-21 16:11:35 -07:00
|
|
|
$(Q)touch $@
|
2011-05-04 18:28:30 -07:00
|
|
|
|
2011-09-28 17:06:57 -07:00
|
|
|
stage0/lib/$(CFG_STDLIB): stage0/bin/rustc$(X)
|
2011-07-20 16:32:53 -07:00
|
|
|
$(Q)touch $@
|
2011-07-11 16:31:47 -04:00
|
|
|
|
2011-09-28 17:06:57 -07:00
|
|
|
stage0/lib/$(CFG_RUSTLLVM): stage0/bin/rustc$(X)
|
2011-07-11 16:31:47 -04:00
|
|
|
$(Q)touch $@
|
|
|
|
|
2011-07-21 11:58:01 -07:00
|
|
|
# Instantiate template (in stageN.mk) for building
|
2011-09-23 10:50:06 -07:00
|
|
|
# target libraries.
|
|
|
|
|
2011-09-28 17:06:57 -07:00
|
|
|
SREQpre = stage0/lib/$(CFG_HOST_TRIPLE)/main.o $(MKFILES)
|
2011-09-23 10:50:06 -07:00
|
|
|
$(eval $(call TARGET_LIBS,pre,0,$(CFG_HOST_TRIPLE)))
|
2011-07-20 16:02:36 -04:00
|
|
|
|