CC = gcc CFLAGS = -Wall -Wextra -g -I$(WASMTIME_C_API)/include -L$(WASMTIME_C_API)/lib LDFLAGS = -Wl,-rpath,$(WASMTIME_C_API)/lib WASM_CC = clang WASM_CFLAGS = -Wall -Wextra -fno-strict-aliasing --target=wasm32-wasi --sysroot=$(WASI_SYSROOT) all: wasmtime test.wasm wasmtime: wasmtime.c $(CC) $(CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< -lwasmtime test.wasm: test.c $(WASM_CC) $(WASM_CFLAGS) -o $@ $< clean: rm -f wasmtime test.wasm