14 lines
379 B
Makefile
14 lines
379 B
Makefile
|
build:
|
||
|
# the complex emscripten invocation
|
||
|
# note we have the stack size set to 1024*1024 (1 MB)
|
||
|
emcc \
|
||
|
-o out.mjs \
|
||
|
janet.c driver.cpp \
|
||
|
--embed-file ludus.jimage \
|
||
|
-lembind \
|
||
|
-s "EXPORTED_FUNCTIONS=['_main']" \
|
||
|
-s EXPORT_ES6 \
|
||
|
-s ALLOW_MEMORY_GROWTH=1 \
|
||
|
-s STACK_SIZE=1048576 \
|
||
|
-s MODULARIZE
|