2015-06-05 17:13:19 -05:00
|
|
|
-include ../tools.mk
|
|
|
|
|
2016-03-07 16:39:37 -06:00
|
|
|
OUT := $(TMPDIR)/out
|
|
|
|
|
2015-06-05 17:13:19 -05:00
|
|
|
ifndef IS_WINDOWS
|
|
|
|
all: time
|
|
|
|
|
|
|
|
time: libc
|
2016-03-07 16:39:37 -06:00
|
|
|
mkdir -p $(OUT)/time $(OUT)/time/deps
|
|
|
|
ln -sf $(OUT)/libc/liblibc.rlib $(OUT)/time/deps/
|
|
|
|
$(RUSTC) in/time/lib.rs -Ldependency=$(OUT)/time/deps/
|
2015-06-05 17:13:19 -05:00
|
|
|
|
|
|
|
libc:
|
2016-03-07 16:39:37 -06:00
|
|
|
mkdir -p $(OUT)/libc
|
2016-02-26 15:25:25 -06:00
|
|
|
$(RUSTC) in/libc/lib.rs --crate-name=libc -Cmetadata=foo -o $(OUT)/libc/liblibc.rlib
|
2015-06-05 17:13:19 -05:00
|
|
|
else
|
|
|
|
all:
|
|
|
|
endif
|