make: use shared DEBUG_FLAGS (-gdb3) by default

-ggdb3 make slightly bigger .elf files, but allows gdb to understand
macros, which libopenocm3 uses somewhat extensively.  Make this the
default, and pull it up to the common base makefile, so it can be easily
substituted.
This commit is contained in:
Karl Palsson
2015-04-30 15:32:05 +00:00
parent a21da3aebf
commit 6d658c20b8
24 changed files with 49 additions and 23 deletions

View File

@@ -25,9 +25,10 @@ PREFIX ?= arm-none-eabi
CC = $(PREFIX)-gcc
AR = $(PREFIX)-ar
CFLAGS = -Os -g -Wall -Wextra -I../../../include -fno-common \
CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
-ffunction-sections -fdata-sections -MD -DSAM3U
CFLAGS += $(DEBUG_FLAGS)
# ARFLAGS = rcsv
ARFLAGS = rcs
OBJS = gpio_common_all.o gpio_common_3a3u3x.o pmc.o usart.o