Makefile 1.01 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 #src/cpp/libs/fft.cpp
12
13

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

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

19
20
#the .cpp file that is used
SOURCE_FFT=src/cpp/libs/fft.cpp
21

22
23
24
25
26
# destination for fft
OUTPUT_FFT=maxiLib/libs/maxiLib_fft.js

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

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

35
36
fft:
	$(EMSCR) $(CFLAGS) --bind -o $(OUTPUT_FFT) $(SOURCE_FFT)
37

38
all: maxi fft