瀏覽代碼

Reviewed makefile to use right shell on right platform

pull/2342/head
Ray 3 年之前
父節點
當前提交
9cf170e6e9
共有 1 個檔案被更改,包括 6 行新增6 行删除
  1. +6
    -6
      src/Makefile

+ 6
- 6
src/Makefile 查看文件

@ -42,7 +42,7 @@
# Define required environment variables # Define required environment variables
#------------------------------------------------------------------------------------------------ #------------------------------------------------------------------------------------------------
# Define target platform: PLATFORM_DESKTOP, PLATFORM_RPI, PLATFORM_DRM, PLATFORM_ANDROID, PLATFORM_WEB # Define target platform: PLATFORM_DESKTOP, PLATFORM_RPI, PLATFORM_DRM, PLATFORM_ANDROID, PLATFORM_WEB
PLATFORM ?= PLATFORM_DESKTOP
PLATFORM ?= PLATFORM_DESKTOP
# Define required raylib variables # Define required raylib variables
RAYLIB_VERSION = 4.0.0 RAYLIB_VERSION = 4.0.0
@ -138,7 +138,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
PLATFORM_OS = OSX PLATFORM_OS = OSX
endif endif
ifndef PLATFORM_SHELL ifndef PLATFORM_SHELL
PLATFORM_SHELL = cmd
PLATFORM_SHELL = sh
endif endif
endif endif
endif endif
@ -148,7 +148,7 @@ ifeq ($(PLATFORM),PLATFORM_RPI)
PLATFORM_OS = LINUX PLATFORM_OS = LINUX
endif endif
ifndef PLATFORM_SHELL ifndef PLATFORM_SHELL
PLATFORM_SHELL = cmd
PLATFORM_SHELL = sh
endif endif
endif endif
ifeq ($(PLATFORM),PLATFORM_DRM) ifeq ($(PLATFORM),PLATFORM_DRM)
@ -157,7 +157,7 @@ ifeq ($(PLATFORM),PLATFORM_DRM)
PLATFORM_OS = LINUX PLATFORM_OS = LINUX
endif endif
ifndef PLATFORM_SHELL ifndef PLATFORM_SHELL
PLATFORM_SHELL = cmd
PLATFORM_SHELL = sh
endif endif
endif endif
ifeq ($(PLATFORM),PLATFORM_WEB) ifeq ($(PLATFORM),PLATFORM_WEB)
@ -297,7 +297,7 @@ endif
#------------------------------------------------------------------------------------------------ #------------------------------------------------------------------------------------------------
# -O1 defines optimization level # -O1 defines optimization level
# -g include debug information on compilation # -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 # -Wall turns on most, but not all, compiler warnings
# -std=c99 defines C language mode (standard C from 1999 revision) # -std=c99 defines C language mode (standard C from 1999 revision)
# -std=gnu99 defines C language mode (GNU 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 CFLAGS += -Os
endif endif
ifeq ($(PLATFORM),PLATFORM_DESKTOP) ifeq ($(PLATFORM),PLATFORM_DESKTOP)
CFLAGS += -s -O1
CFLAGS += -O1
endif endif
ifeq ($(PLATFORM),PLATFORM_ANDROID) ifeq ($(PLATFORM),PLATFORM_ANDROID)
CFLAGS += -O2 CFLAGS += -O2

Loading…
取消
儲存