aboutsummaryrefslogtreecommitdiff
path: root/pu2/Makefile
blob: a21138560ead1b1a7ca1d9b57e18fe59f85ee8c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
build:
	clang pu2.c -o pu2 -std=c89 -ffunction-sections -Wl,--gc-sections -O3 -march=native -mtune=native -flto -ffast-math -funroll-loops -fno-exceptions -flto

# i use this for building pu2 on a-Shell
build_wasi:
	clang pu2.c -o pu2 -std=c89 -ffunction-sections -Wl,--gc-sections -O3 -ffast-math -funroll-loops -fno-exceptions -DPU2_BAD_CLOCK -DPU2_NO_ASM -DPU2_NO_MMAP -fno-rtti -fno-stack-protector -fomit-frame-pointer -Wno-format -Wno-#warnings

run:
	./pu2

benchmark:
	./pu2 benchmark