From f560302ae8e2c9c3c924b2ddf38bf7a4718fb338 Mon Sep 17 00:00:00 2001 From: keiff3r Date: Thu, 7 Nov 2024 15:15:16 +0100 Subject: [PATCH] chore: update Makefile for debug configuration - Remove inclusion of debug-helpers/debug.h from default CFLAGS. - Add inclusion of debug-helpers/debug.h to CFLAGS only when DEBUG=1. - Ensure CFLAGS includes -g for debugging when DEBUG=1. --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d95d1e6d..96dbc721 100644 --- a/Makefile +++ b/Makefile @@ -158,8 +158,6 @@ DEFINES += HAVE_BOLOS_APP_STACK_CANARY DEFINES += IO_SEPROXYHAL_BUFFER_SIZE_B=300 -# debugging helper functions and macros -CFLAGS += -include debug-helpers/debug.h # DEFINES += HAVE_PRINT_STACK_POINTER @@ -170,7 +168,8 @@ ifeq ($(DEBUG),10) endif ifeq ($(DEBUG),1) - CFLAGS += -g + # debugging helper functions and macros + CFLAGS += -include debug-helpers/debug.h -g endif # Needed to be able to include the definition of G_cx INCLUDES_PATH += $(BOLOS_SDK)/lib_cxng/src