aboutsummaryrefslogtreecommitdiff
path: root/runtime/makefile
blob: cb032d1861d7e266d8a06b6f1af8713948feaff8 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.PHONY: all

all: runtime-amd64 runtime-i686 runtime-wasm32 runtime-wasm64

.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

.PHONY: runtime-i686

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

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

.PHONY: build-i686

build-i686:
	meson setup target/i686 --cross-file i686.meson --werror
	cd target/i686 && 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

runtime-wasm64: build-wasm64

.PHONY: build-wasm64

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