]>
Commit | Line | Data |
---|---|---|
62682a34 SL |
1 | -include ../tools.mk |
2 | ||
54a0048b SL |
3 | OUT := $(TMPDIR)/out |
4 | ||
62682a34 SL |
5 | ifndef IS_WINDOWS |
6 | all: time | |
7 | ||
8 | time: libc | |
54a0048b SL |
9 | mkdir -p $(OUT)/time $(OUT)/time/deps |
10 | ln -sf $(OUT)/libc/liblibc.rlib $(OUT)/time/deps/ | |
11 | $(RUSTC) in/time/lib.rs -Ldependency=$(OUT)/time/deps/ | |
62682a34 SL |
12 | |
13 | libc: | |
54a0048b SL |
14 | mkdir -p $(OUT)/libc |
15 | $(RUSTC) in/libc/lib.rs --crate-name=libc -Cmetadata=foo -o $(OUT)/libc/liblibc.rlib | |
62682a34 SL |
16 | else |
17 | all: | |
18 | endif |