summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-10-17 12:53:18 +0100
committerAndrew Clayton <a.clayton@nginx.com>2023-10-17 12:53:18 +0100
commit4af8e80018a387e0d54be3c3cf902ee12186df00 (patch)
tree045e1dbf3a9e2b66e162c7ae68d4b42b90658742 /Makefile
downloadproject_blackbird-4af8e80018a387e0d54be3c3cf902ee12186df00.tar.gz
project_blackbird-4af8e80018a387e0d54be3c3cf902ee12186df00.tar.bz2
Initial commit
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fa8a566
--- /dev/null
+++ b/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) $(CFLAGS) $(LDFLAGS) -o $@ $< -lwasmtime
+
+clean:
+ rm -f wasmtime-wasi-http