From 5f2bc20191fecabc0bd50ed80a3d33d170ffd916 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 27 Dec 2021 16:49:01 +0100 Subject: [PATCH] Update Makefile --- src/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) 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