-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (31 loc) · 956 Bytes
/
Makefile
File metadata and controls
40 lines (31 loc) · 956 Bytes
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
###############################################################################
# Configurable Rust path
###############################################################################
RUSTC := rustn32
RUST_LIBCORE_SRC := /home/rprichard/work/rust/src/libcore
###############################################################################
RUST_LIBCORE_DEP := build/libcore.rlib
RUST_LIBCORE_EXTERN := --extern core=$(RUST_LIBCORE_DEP)
RUSTC_TARGET_FLAGS := \
-L build \
--cfg strref \
--target i686-unknown-linux-gnu \
-C opt-level=s \
-C relocation-model=static \
-C target-cpu=i386 \
-C llvm-args=-rotation-max-header-size=0 \
-Z no-landing-pads
default : all
include mk/boot_records.mk
include mk/entry.mk
include mk/installer.mk
include mk/libcore.mk
include mk/librlibc.mk
include mk/libsys.mk
include mk/stage1.mk
include mk/stage2.mk
all : $(FINAL_OUTPUTS)
clean :
rm -fr build test
test : all
mk/test.sh