forked from huonw/boehm-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
23 lines (16 loc) · 780 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
include rust.mk
RUSTC ?= rustc
RUSTFLAGS ?= -O --out-dir .
EG=examples
.PHONY: all examples
all: boehm examples
examples: example lowlevel_example tracing_example tracing_example_conservative
$(eval $(call RUST_CRATE, ./src/))
lowlevel_example: $(EG)/lowlevel_example.rs $(_rust_crate_lib)
$(RUSTC) $(RUSTFLAGS) -L. $(EG)/lowlevel_example.rs -o lowlevel_example
example: $(EG)/example.rs $(_rust_crate_lib)
$(RUSTC) $(RUSTFLAGS) -L. $(EG)/example.rs -o example
tracing_example: $(EG)/tracing_example.rs $(_rust_crate_lib)
$(RUSTC) $(RUSTFLAGS) -L. $(EG)/tracing_example.rs -o tracing_example
tracing_example_conservative: $(EG)/tracing_example.rs $(_rust_crate_lib)
$(RUSTC) $(RUSTFLAGS) -L. $(EG)/tracing_example.rs -o tracing_example_conservative --cfg conservative