diff options
author | ZoRo <dos21h@gmail.com> | 2020-10-21 21:24:36 +0100 |
---|---|---|
committer | ZoRo <dos21h@gmail.com> | 2020-10-21 21:24:36 +0100 |
commit | 50756d266af3dd94d55a9b0d3b6e7e4f953ac627 (patch) | |
tree | 83dbc53a659454c0ff1c17448b9c4235b0236059 /Makefile | |
parent | a73c7a57888f0f44f298ec425fc5abd3cfcffd62 (diff) | |
download | wasm_fractal-50756d266af3dd94d55a9b0d3b6e7e4f953ac627.tar.gz wasm_fractal-50756d266af3dd94d55a9b0d3b6e7e4f953ac627.zip |
Working fractal drawing
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -1,7 +1,21 @@ - +#source "/home/fam/downloads/source/wasm/emsdk/emsdk_env.sh" +#EMCC=/usr/lib/emscripten/emcc +#ENV=LLVM=/usr/bin NODE_JS=node EMSCRIPTEN_ROOT=/usr/lib/emscripten +EMCC=emcc CC=gcc +LDFLAGS=-lSDL2 -lSDL2_ttf -lGLESv2 -lGL +EM_LDFALGS=-s USE_SDL=2 -s USE_SDL_IMAGE=2 -s SDL2_IMAGE_FORMATS='["png"]' -s USE_SDL_TTF=2 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s LLD_REPORT_UNDEFINED -s USE_GLFW=3 make: $(CC) -c koh.c $(CC) -c fractal.c - $(CC) koh.o fractal.o -o fractal -lSDL2
\ No newline at end of file + $(CC) -c fractal2.c + $(CC) koh.o fractal.o -o fractal $(LDFLAGS) + $(CC) koh.o fractal2.o -o fractal2 $(LDFLAGS) + +emcc: + $(EMCC) fractal.c koh.c -s WASM=1 -O3 -o index.js $(EM_LDFALGS) -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]' + #$(EMCC) fractal2.c koh.c -s WASM=1 -O3 -o index.js $(EM_LDFALGS) -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]' + +web: + darkhttpd ./ --port 12345
\ No newline at end of file |