14 lines
271 B
Makefile
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
|