Makefile 601 Bytes
Newer Older
1
# change '../../em++' to path to em++ in emscriten folder
2
3
4
5
6
7
CC=../../em++ 

# POST_JS is all the external js stuff that handles web audio etc
POST_JS=src/js/maxi_webAudio.js

#the .cpp file that is used
8
SOURCE=src/cpp/maxi_emscr_new.cpp
9
10
11
12

# destination .js file
OUTPUT=maxiLib/maxiLib.js

Dr-Dan's avatar
Dr-Dan committed
13
# EXP_FUNCS=-s EXPORTED_FUNCTIONS="['_sumArray']"
14
15

# https://kripken.github.io/emscripten-site/docs/tools_reference/emcc.html
16
CFLAGS=-O2 $(EXP_FUNCS) -s DISABLE_EXCEPTION_CATCHING=0 -s ALLOW_MEMORY_GROWTH=1 --memory-init-file 0 --profiling 
17
18
19
20


all:
	$(CC) $(CFLAGS) --post-js $(POST_JS) --bind -o $(OUTPUT) $(SOURCE)