-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (26 loc) · 1.42 KB
/
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
31
32
33
OS := $(shell uname)
ifeq ($(OS),Linux)
DEFAULT_EXE = titan
else
DEFAULT_EXE = Titan.exe
endif
# Allow user to override the executable name
EXE ?= $(DEFAULT_EXE)
openbench:
cargo rustc --release -- -C target-cpu=native --emit link=$(EXE)
release:
cargo rustc --release -- -C target-cpu=x86-64 --emit link=titan-x64_64-linux-v1
cargo rustc --release -- -C target-cpu=x86-64-v2 --emit link=titan-x64_64-linux-v2
cargo rustc --release -- -C target-cpu=x86-64-v3 --emit link=titan-x64_64-linux-v3
cargo rustc --release -- -C target-cpu=x86-64-v4 --emit link=titan-x64_64-linux-v4
cargo rustc --release --target=x86_64-pc-windows-gnu -- -C target-feature=+crt-static -C target-cpu=x86-64 --emit link=Titan-x86_64-windows-v1.exe
cargo rustc --release --target=x86_64-pc-windows-gnu -- -C target-feature=+crt-static -C target-cpu=x86-64-v2 --emit link=Titan-x86_64-windows-v2.exe
cargo rustc --release --target=x86_64-pc-windows-gnu -- -C target-feature=+crt-static -C target-cpu=x86-64-v3 --emit link=Titan-x86_64-windows-v3.exe
cargo rustc --release --target=x86_64-pc-windows-gnu -- -C target-feature=+crt-static -C target-cpu=x86-64-v4 --emit link=Titan-x86_64-windows-v4.exe
avx512:
cargo rustc --release --features avx512 -- -C target-cpu=native --emit link=$(EXE)
bench:
cargo rustc --release -- -C target-cpu=native --emit link=$(EXE)
./$(EXE) bench
ancient:
cargo rustc --release -- -C target-cpu=x86-64 --emit link=$(EXE)