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

14 lines
271 B
Makefile
Raw Normal View History

2019-07-14 20:37:26 +02:00
OPTIMIZE="-O3"
2019-07-19 19:33:27 +02:00
simplify.wasm simplify.js: simplify.c
2019-07-14 20:37:26 +02:00
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