summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-12-29 19:06:43 +0100
committerraysan5 <[email protected]>2021-12-29 19:06:43 +0100
commitc862c4bdf2628aa906c98a114b8380a2f673f400 (patch)
tree00c096b7983f2293eec07005548cf60f6658f6ac /src
parente22220973252c5c66c9dbe598108c0b92b96b625 (diff)
downloadraylib-c862c4bdf2628aa906c98a114b8380a2f673f400.tar.gz
raylib-c862c4bdf2628aa906c98a114b8380a2f673f400.zip
Support CUSTOM_CFLAGS
Diffstat (limited to 'src')
-rw-r--r--src/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 8ddb207c..1d7c2542 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -74,6 +74,8 @@ RAYLIB_CONFIG_FLAGS ?= NONE
# Options: PLATFORM_DESKTOP, PLATFORM_RPI, PLATFORM_ANDROID, PLATFORM_WEB
PLATFORM ?= PLATFORM_DESKTOP
+# To define additional cflags: Use make CUSTOM_CFLAGS=""
+
# Include raylib modules on compilation
# NOTE: Some programs like tools could not require those modules
RAYLIB_MODULE_AUDIO ?= TRUE
@@ -275,7 +277,7 @@ endif
# -D_DEFAULT_SOURCE use with -std=c99 on Linux and PLATFORM_WEB, required for timespec
# -Werror=pointer-arith catch unportable code that does direct arithmetic on void pointers
# -fno-strict-aliasing jar_xm.h does shady stuff (breaks strict aliasing)
-CFLAGS = -Wall -D_DEFAULT_SOURCE -D$(PLATFORM) -D$(GRAPHICS) -Wno-missing-braces -Werror=pointer-arith -fno-strict-aliasing
+CFLAGS = -Wall -D_DEFAULT_SOURCE -D$(PLATFORM) -D$(GRAPHICS) -Wno-missing-braces -Werror=pointer-arith -fno-strict-aliasing $(CUSTOM_CFLAGS)
ifneq ($(RAYLIB_CONFIG_FLAGS), NONE)
CFLAGS += -DEXTERNAL_CONFIG_FLAGS $(RAYLIB_CONFIG_FLAGS)