aboutsummaryrefslogtreecommitdiff
path: root/pu2/Makefile
blob: aa1f3253d744cf0cad98c93ca25bcfc73fa67212 (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

# 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