|
@@ -117,7 +117,7 @@ ASRC =
|
|
# Optimization level, can be [0, 1, 2, 3, s].
|
|
# Optimization level, can be [0, 1, 2, 3, s].
|
|
# 0 = turn off optimization. s = optimize for size.
|
|
# 0 = turn off optimization. s = optimize for size.
|
|
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.)
|
|
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.)
|
|
-OPT = s
|
|
|
|
|
|
+OPT = 2
|
|
|
|
|
|
|
|
|
|
# Debugging format.
|
|
# Debugging format.
|
|
@@ -139,7 +139,7 @@ EXTRAINCDIRS = inc
|
|
# gnu89 = c89 plus GCC extensions
|
|
# gnu89 = c89 plus GCC extensions
|
|
# c99 = ISO C99 standard (not yet fully implemented)
|
|
# c99 = ISO C99 standard (not yet fully implemented)
|
|
# gnu99 = c99 plus GCC extensions
|
|
# gnu99 = c99 plus GCC extensions
|
|
-CSTANDARD = -std=gnu99
|
|
|
|
|
|
+CSTANDARD = -std=gnu11
|
|
|
|
|
|
|
|
|
|
# Place -D or -U options here for C sources
|
|
# Place -D or -U options here for C sources
|
|
@@ -555,7 +555,7 @@ extcoff: $(BINDIR)/$(TARGET).elf
|
|
%.eep: %.elf
|
|
%.eep: %.elf
|
|
# @echo
|
|
# @echo
|
|
@echo $(MSG_EEPROM) $@
|
|
@echo $(MSG_EEPROM) $@
|
|
- @-$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \
|
|
|
|
|
|
+ @-$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom='alloc,load' \
|
|
--change-section-lma .eeprom=0 --no-change-warnings -O $(FORMAT) $< $@ || exit 0
|
|
--change-section-lma .eeprom=0 --no-change-warnings -O $(FORMAT) $< $@ || exit 0
|
|
|
|
|
|
# Create extended listing file from ELF output file.
|
|
# Create extended listing file from ELF output file.
|