aboutsummaryrefslogtreecommitdiff
path: root/runtime/makefile
blob: 50839acb1ce5b0f22f4d98f7b79a4a1d8bd4bc3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: all

all: runtime-amd64 runtime-wasm32

.PHONY: runtime-amd64

runtime-amd64: build-amd64 target/amd64/sizeof_jmp_buf.txt

target/amd64/sizeof_jmp_buf.txt: build-amd64
	target/amd64/sizeof_jmp_buf > target/amd64/sizeof_jmp_buf.txt

.PHONY: build-amd64

build-amd64:
	meson setup target/amd64 --werror
	cd target/amd64 && meson compile --verbose

runtime-wasm32: build-wasm32

.PHONY: build-wasm32

build-wasm32:
	meson setup target/wasm32 --cross-file wasm32.meson --werror
	cd target/wasm32 && meson compile --verbose