summaryrefslogtreecommitdiff
path: root/c/wasmtime-wasi-http/Makefile
diff options
context:
space:
mode:
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