-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathMakefile
More file actions
17 lines (13 loc) · 761 Bytes
/
Makefile
File metadata and controls
17 lines (13 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# vim: set noet:
CC = emcc
CXX = em++
# FILES = libmvar/mvardie.c libmvar/mvarfit.c libmvar/mvarmat.c libmvar/mvarsim.c libmvar/mvartest.c
FILES = ctsa/src/*.c
EXPORTED_FUNCTIONS="['_fit_sarimax', '_predict_sarimax', '_fit_autoarima', '_predict_autoarima', '_free_sarimax', '_free_autoarima', '_free_result']"
CFLAGS = -O3 -Wall -fPIC
EMCFLAGS = -s ALLOW_MEMORY_GROWTH=1 -s EXPORTED_FUNCTIONS=$(EXPORTED_FUNCTIONS) -s EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]' -s MODULARIZE=1
build:
${CC} ${CFLAGS} ${EMCFLAGS} ${FILES} src/api.c -o wasm/native.js -s WASM_ASYNC_COMPILATION=0;
mv wasm/native.js wasm/native-sync.js
${CC} ${CFLAGS} ${EMCFLAGS} ${FILES} src/api.c -o wasm/native.js -s WASM_ASYNC_COMPILATION=1;
mv wasm/native.js wasm/native-async.js