summaryrefslogtreecommitdiffhomepage
path: root/src/Makefile
diff options
context:
space:
mode:
authorRay <[email protected]>2022-02-13 10:47:09 +0100
committerRay <[email protected]>2022-02-13 10:47:09 +0100
commit9cf170e6e91670eade739c1cffefe8e1ea24980b (patch)
treef24d41917d7a52909a6fbd5f4c8dbc7964831841 /src/Makefile
parent8c9a0221a4cbb60d14c62b21666547a01c253865 (diff)
downloadraylib-9cf170e6e91670eade739c1cffefe8e1ea24980b.tar.gz
raylib-9cf170e6e91670eade739c1cffefe8e1ea24980b.zip
Reviewed makefile to use right shell on right platform
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Makefile b/src/Makefile
index 20809be1..87d76a65 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -42,7 +42,7 @@
# Define required environment variables
#------------------------------------------------------------------------------------------------
# Define target platform: PLATFORM_DESKTOP, PLATFORM_RPI, PLATFORM_DRM, PLATFORM_ANDROID, PLATFORM_WEB
-PLATFORM ?= PLATFORM_DESKTOP
+PLATFORM ?= PLATFORM_DESKTOP
# Define required raylib variables
RAYLIB_VERSION = 4.0.0
@@ -138,7 +138,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
PLATFORM_OS = OSX
endif
ifndef PLATFORM_SHELL
- PLATFORM_SHELL = cmd
+ PLATFORM_SHELL = sh
endif
endif
endif
@@ -148,7 +148,7 @@ ifeq ($(PLATFORM),PLATFORM_RPI)
PLATFORM_OS = LINUX
endif
ifndef PLATFORM_SHELL
- PLATFORM_SHELL = cmd
+ PLATFORM_SHELL = sh
endif
endif
ifeq ($(PLATFORM),PLATFORM_DRM)
@@ -157,7 +157,7 @@ ifeq ($(PLATFORM),PLATFORM_DRM)
PLATFORM_OS = LINUX
endif
ifndef PLATFORM_SHELL
- PLATFORM_SHELL = cmd
+ PLATFORM_SHELL = sh
endif
endif
ifeq ($(PLATFORM),PLATFORM_WEB)
@@ -297,7 +297,7 @@ endif
#------------------------------------------------------------------------------------------------
# -O1 defines optimization level
# -g include debug information on compilation
-# -s strip unnecessary data from build
+# -s strip unnecessary data from build --> linker
# -Wall turns on most, but not all, compiler warnings
# -std=c99 defines C language mode (standard C from 1999 revision)
# -std=gnu99 defines C language mode (GNU C from 1999 revision)
@@ -331,7 +331,7 @@ ifeq ($(RAYLIB_BUILD_MODE),RELEASE)
CFLAGS += -Os
endif
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
- CFLAGS += -s -O1
+ CFLAGS += -O1
endif
ifeq ($(PLATFORM),PLATFORM_ANDROID)
CFLAGS += -O2