-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (28 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
.PHONY = v
.SILENT:
all: rpt
rpt: *.zig Makefile
zig build-exe --release-fast --single-threaded --strip -mcpu native rpt.zig \
-lc -lm \
-I./Prime95-29.8b6/gwnum/ --library ./Prime95-29.8b6/gwnum/gwnum.a \
-I./gmp-6.2.0 --library ./gmp-6.2.0/.libs/libgmp.a \
--name rpt
debug: *.zig Makefile
zig build-exe --single-threaded -mcpu native rpt.zig \
-lc -lm \
-I./Prime95-29.8b6/gwnum/ --library ./Prime95-29.8b6/gwnum/gwnum.a \
-I./gmp-6.2.0 --library ./gmp-6.2.0/.libs/libgmp.a \
--name rpt
rpt_release: *.zig
zig build-exe --release-small --single-threaded --strip -mcpu x86_64 rpt.zig \
-lc -lm \
-I./Prime95-29.8b6/gwnum/ --library ./Prime95-29.8b6/gwnum/gwnum.a \
-I./gmp-6.2.0 --library ./gmp-6.2.0/.libs/libgmp.a \
--name rpt_release_linux64
PATH=/home/tanel/software/upx-3.96-amd64_linux/:$PATH \
upx -9 ./rpt_release_linux64
v:
#v -cg -prod -cc gcc-9 -cflags -fauto-profile=altllr.gcov altllr.v
cp Prime95-29.8b6/gwnum/gwnum.a Prime95-29.8b6/gwnum/libgwnum.a
v -cg -prod -cc gcc-9 -- experiments/alt_llr.v
#v -cg -prod -cc gcc-9 -cflags -fdata-sections -ffunction-sections -Wl,--gc-sections -fwhole-program -O3 -funroll-loops -march=native altllr.v