blob: ad70fce664344f1d9f4aac2ab69b8a3508c2299d (
plain) (
tree)
|
|
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
|