summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-12-21 12:24:03 +0100
committerraysan5 <[email protected]>2021-12-21 12:24:03 +0100
commit22d0baa896cfc6596b43d79cc3642b2ea3118cea (patch)
tree3df3d1db8482ec353d738a8d360b58e426dc2295
parentdcb0e620953cc42620c6e2bc8129f7446ad93257 (diff)
downloadraylib-22d0baa896cfc6596b43d79cc3642b2ea3118cea.tar.gz
raylib-22d0baa896cfc6596b43d79cc3642b2ea3118cea.zip
Review makefiles debug flag
-rw-r--r--examples/Makefile2
-rw-r--r--src/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/Makefile b/examples/Makefile
index c16dbed5..93b943ab 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 67ed2f84..1eef421a 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)