start calling into wasm2c version of platform

This commit is contained in:
2023-04-04 23:58:46 +02:00
parent 2df498152c
commit 45f4ddb4c4
9 changed files with 5453 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
WASM3_C := $(wildcard wasm3/source/*.c)
WASM3_O := $(WASM3_C:.c=.o)
uw8-wasm3: main.o $(WASM3_O)
uw8-wasm3: main.o $(WASM3_O) platform.o wasm-rt-impl.o
gcc -g -lm -lSDL2 -o uw8-wasm3 $^
run: uw8-wasm3 .PHONY
@@ -11,10 +11,10 @@ run-ts:
deno run --allow-read main.ts
wasm3/source/%.o: wasm3/source/%.c
gcc -g -O2 -c -o $@ $^
gcc -g -O2 -c -o $@ $<
main.o: main.c
gcc -g -O2 -c -o main.o main.c
%.o: %.c platform.h wasm-rt.h wasm-rt-impl.h
gcc -g -O2 -c -o $@ $<
clean:
rm uw8-wasm3 main.o $(WASM3_O)