From 4af8e80018a387e0d54be3c3cf902ee12186df00 Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Tue, 17 Oct 2023 12:53:18 +0100 Subject: Initial commit Signed-off-by: Andrew Clayton --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit