Makefile 1 KB
Newer Older
1
# change '../../em++' to path to em++ in emscriten folder
2
3
4
5
EMSCR=../../em++ 

# ----------------------------------------
# Maximilian base stuff
6
7
8
9
10

# 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
11
SOURCE_MAXI=src/cpp/maxi_emscr_new.cpp
12
13

# destination .js file
14
15
16
17
OUTPUT_MAXI=maxiLib/maxiLib.js

# ----------------------------------------
# extra libs stuff
18

19
20
21
22
SOURCE_maxiFFT=src/cpp/libs/maxiFFT.cpp

# destination for maxiFFT from when I didn't know better
# OUTPUT_maxiFFT=maxiLib/libs/maxiLib_maxiFFT.js
23

24
25
26

# ----------------------------------------
# General flags
27
# https://kripken.github.io/emscripten-site/docs/tools_reference/emcc.html
28
29
# -s DEMANGLE_SUPPORT=1 
CFLAGS=-O3 -s DISABLE_EXCEPTION_CATCHING=0 -s ALLOW_MEMORY_GROWTH=1 -s ASSERTIONS=1 --memory-init-file 0 --profiling 
30
31
32
33

# ----------------------------------------
# Final paths
maxi:
34
	$(EMSCR) $(CFLAGS) --post-js $(POST_JS) --bind -o $(OUTPUT_MAXI) $(SOURCE_MAXI) $(SOURCE_maxiFFT)
35

36
all: maxi