diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2024-09-06 21:24:07 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2024-09-06 21:24:07 +0100 |
commit | 879381f9f178ddddbfc036a7071bf3e30d9a80c1 (patch) | |
tree | 082f0a875f226ca3eb9d0eda49e33046aee2f4b4 /c/wasi-http | |
parent | effba2339986e1c46163f8c8ae1311e94367bbee (diff) | |
download | project_blackbird-879381f9f178ddddbfc036a7071bf3e30d9a80c1.tar.gz project_blackbird-879381f9f178ddddbfc036a7071bf3e30d9a80c1.tar.bz2 |
w-h/0.2.0/shared.mk: Use variables for the various tools
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to '')
-rw-r--r-- | c/wasi-http/0.2.0/shared.mk | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/c/wasi-http/0.2.0/shared.mk b/c/wasi-http/0.2.0/shared.mk index 7e43601..d3e06f0 100644 --- a/c/wasi-http/0.2.0/shared.mk +++ b/c/wasi-http/0.2.0/shared.mk @@ -9,6 +9,9 @@ export WASI_SYSROOT ADAPTOR_TYPE ?= reactor +WIT_BINDGEN = /home/andrew/src/c/wasm/git/wit-bindgen/target/release/wit-bindgen +WASM_TOOLS = /home/andrew/src/c/wasm/git/wasm-tools/target/release/wasm-tools + CC = clang CFLAGS = -Wall -Wextra --target=wasm32-wasi --sysroot=$(WASI_SYSROOT) LDFLAGS = -Wl,--no-entry,--export=__heap_base,--export=__data_end,--export=malloc,--export=free,--stack-first,-z,stack-size=$$((8*1024*1024)) -mexec-model=reactor --rtlib=compiler-rt @@ -16,8 +19,8 @@ LDFLAGS = -Wl,--no-entry,--export=__heap_base,--export=__data_end,--export=mallo all: component.wasm bindgen: - /home/andrew/src/c/wasm/git/wit-bindgen/target/release/wit-bindgen c ../../wit/wasi-http/0.2.0 --autodrop-borrows yes --world proxy - /home/andrew/src/c/wasm/git/wit-bindgen/target/release/wit-bindgen markdown ../../wit/wasi-http/0.2.0 --world proxy + $(WIT_BINDGEN) c ../../wit/wasi-http/0.2.0 --autodrop-borrows yes --world proxy + $(WIT_BINDGEN) markdown ../../wit/wasi-http/0.2.0 --world proxy .PHONY: module.wasm: bindgen @@ -25,7 +28,7 @@ module.wasm: bindgen .PHONY: component.wasm: module.wasm - /home/andrew/src/c/wasm/git/wasm-tools/target/release/wasm-tools component new module.wasm --adapt ../../adaptors/24.0.0/wasi_snapshot_preview1.$(ADAPTOR_TYPE).wasm -o component.wasm + $(WASM_TOOLS) component new module.wasm --adapt ../../adaptors/24.0.0/wasi_snapshot_preview1.$(ADAPTOR_TYPE).wasm -o component.wasm clean: rm -f component.wasm module.wasm proxy* |