-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (48 loc) · 1.76 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FLAGS=RUSTFLAGS="-C target-feature=+crt-static"
NIGHTLY_FLAGS=RUSTFLAGS="-C target-feature=+crt-static -Zlocation-detail=none"
BUILD=cargo build --release
CROSS=cross build --release
default:
${BUILD}
nightly:
${NIGHTLY_FLAGS} ${BUILD}
windows:
${BUILD} --target x86_64-pc-windows-gnu
${BUILD} --target i686-pc-windows-gnu
${BUILD} --target aarch64-pc-windows-msvc
linux:
${FLAGS} ${BUILD} --target x86_64-unknown-linux-musl
${FLAGS} ${CROSS} --target i686-unknown-linux-musl
${FLAGS} ${CROSS} --target aarch64-unknown-linux-musl
# ${FLAGS} ${CROSS} --target mips-unknown-linux-musl
# ${FLAGS} ${CROSS} --target mips64-unknown-linux-muslabi64
# ${FLAGS} ${CROSS} --target mips64el-unknown-linux-muslabi64
# ${BUILD} --target mipsel-unknown-linux-gnu
# ${BUILD} --target powerpc-unknown-linux-gnu
# ${BUILD} --target powerpc64-unknown-linux-gn
# ${BUILD} --target powerpc64le-unknown-linux-gnu
freebsd:
# ${CROSS} --target x86_64-unknown-freebsd
# ${FLAGS} ${CROSS} --target i686-unknown-freebsd
openbsd:
# ${FLAGS} ${CROSS} --target x86_64-unknown-openbsd
# ${FLAGS} ${CROSS} --target i686-unknown-openbsd
# ${BUILD} --target x86_64-unknown-openbsd
netbsd:
# ${FLAGS} ${BUILD} --target x86_64-unknown-netbsd
android:
${FLAGS} ${CROSS} --target x86_64-linux-android
${FLAGS} cargo ndk -t aarch64-linux-android build --release
ios:
# ${BUILD} --target aarch64-apple-ios
# ${BUILD} --target aarch64-apple-ios-sim
darwin:
${FLAGS} ${BUILD} --target x86_64-apple-darwin
${FLAGS} ${BUILD} --target aarch64-apple-darwin
solaris:
# ${BUILD} --target x86_64-pc-solaris
illumos:
# ${BUILD} --target x86_64-unknown-illumos
dragonfly:
# ${BUILD} --target x86_64-unknown-dragonfly
all: linux windows darwin android # freebsd openbsd netbsd solaris aix dragonfly illumos # ${BUILD} android ios