Added build option for Makefile (for optimized)
This commit is contained in:
@@ -121,14 +121,18 @@ LIBRARY = lib$(TARGET).a
|
|||||||
## Options common to compile, link and assembly rules
|
## Options common to compile, link and assembly rules
|
||||||
COMMON = -mmcu=$(MCU)
|
COMMON = -mmcu=$(MCU)
|
||||||
|
|
||||||
|
# define something from the Makefile or batch file
|
||||||
|
DEFINES =
|
||||||
|
|
||||||
OPTIMIZE_FLAGS = -mcall-prologues
|
OPTIMIZE_FLAGS = -mcall-prologues
|
||||||
OPTIMIZE_FLAGS += -finline-functions-called-once
|
OPTIMIZE_FLAGS += -finline-functions-called-once
|
||||||
# default optimization is for debugging from AVR Studio
|
# default optimization is for debugging from AVR Studio
|
||||||
OPTIMIZATION = -O0
|
OPTIMIZATION = -O0
|
||||||
#OPTIMIZATION = -Os $(OPTIMIZE_FLAGS)
|
|
||||||
DEBUGGING = -g
|
DEBUGGING = -g
|
||||||
# define something from the Makefile or batch file
|
ifeq (${BUILD},release)
|
||||||
DEFINES =
|
OPTIMIZATION = -Os $(OPTIMIZE_FLAGS)
|
||||||
|
DEBUGGING =
|
||||||
|
endif#
|
||||||
|
|
||||||
## Compile options common for all C compilation units.
|
## Compile options common for all C compilation units.
|
||||||
BFLAGS = -DBACDL_MSTP
|
BFLAGS = -DBACDL_MSTP
|
||||||
|
|||||||
Reference in New Issue
Block a user