display framebuffer in sdl window

This commit is contained in:
2023-03-30 09:16:01 +02:00
parent aec48ce3f0
commit 3c6c9a3745
2 changed files with 40 additions and 6 deletions

View File

@@ -8,13 +8,13 @@ run-ts:
deno run --allow-read main.ts
wasm3-test: main.o $(WASM3_O)
gcc -g -lm -o wasm3-test $^
gcc -g -lm -lSDL2 -o wasm3-test $^
wasm3/source/%.o: wasm3/source/%.c
gcc -g -DDEBUG=1 -c -o $@ $^
gcc -g -O2 -c -o $@ $^
main.o: main.c
gcc -g -DDEBUG=1 -c -o main.o main.c
gcc -g -O2 -c -o main.o main.c
clean:
rm wasm3-test main.o $(WASM3_O)