start calling into wasm2c version of platform
This commit is contained in:
8
Makefile
8
Makefile
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user