summaryrefslogtreecommitdiffhomepage
path: root/docs/examples/web/makefile
diff options
context:
space:
mode:
authorRay <[email protected]>2017-05-09 09:35:58 +0200
committerGitHub <[email protected]>2017-05-09 09:35:58 +0200
commit0ca874c710aace697c5a383f41fc81abf34e2e06 (patch)
tree804ea004f637c5514c15a116a9599a93564557ab /docs/examples/web/makefile
parentc785d84d30a232d9b44b6969a24103ab8da959b7 (diff)
parent4c27412eff10f8ef633d97017dcb9e2faff4c4e1 (diff)
downloadraylib-0ca874c710aace697c5a383f41fc81abf34e2e06.tar.gz
raylib-0ca874c710aace697c5a383f41fc81abf34e2e06.zip
Merge pull request #282 from raysan5/develop
Integrate Develop branch
Diffstat (limited to 'docs/examples/web/makefile')
-rw-r--r--docs/examples/web/makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/examples/web/makefile b/docs/examples/web/makefile
index c7ffe514..a04f7949 100644
--- a/docs/examples/web/makefile
+++ b/docs/examples/web/makefile
@@ -58,6 +58,17 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
endif
endif
+ifeq ($(PLATFORM),PLATFORM_WEB)
+ # Emscripten required variables
+ EMSDK_PATH = C:/emsdk
+ EMSCRIPTEN_VERSION = 1.37.9
+ CLANG_VERSION=e1.37.9_64bit
+ PYTHON_VERSION=2.7.5.3_64bit
+ NODE_VERSION=4.1.1_64bit
+ export PATH=$(EMSDK_PATH);$(EMSDK_PATH)\clang\$(CLANG_VERSION);$(EMSDK_PATH)\node\$(NODE_VERSION)\bin;$(EMSDK_PATH)\python\$(PYTHON_VERSION);$(EMSDK_PATH)\emscripten\$(EMSCRIPTEN_VERSION);C:\raylib\MinGW\bin:$$(PATH)
+ EMSCRIPTEN=$(EMSDK_PATH)\emscripten\$(EMSCRIPTEN_VERSION)
+endif
+
# define compiler: gcc for C program, define as g++ for C++
ifeq ($(PLATFORM),PLATFORM_WEB)
# define emscripten compiler