X-Git-Url: http://git.kpe.io/?p=avr_bc100.git;a=blobdiff_plain;f=BaseTinyFirmware%2FGCC%2Favr458%2FMakefile;fp=BaseTinyFirmware%2FGCC%2Favr458%2FMakefile;h=49c1c045c65cf043dbd699368a6db7221ceb14d9;hp=844d3dbe9fff90082487d46fde6043fca7ed74e9;hb=93e97b1db3d777e5c7536c997046c86f2f3a62f6;hpb=65612c4c7df34cdae10f9427ace6fd9e9e430d05 diff --git a/BaseTinyFirmware/GCC/avr458/Makefile b/BaseTinyFirmware/GCC/avr458/Makefile index 844d3db..49c1c04 100644 --- a/BaseTinyFirmware/GCC/avr458/Makefile +++ b/BaseTinyFirmware/GCC/avr458/Makefile @@ -13,7 +13,8 @@ COMMON = -mmcu=$(MCU) ## Compile options common for all C compilation units. CFLAGS = $(COMMON) -CFLAGS += -gdwarf-2 -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums +CFLAGS += -gdwarf-2 -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections +CFLAGS += -fno-inline-small-functions -fno-split-wide-types CFLAGS += -Wall -Wstrict-prototypes -Wundef -Wa,-adhlns=./$(*F).lst CFLAGS += -fno-inline-small-functions -fno-split-wide-types CFLAGS += -MMD -MP -MF dep/$(@F).d @@ -26,7 +27,7 @@ ASMFLAGS += -x assembler-with-cpp -Wa,-gdwarf2 ## Linker flags LDFLAGS = $(COMMON) -LDFLAGS += -Wl,-Map=$(PROJECT).map,--cref -Wl,-relax +LDFLAGS += -Wl,-Map=$(PROJECT).map,--cref -Wl,-relax -Wl,-gc-sections ## Intel Hex file production flags HEX_FLASH_FLAGS = -R .eeprom