Added build option for Makefile (for optimized)

This commit is contained in:
skarg
2009-05-13 04:49:59 +00:00
parent 0c4edb33d9
commit 1b78d33ddc
+7 -3
View File
@@ -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