aboutsummaryrefslogtreecommitdiff
path: root/pu2/Makefile
blob: 68fbcd09ab7a047dac531e00c03780ba20e2e69d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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

build_fast:
	clang pu2.c -o pu2 -std=c89 -O0 -g

# 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