diff --git a/Makefile b/Makefile index 530c97d5..9eb9462c 100644 --- a/Makefile +++ b/Makefile @@ -61,6 +61,11 @@ ifeq ($(COMPILE_PLATFORM),cygwin) PLATFORM=mingw32 endif +# detect "emmake make" +ifeq ($(findstring /emcc,$(CC)),/emcc) + PLATFORM=emscripten +endif + ifndef PLATFORM PLATFORM=$(COMPILE_PLATFORM) endif