rework OPTFLAGS, add DBGFLAGS (so it's easier to just replace -O3 to -Os for building bootloader)

This commit is contained in:
Pavol Rusnak 2016-02-19 00:21:09 +01:00
parent 7675a0aa5f
commit a7ef132ce5
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
1 changed files with 3 additions and 1 deletions

View File

@ -9,9 +9,11 @@ OBJDUMP = $(PREFIX)objdump
FLASH = st-flash
OPENOCD = openocd
OPTFLAGS = -O3 -g -DNDEBUG
OPTFLAGS ?= -O3
DBGFLAGS ?= -g -DNDEBUG
CFLAGS += $(OPTFLAGS) \
$(DBGFLAGS) \
-W \
-Wall \
-Wextra \