diff options
| author | Ray <[email protected]> | 2021-12-27 16:49:01 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-12-27 16:49:01 +0100 |
| commit | 5f2bc20191fecabc0bd50ed80a3d33d170ffd916 (patch) | |
| tree | 8bcf622e7bc5a2d609e99886dc538e714795c627 /src | |
| parent | 8844ad6f0b908498dad15da2328ec41a17d4d076 (diff) | |
| download | raylib-5f2bc20191fecabc0bd50ed80a3d33d170ffd916.tar.gz raylib-5f2bc20191fecabc0bd50ed80a3d33d170ffd916.zip | |
Update Makefile
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile index 0004ecae..662f7b0e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -65,6 +65,11 @@ RAYLIB_LIB_NAME ?= raylib # Define resource file for DLL properties 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 # Options: PLATFORM_DESKTOP, PLATFORM_RPI, PLATFORM_ANDROID, PLATFORM_WEB PLATFORM ?= PLATFORM_DESKTOP @@ -272,6 +277,10 @@ endif # -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 +ifneq ($(RAYLIB_CONFIG_FLAGS), NONE) + CFLAGS += -DEXTERNAL_CONFIG_FLAGS $(RAYLIB_CONFIG_FLAGS) +endif + ifeq ($(PLATFORM), PLATFORM_WEB) CFLAGS += -std=gnu99 else |
