Makefile 538 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# change '../../em++' to path to em++ in emscriten folder file
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
SOURCE=src/cpp/maxi_emscr.cpp

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


# https://kripken.github.io/emscripten-site/docs/tools_reference/emcc.html
CFLAGS=-O2 -s DISABLE_EXCEPTION_CATCHING=0 -s ALLOW_MEMORY_GROWTH=1 --memory-init-file 0 --profiling


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