-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (23 loc) · 833 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 := reckless
ifeq ($(OS),Windows_NT)
NAME := $(EXE).exe
V1NAME := $(EXE)-x86_64-win-v1.exe
V2NAME := $(EXE)-x86_64-win-v2.exe
V3NAME := $(EXE)-x86_64-win-v3.exe
V4NAME := $(EXE)-x86_64-win-v4.exe
else
NAME := $(EXE)
V1NAME := $(EXE)-x86_64-linux-v1
V2NAME := $(EXE)-x86_64-linux-v2
V3NAME := $(EXE)-x86_64-linux-v3
V4NAME := $(EXE)-x86_64-linux-v4
endif
rule:
cargo rustc --release -- -C target-cpu=native --emit link=$(NAME)
datagen:
cargo rustc --release --features=datagen -- -C target-cpu=native --emit link=$(NAME)
release:
cargo rustc --release -- -C target-cpu=x86-64 --emit link=$(V1NAME)
cargo rustc --release -- -C target-cpu=x86-64-v2 --emit link=$(V2NAME)
cargo rustc --release -- -C target-cpu=x86-64-v3 --emit link=$(V3NAME)
cargo rustc --release -- -C target-cpu=x86-64-v4 --emit link=$(V4NAME)