-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
30 lines (21 loc) · 842 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
24
25
26
27
28
29
30
BUILD_DIR := build
# Remove all build outputs and intermediate files.
clean:
@ rm -rf $(BUILD_DIR)
benchmark_loop: grotsky grotsky-rs
python tool/benchmark.py $(BUILD_DIR)/grotsky $(BUILD_DIR)/grotsky-rs loop
benchmark_fib: grotsky grotsky-rs
python tool/benchmark.py $(BUILD_DIR)/grotsky $(BUILD_DIR)/grotsky-rs fib
benchmark_objects: grotsky grotsky-rs
python tool/benchmark.py $(BUILD_DIR)/grotsky $(BUILD_DIR)/grotsky-rs objects
test_grotsky: grotsky
@ cd archive && go test -v ./... -interpreter Go
test_grotsky-rs: grotsky-rs
@ cd archive && RUST_BACKTRACE=1 go test -v ./... -interpreter Rust -failfast
grotsky:
@ mkdir -p $(BUILD_DIR)
@ cd archive && go build cmd/grotsky/main.go && mv main ../$(BUILD_DIR)/grotsky
grotsky-rs:
@ mkdir -p $(BUILD_DIR)
@ cargo build --release
@ cp target/release/grotsky-rs build/