mt-polygon-simplification/lib/simplify-wasm/Makefile
2019-07-19 19:33:27 +02:00

14 lines
271 B
Makefile

OPTIMIZE="-O3"
simplify.wasm simplify.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