blob: 544127ad13a5bff684b03728da41194875980ca3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
BUILD = x64\Release
OUTDIR = ..\output^\
RUSTSRC = ..\rustc-nightly\src^\
MRUSTC = $(BUILD)\mrustc.exe
.PHONY: all
.SUFFIXES: .hir .exe .rs
all: $(OUTDIR)hello-world.exe
.hir.rs:
$(MRUSTC) -o $@ $< -l ..\output
.exe.rs:
$(MRUSTC) -o $@ $< -l ..\output
$(OUTDIR)libcore.hir : $(RUSTSRC)libcore\lib.rs $(MRUSTC)
@echo [MRUSTC] $@
@$(MRUSTC) -o $@ $(RUSTSRC)libcore\lib.rs -l ..\output > $@_dbg.txt
$(OUTDIR)liballoc.hir : $(RUSTSRC)liballoc\lib.rs $(MRUSTC) $(OUTDIR)libcore.hir
@echo [MRUSTC] $@
@$(MRUSTC) -o $@ $(RUSTSRC)liballoc\lib.rs -l ..\output > $@_dbg.txt
$(OUTDIR)libstd_unicode.hir : $(RUSTSRC)libstd_unicode\lib.rs $(MRUSTC) $(OUTDIR)libcore.hir
@echo [MRUSTC] $@
@$(MRUSTC) -o $@ $(RUSTSRC)libstd_unicode\lib.rs -l ..\output > $@_dbg.txt
$(OUTDIR)libcollections.hir: $(RUSTSRC)libcollections\lib.rs $(MRUSTC) $(OUTDIR)liballoc.hir $(OUTDIR)libstd_unicode.hir
@echo [MRUSTC] $@
@$(MRUSTC) -o $@ $(RUSTSRC)libcollections\lib.rs -l ..\output > $@_dbg.txt
$(OUTDIR)librand.hir: $(RUSTSRC)librand\lib.rs $(MRUSTC) $(OUTDIR)libcore.hir
@echo [MRUSTC] $@
@$(MRUSTC) -o $@ $(RUSTSRC)librand\lib.rs -l ..\output > $@_dbg.txt
$(OUTDIR)liblibc.hir: $(RUSTSRC)liblibc\src\lib.rs $(MRUSTC) $(OUTDIR)libcore.hir
@echo [MRUSTC] $@
@$(MRUSTC) -o $@ $(RUSTSRC)liblibc\src\lib.rs -l ..\output > $@_dbg.txt
$(OUTDIR)libunwind.hir: $(RUSTSRC)libunwind\lib.rs $(MRUSTC) $(OUTDIR)libcore.hir $(OUTDIR)liblibc.hir
@echo [MRUSTC] $@
@$(MRUSTC) -o $@ $(RUSTSRC)libunwind\lib.rs -l ..\output > $@_dbg.txt
$(OUTDIR)libcompiler_builtins.hir: $(RUSTSRC)libcompiler_builtins\lib.rs $(MRUSTC) $(OUTDIR)libcore.hir
@echo [MRUSTC] $@
@$(MRUSTC) -o $@ $(RUSTSRC)libcompiler_builtins\lib.rs -l ..\output > $@_dbg.txt
$(OUTDIR)libstd.hir: $(RUSTSRC)libstd\lib.rs $(MRUSTC) $(OUTDIR)libcore.hir $(OUTDIR)libcollections.hir $(OUTDIR)liblibc.hir $(OUTDIR)librand.hir $(OUTDIR)libunwind.hir $(OUTDIR)libcompiler_builtins.hir
@echo [MRUSTC] $@
@$(MRUSTC) -o $@ $(RUSTSRC)libstd\lib.rs -l ..\output > $@_dbg.txt
$(OUTDIR)liballoc_system.hir: $(RUSTSRC)liballoc_system\lib.rs $(MRUSTC) $(OUTDIR)libcore.hir
@echo [MRUSTC] $@
@$(MRUSTC) -o $@ $(RUSTSRC)liballoc_system\lib.rs -l ..\output > $@_dbg.txt
$(OUTDIR)hello-world.exe: $(RUSTSRC)test\run-pass\hello.rs $(MRUSTC) $(OUTDIR)libstd.hir $(OUTDIR)liballoc_system.hir
@echo [MRUSTC] $@
@$(MRUSTC) -o $@ $(RUSTSRC)test\run-pass\hello.rs -l ..\output > $@_dbg.txt
|