From aab2ceae996c4d8ff94ccb1811bc35a903c1e8b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Sun, 26 Jun 2022 19:18:41 +0200 Subject: [PATCH] Makefile adjustments --- Software/VNA_embedded/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Software/VNA_embedded/Makefile b/Software/VNA_embedded/Makefile index 8ad1b4b..41f9ba4 100644 --- a/Software/VNA_embedded/Makefile +++ b/Software/VNA_embedded/Makefile @@ -20,7 +20,7 @@ TARGET = VNA_embedded # building variables ###################################### # debug build? -DEBUG = 0 +DEBUG = 1 # optimization OPT = -O2 @@ -102,6 +102,7 @@ C_DEFS = \ -DFW_MAJOR=1 \ -DFW_MINOR=3 \ -DFW_PATCH=0 \ +-DDEBUG \ -DUSE_FULL_LL_DRIVER \ -DHW_REVISION="'B'" \ -D__weak="__attribute__((weak))" \ @@ -141,8 +142,8 @@ endif # compile gcc flags ASFLAGS = $(MCU) -g -CFLAGS = $(MCU) $(C_DEFS) $(C_INCLUDES) $(OPT) -Wall -fmessage-length=0 -ffunction-sections -fdata-sections -c --specs=nano.specs -CXXFLAGS = $(MCU) $(C_DEFS) $(C_INCLUDES) $(OPT) -Wall -fmessage-length=0 -ffunction-sections -fdata-sections -c -fno-exceptions -fno-rtti --specs=nano.specs -fno-use-cxa-atexit +CFLAGS = $(MCU) $(C_DEFS) $(C_INCLUDES) $(OPT) -Wall -ffunction-sections -fdata-sections -c --specs=nano.specs -fstack-usage +CXXFLAGS = $(MCU) $(C_DEFS) $(C_INCLUDES) $(OPT) -Wall -fmessage-length=0 -ffunction-sections -fdata-sections -c -fno-exceptions -fno-rtti --specs=nano.specs -fno-use-cxa-atexit -fstack-usage