summaryrefslogtreecommitdiffhomepage
path: root/src/Makefile
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2022-02-12 19:08:31 +0100
committerraysan5 <[email protected]>2022-02-12 19:08:31 +0100
commit6ef6dbff2d86d8fbf11a138cafd17d13e791604e (patch)
treee4c37871704151431b097e575b04dc5d86edd04c /src/Makefile
parentd0008ae8cda8e0a7dda68b18c9e4be12fff00ae6 (diff)
downloadraylib-6ef6dbff2d86d8fbf11a138cafd17d13e791604e.tar.gz
raylib-6ef6dbff2d86d8fbf11a138cafd17d13e791604e.zip
REVIEWED: PLATFORM_OS for PLATFORM_WEB
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index c29701a3..cb9bb88c 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -148,6 +148,16 @@ ifeq ($(PLATFORM),PLATFORM_DRM)
PLATFORM_OS = LINUX
endif
endif
+ifeq ($(PLATFORM),PLATFORM_WEB)
+ ifeq ($(OS),Windows_NT)
+ PLATFORM_OS = WINDOWS
+ else
+ UNAMEOS = $(shell uname)
+ ifeq ($(UNAMEOS),Linux)
+ PLATFORM_OS = LINUX
+ endif
+ endif
+endif
ifeq ($(PLATFORM),PLATFORM_WEB)
# Emscripten required variables