From 22d0baa896cfc6596b43d79cc3642b2ea3118cea Mon Sep 17 00:00:00 2001 From: raysan5 Date: Tue, 21 Dec 2021 12:24:03 +0100 Subject: [PATCH] Review makefiles debug flag --- examples/Makefile | 2 +- src/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Makefile b/examples/Makefile index c16dbed53..93b943ab4 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -204,7 +204,7 @@ endif CFLAGS += -Wall -std=c99 -D_DEFAULT_SOURCE -Wno-missing-braces -Wunused-result ifeq ($(BUILD_MODE),DEBUG) - CFLAGS += -g + CFLAGS += -g -D_DEBUG ifeq ($(PLATFORM),PLATFORM_WEB) CFLAGS += -s ASSERTIONS=1 --profiling endif diff --git a/src/Makefile b/src/Makefile index 67ed2f840..1eef421a2 100644 --- a/src/Makefile +++ b/src/Makefile @@ -283,7 +283,7 @@ ifeq ($(PLATFORM_OS), LINUX) endif ifeq ($(RAYLIB_BUILD_MODE),DEBUG) - CFLAGS += -g + CFLAGS += -g -D_DEBUG endif ifeq ($(RAYLIB_BUILD_MODE),RELEASE)