2023-03-30 08:46:31 -05:00
|
|
|
# ignore-cross-compile
|
2022-08-23 00:00:00 +00:00
|
|
|
include ../tools.mk
|
2015-06-06 01:13:19 +03:00
|
|
|
|
2019-01-06 16:27:57 -05:00
|
|
|
# ignore-windows
|
|
|
|
|
2016-03-07 14:39:37 -08:00
|
|
|
OUT := $(TMPDIR)/out
|
|
|
|
|
2015-06-06 01:13:19 +03:00
|
|
|
all: time
|
|
|
|
|
|
|
|
time: libc
|
2016-03-07 14:39:37 -08: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-06 01:13:19 +03:00
|
|
|
|
|
|
|
libc:
|
2016-03-07 14:39:37 -08:00
|
|
|
mkdir -p $(OUT)/libc
|
2016-02-26 16:25:25 -05:00
|
|
|
$(RUSTC) in/libc/lib.rs --crate-name=libc -Cmetadata=foo -o $(OUT)/libc/liblibc.rlib
|