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

@@ -26,6 +26,9 @@ endif
# common objects
OBJS += vector.o systick.o scb.o nvic.o assert.o sync.o dwt.o
# Slightly bigger .elf files but gains the ability to decode macros
DEBUG_FLAGS ?= -ggdb3
all: $(SRCLIBDIR)/$(LIBNAME).a
$(SRCLIBDIR)/$(LIBNAME).a: $(SRCLIBDIR)/$(LIBNAME).ld $(OBJS)