summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author Justin Kerk <dopefishjustin@gmail.com>2015-06-20 13:42:30 -0700
committer Justin Kerk <dopefishjustin@gmail.com>2015-06-20 13:42:30 -0700
commit039b1e0a12e5d4b97062c1655ed620cb051d0154 (patch)
tree3ad634c4e4952c172a61c3a8aca25840b2af3559 /makefile
parentd1586844748e9bfe49773df2932c71a7051a9778 (diff)
Missing bits needed for Emscripten compile (nw)
Diffstat (limited to 'makefile')
-rw-r--r--makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/makefile b/makefile
index d76debb1f1b..cef9e15dc53 100644
--- a/makefile
+++ b/makefile
@@ -244,6 +244,15 @@ ifndef NOASM
endif
endif
+# Emscripten
+ifeq ($(findstring emcc,$(CC)),emcc)
+TARGETOS := asmjs
+ARCHITECTURE :=
+ifndef NOASM
+ NOASM := 1
+endif
+endif
+
# Autodetect BIGENDIAN
# MacOSX
ifndef BIGENDIAN