summaryrefslogtreecommitdiff
path: root/c/wasmtime-wasi-http/Makefile
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-10-26 22:48:07 +0100
committerAndrew Clayton <a.clayton@nginx.com>2023-10-26 22:54:34 +0100
commite3a37a1bb4908b02553096afaeb380dbc85bb7bb (patch)
tree6457f713cbb2d64b0d6f8839e662733e258c5df2 /c/wasmtime-wasi-http/Makefile
parent4904aa341be9c74dec28e6eeea79b707211f2f06 (diff)
downloadproject_blackbird-e3a37a1bb4908b02553096afaeb380dbc85bb7bb.tar.gz
project_blackbird-e3a37a1bb4908b02553096afaeb380dbc85bb7bb.tar.bz2
Move wasmtime-wasi-http to its own directory
Moved to c/wasmtime-wasi-http Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'c/wasmtime-wasi-http/Makefile')
-rw-r--r--c/wasmtime-wasi-http/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/c/wasmtime-wasi-http/Makefile b/c/wasmtime-wasi-http/Makefile
new file mode 100644
index 0000000..22960de
--- /dev/null
+++ b/c/wasmtime-wasi-http/Makefile
@@ -0,0 +1,11 @@
+CC = gcc
+CFLAGS = -Wall -Wextra -g -DWASM_MODULE="\"$(WASM_MODULE)\"" -I$(WASMTIME_C_API)/include -L$(WASMTIME_C_API)/lib
+LDFLAGS = -Wl,-rpath,$(WASMTIME_C_API)/lib
+
+all: wasmtime-wasi-http
+
+wasmtime-wasi-http: wasmtime-wasi-http.c
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lwasmtime
+
+clean:
+ rm -f wasmtime-wasi-http