summaryrefslogtreecommitdiff
path: root/Build/Makefile
diff options
context:
space:
mode:
authorArturs Artamonovs <arturs.artamonovs@protonmail.com>2021-07-06 09:15:36 +0100
committerArturs Artamonovs <arturs.artamonovs@protonmail.com>2021-07-06 09:15:36 +0100
commit17daec9b5e991afb2ae3b3ff33c02e705ea94abd (patch)
tree1d71ba482484c22179a89f7e66510644b06ec62c /Build/Makefile
parent3e32bd0a0b24d26f3db086da327491123840a16a (diff)
downloadWasmAudio-17daec9b5e991afb2ae3b3ff33c02e705ea94abd.tar.gz
WasmAudio-17daec9b5e991afb2ae3b3ff33c02e705ea94abd.zip
Initial commit
Diffstat (limited to 'Build/Makefile')
-rw-r--r--Build/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Build/Makefile b/Build/Makefile
new file mode 100644
index 0000000..30f0543
--- /dev/null
+++ b/Build/Makefile
@@ -0,0 +1,19 @@
+EMCC=emcc
+CC=gcc
+SOURCEDIR=../
+LDFLAGS=-lSDL2 -lSDL2_ttf
+EM_LDFALGS=-s USE_SDL=2 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s LLD_REPORT_UNDEFINED -s USE_GLFW=3
+
+
+
+make:
+ $(CC) -c $(SOURCEDIR)/main.c -g3
+
+emcc:
+ $(EMCC) $(SOURCEDIR)/main.c -s WASM=1 -O3 -o index.js $(EM_LDFALGS) -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]'
+
+
+
+web:
+ darkhttpd ./ --port 12345
+