summaryrefslogtreecommitdiff
path: root/example-cross-compile-cpp/Makefile
blob: 6c7f234b55bbcb89669e8766ae88458881823c07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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-lib -dynamic -target x86_64-windows -lc windll.cc
	zig build-exe win.cc -target x86_64-windows -lc windll.lib
	file win.exe windll.dll
	wine win.exe

clean:
	git clean -fdx .