all:
	musl-gcc -Q -O3 -mcmodel=large -march=x86-64 -static-pie -fPIE -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now fsplat.c -o fsplat -lm -pthread
	musl-gcc -Q -O3 -mcmodel=large -march=znver2 -static-pie -fPIE -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now fsplat.c -o fsplat.znver2 -lm -pthread
	musl-gcc -Q -O3 -mcmodel=large -march=x86-64-v3 -static-pie -fPIE -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now fsplat.c -o fsplat.x86-64-v3 -lm -pthread
	musl-gcc -Q -O3 -march=x86-64 -static-pie -fPIE splat2fsplat.c -o splat2fsplat -lm
	musl-gcc -Q -O3 -march=x86-64 -static-pie -fPIE ply2fsplat.c -o ply2fsplat -lm
	strip fsplat
	strip fsplat.x86-64-v3
	strip fsplat.znver2
	strip splat2fsplat
	strip ply2fsplat

clean:
	rm fsplat
	rm fsplat.x86-64-v3
	rm fsplat.znver2
	rm splat2fsplat
	rm ply2fsplat
