-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (31 loc) · 906 Bytes
/
Makefile
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
.PHONY: all
all: Extism wasm
.PHONY: wasm
wasm: Extism/host.wasm Extism/unreachable.wasm
Extism/host.wasm: host.c
$(WASI_SDK_PATH)/bin/clang -o $@ $^ -mexec-model=reactor
Extism/unreachable.wasm: unreachable.cpp
$(WASI_SDK_PATH)/bin/clang++ -fno-exceptions -o $@ $^ -mexec-model=reactor
Extism/Makefile: Extism/Makefile.PL
cd Extism && perl Makefile.PL
.PHONY: Extism
Extism: Extism/Makefile
$(MAKE) -C Extism
.PHONY: test
test: Extism/Makefile Extism/host.wasm
$(MAKE) -C Extism test
.PHONY: install
install: Extism/Makefile
$(MAKE) -C Extism install
.PHONY: unsafedists
unsafedists: Extism/Makefile Extism/host.wasm
$(MAKE) -C Extism manifest && $(MAKE) -C Extism distcheck && $(MAKE) -C Extism dist
.PHONY: dists
dists: clean
$(MAKE) unsafedists
.PHONY: clean
clean: Extism/Makefile
$(MAKE) -C Extism veryclean
rm -f Extism/host.wasm
rm -f Extism/MANIFEST
rm -f Extism/MANIFEST.bak