Update Makefile
This commit is contained in:
parent
8844ad6f0b
commit
5f2bc20191
1 changed files with 9 additions and 0 deletions
|
@ -65,6 +65,11 @@ RAYLIB_LIB_NAME ?= raylib
|
||||||
# Define resource file for DLL properties
|
# Define resource file for DLL properties
|
||||||
RAYLIB_RES_FILE ?= ./raylib.dll.rc.data
|
RAYLIB_RES_FILE ?= ./raylib.dll.rc.data
|
||||||
|
|
||||||
|
# Define external config flags
|
||||||
|
# NOTE: It will override config.h flags with the provided ones,
|
||||||
|
# if NONE, default config.h flags are used
|
||||||
|
RAYLIB_CONFIG_FLAGS ?= NONE
|
||||||
|
|
||||||
# Define raylib platform
|
# Define raylib platform
|
||||||
# Options: PLATFORM_DESKTOP, PLATFORM_RPI, PLATFORM_ANDROID, PLATFORM_WEB
|
# Options: PLATFORM_DESKTOP, PLATFORM_RPI, PLATFORM_ANDROID, PLATFORM_WEB
|
||||||
PLATFORM ?= PLATFORM_DESKTOP
|
PLATFORM ?= PLATFORM_DESKTOP
|
||||||
|
@ -272,6 +277,10 @@ endif
|
||||||
# -fno-strict-aliasing jar_xm.h does shady stuff (breaks strict aliasing)
|
# -fno-strict-aliasing jar_xm.h does shady stuff (breaks strict aliasing)
|
||||||
CFLAGS = -Wall -D_DEFAULT_SOURCE -Wno-missing-braces -Werror=pointer-arith -fno-strict-aliasing
|
CFLAGS = -Wall -D_DEFAULT_SOURCE -Wno-missing-braces -Werror=pointer-arith -fno-strict-aliasing
|
||||||
|
|
||||||
|
ifneq ($(RAYLIB_CONFIG_FLAGS), NONE)
|
||||||
|
CFLAGS += -DEXTERNAL_CONFIG_FLAGS $(RAYLIB_CONFIG_FLAGS)
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(PLATFORM), PLATFORM_WEB)
|
ifeq ($(PLATFORM), PLATFORM_WEB)
|
||||||
CFLAGS += -std=gnu99
|
CFLAGS += -std=gnu99
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue