aboutsummaryrefslogtreecommitdiff
path: root/cmd/_conferences/gceu23/wasip1/Makefile
blob: eed2dbd978013c1c512fd1f1427212230de73a07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
GOBIN = gowasi

export GOARCH = wasm
export GOOS = wasip1

SOURCES := $(wildcard *.go)
OBJECTS := $(patsubst %.go, %.wasm, $(SOURCES))

%.wasm: %.rs
	rustc --target=wasm32-wasi $^

%.wasm: %.go
	$(GOBIN) build -o $@ $^

all: $(OBJECTS)