diff options
author | ZoRo <dos21h@gmail.com> | 2020-11-24 20:01:30 +0000 |
---|---|---|
committer | ZoRo <dos21h@gmail.com> | 2020-11-24 20:01:30 +0000 |
commit | 1c5bd982ab37b161410be55eaa401e4686d16351 (patch) | |
tree | 4c90edbc0f3953999a7594b83a6876d811937704 /Makefile | |
parent | e41ad7adc31c26dfa8a9c31b6b16bda46f9b85a7 (diff) | |
download | wasm_fractal-1c5bd982ab37b161410be55eaa401e4686d16351.tar.gz wasm_fractal-1c5bd982ab37b161410be55eaa401e4686d16351.zip |
Updated version that looks like works. EMCC loop works ok now
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -7,15 +7,23 @@ 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 -g3 -pg - $(CC) -c fractal.c -g3 -pg + $(CC) -c koh.c -g3 + $(CC) -c fractal.c -g3 #$(CC) -c fractal2.c - $(CC) koh.o fractal.o -o fractal $(LDFLAGS) -g3 -pg + $(CC) koh.o fractal.o -o fractal $(LDFLAGS) -g3 #$(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"]' +deploy: + #scp index.html segfault:~/public_html/draw.html + #scp index.js segfault:~/public_html/index.js + #scp index.wasm segfault:~/public_html/index.wasm + scp index.html fam@do2:/srv/http/wasm.main.lv/fractal + scp index.js fam@do2:/srv/http/wasm.main.lv/fractal + scp index.wasm fam@do2:/srv/http/wasm.main.lv/fractal + web: - darkhttpd ./ --port 12345
\ No newline at end of file + darkhttpd ./ --port 12345 |