mt-polygon-simplification/lib/simplify-wasm/Makefile

14 lines
269 B
Makefile
Raw Normal View History

2019-07-14 20:37:26 +02:00
OPTIMIZE="-O3"
simplify.wasm module.js: simplify.c
emcc \
${OPTIMIZE} \
--closure 1 \
-s WASM=1 \
-s ALLOW_MEMORY_GROWTH=1 \
-s MODULARIZE=1 \
-s EXPORT_ES6=1 \
-s EXPORTED_FUNCTIONS='["_simplify", "_malloc", "_free"]' \
-o simplify.js \
simplify.c