forked from aleksanb/fourkay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (30 loc) · 1.17 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
.PHONY: optimize-build
optimize-build:
xargo build --target x86_64-unknown-linux-gnu --release --no-default-features
.PHONY: optimize
optimize: optimize-build
wc --bytes target/x86_64-unknown-linux-gnu/release/fourkay
strip --strip-all -R .note* -R .comment target/x86_64-unknown-linux-gnu/release/fourkay
wc --bytes target/x86_64-unknown-linux-gnu/release/fourkay
.PHONY: run-optimize
run-optimize: optimize
target/x86_64-unknown-linux-gnu/release/fourkay
.PHONY: vondehi
vondehi:
xargo build --target x86_64-unknown-linux-gnu --release --no-default-features
wc --bytes target/x86_64-unknown-linux-gnu/release/fourkay
strip -R '.note*' -R .comment target/x86_64-unknown-linux-gnu/release/fourkay
wc --bytes target/x86_64-unknown-linux-gnu/release/fourkay
cp ../vondehi/vondehi build/vondehi
nasm -fbin -obuild/vondehi ../vondehi/vondehi.asm
lzma -c target/x86_64-unknown-linux-gnu/release/fourkay > build/fourkay-lzma
cat build/vondehi build/fourkay-lzma > build/fourkay
chmod +x build/fourkay
wc --bytes build/fourkay
build/fourkay
.PHONY: debug
debug:
xargo build --target x86_64-unknown-linux-gnu
.PHONY: debug-run
debug-run:
xargo run --target x86_64-unknown-linux-gnu