forked from official-monty/Monty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (21 loc) · 816 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
EXE = monty
ifeq ($(OS),Windows_NT)
NAME := $(EXE).exe
OLD := monty-$(VER).exe
AVX2 := monty-$(VER)-avx2.exe
else
NAME := $(EXE)
OLD := monty-$(VER)
AVX2 := monty-$(VER)-avx2
endif
default:
cargo rustc --release --bin monty --features=embed -- -C target-cpu=native --emit link=$(NAME)
montytest:
cargo rustc --release --bin monty --features=uci-minimal,tunable -- -C target-cpu=native --emit link=$(NAME)
noembed:
cargo rustc --release --bin monty -- -C target-cpu=native --emit link=$(NAME)
gen:
cargo rustc --release --package datagen --bin datagen -- -C target-cpu=native --emit link=$(NAME)
release:
cargo rustc --release --bin monty --features=embed -- --emit link=$(OLD)
cargo rustc --release --bin monty --features=embed -- -C target-cpu=x86-64-v2 -C target-feature=+avx2 --emit link=$(AVX2)