summaryrefslogblamecommitdiff
path: root/example-cross-compile/Makefile
blob: 72f611d2212b98e3dab88aaab42a07e0f4158357 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                 
riscv64: lin-riscv64
aarch64: lin-aarch64
mips64el: lin-mips64el

lin-%:
	zig build-exe lin.zig -target $*-linux-musl --name $*.elf
	file $*.elf
	qemu-$* $*.elf

win:
	zig build-exe win.zig -target x86_64-windows -lc
	file win.exe
	wine win.exe

clean:
	git clean -fdx .