Update Makefiles

This commit is contained in:
Jasper Blanckenburg 2022-08-17 08:47:27 +02:00 committed by jazzpi
parent 9fa034f10f
commit 2a824f1662
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,5 @@
########################################################################################################################## ##########################################################################################################################
# File automatically-generated by tool: [projectgenerator] version: [3.16.0] date: [Sat May 28 19:05:06 CEST 2022] # File automatically-generated by tool: [projectgenerator] version: [3.16.0] date: [Sun May 29 02:01:26 CEST 2022]
########################################################################################################################## ##########################################################################################################################
# ------------------------------------------------ # ------------------------------------------------

View File

@ -154,7 +154,8 @@ CFLAGS = $(MCU) $(C_DEFS) $(C_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-
CXXFLAGS = $(MCU) $(CXX_DEFS) $(C_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections -feliminate-unused-debug-types CXXFLAGS = $(MCU) $(CXX_DEFS) $(C_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections -feliminate-unused-debug-types
ifeq ($(DEBUG), 1) ifeq ($(DEBUG), 1)
CFLAGS += -g -gdwarf-2 CFLAGS += -g -gdwarf -ggdb
CXXFLAGS += -g -gdwarf -ggdb
endif endif
# Add additional flags # Add additional flags
@ -243,6 +244,12 @@ erase: $(BUILD_DIR)/$(TARGET).elf
clean: clean:
-rm -fR $(BUILD_DIR) -rm -fR $(BUILD_DIR)
#######################################
# custom makefile rules
#######################################
####################################### #######################################
# dependencies # dependencies
####################################### #######################################