Subversion Repositories DashDisplay

Rev

Rev 80 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 80 Rev 81
Line 22... Line 22...
22
# debug build?
22
# debug build?
23
DEBUG = 1
23
DEBUG = 1
24
# optimization
24
# optimization
25
OPT = -Og 
25
OPT = -Og 
26
# semihosting 
26
# semihosting 
27
SEMIHOSTING = yes
27
SEMIHOSTING = 0
28
 
28
 
29
 
29
 
30
 
30
 
31
#######################################
31
#######################################
32
# paths
32
# paths
Line 116... Line 116...
116
# C defines
116
# C defines
117
C_DEFS =  \
117
C_DEFS =  \
118
-DUSE_HAL_DRIVER \
118
-DUSE_HAL_DRIVER \
119
-DSTM32L152xE
119
-DSTM32L152xE
120
 
120
 
121
ifdef $(SEMIHOSTING)
121
ifeq ($(SEMIHOSTING),1)
122
C_DEFS += -DSEMIHOSTING
122
C_DEFS += -DSEMIHOSTING
123
endif 
123
endif 
124
 
124
 
125
# AS includes
125
# AS includes
126
AS_INCLUDES = 
126
AS_INCLUDES = 
Line 202... Line 202...
202
LDFLAGS = $(MCU) -T$(LDSCRIPT) $(LIBDIR) $(LIBS) -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref -Wl,--gc-sections
202
LDFLAGS = $(MCU) -T$(LDSCRIPT) $(LIBDIR) $(LIBS) -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref -Wl,--gc-sections
203
 
203
 
204
# libraries and specs settings 
204
# libraries and specs settings 
205
# use -lnosys when not semihosting -lrdimon when semihosting
205
# use -lnosys when not semihosting -lrdimon when semihosting
206
# use nano.specs when not semihosting -specs=rdimon.specs 
206
# use nano.specs when not semihosting -specs=rdimon.specs 
207
ifdef $(SEMIHOSTING)
207
ifeq ($(SEMIHOSTING),1)
208
LDFLAGS += -specs=rdimon.specs
208
LDFLAGS += -specs=rdimon.specs
209
LIBS += -lrdimon
209
LIBS += -lrdimon
210
else
210
else
211
LDFLAGS += -specs=nano.specs
211
LDFLAGS += -specs=nano.specs
212
LIBS += -lnosys
212
LIBS += -lnosys