From 25a680ab6ec16a2238ed157685a2b758b5a73649 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sun, 9 Jun 2024 01:32:34 -0500 Subject: [PATCH] Allow building for emscripten with "emmake make" Co-authored-by: James Darpinian --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) 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