protoverse

A metaverse protocol
git clone git://jb55.com/protoverse
Log | Files | Refs | README | LICENSE

commit 18ab0c7d4f650d704911397f881c2208b7ee7e51
parent c6c4462700a581b82c916959e5b7e951105a7b01
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 22 Jul 2021 15:10:48 -0700

compile as wasm lul

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
MMakefile | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -14,6 +14,8 @@ OBJS = src/io.o \ src/error.o \ src/wasm.o +SRCS=$(OBJS:.o=.c) + WASMS = wasm/hello-c.wasm \ wasm/hello.wasm @@ -40,6 +42,9 @@ wasm: $(WASMS) wasm/hello-c.wasm: wasm/hello-c.c emcc -g $< -s WASM=1 -o $@ +protoverse.wasm: src/protoverse.c $(SRCS) + emcc -g $^ -s WASM=1 -o $@ + protoverse: src/protoverse.c $(OBJS) @echo "ld $@" @$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@