summaryrefslogtreecommitdiff
path: root/example-cross-compile-cpp/Makefile
blob: 6b904a3566710201f4a0ed078f6b64256f52254f (plain) (blame)
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.cc -target $*-linux-musl -lc --name $*.elf
	file $*.elf
	qemu-$* $*.elf

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

clean:
	git clean -fdx .