X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=BaseTinyFirmware%2FGCC%2Favr458%2FMakefile;h=844d3dbe9fff90082487d46fde6043fca7ed74e9;hb=65612c4c7df34cdae10f9427ace6fd9e9e430d05;hp=d74f9d4b2745d0690867f24d0d3744fdaf887f90;hpb=70667e37128288b141e5def02dfb0e47a5e60034;p=avr_bc100.git diff --git a/BaseTinyFirmware/GCC/avr458/Makefile b/BaseTinyFirmware/GCC/avr458/Makefile index d74f9d4..844d3db 100644 --- a/BaseTinyFirmware/GCC/avr458/Makefile +++ b/BaseTinyFirmware/GCC/avr458/Makefile @@ -1,4 +1,4 @@ - ############################################################################### +############################################################################### # Makefile for the project avr458 ############################################################################### @@ -6,15 +6,18 @@ PROJECT = avr458 MCU = attiny861 TARGET = $(PROJECT).elf -CC = avr-gcc.exe +CC = avr-gcc ## Options common to compile, link and assembly rules COMMON = -mmcu=$(MCU) ## Compile options common for all C compilation units. CFLAGS = $(COMMON) -CFLAGS += -Wall -gdwarf-2 -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -DLIION -CFLAGS += -MD -MP -MT $(*F).o -MF dep/$(@F).d +CFLAGS += -gdwarf-2 -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums +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 +CFLAGS += -DLIION ## Assembly specific flags ASMFLAGS = $(COMMON) @@ -23,12 +26,10 @@ ASMFLAGS += -x assembler-with-cpp -Wa,-gdwarf2 ## Linker flags LDFLAGS = $(COMMON) -LDFLAGS += -Wl,-Map=$(PROJECT).map -Wl,-relax - +LDFLAGS += -Wl,-Map=$(PROJECT).map,--cref -Wl,-relax ## Intel Hex file production flags HEX_FLASH_FLAGS = -R .eeprom - HEX_EEPROM_FLAGS = -j .eeprom HEX_EEPROM_FLAGS += --set-section-flags=.eeprom="alloc,load" HEX_EEPROM_FLAGS += --change-section-lma .eeprom=0 --no-change-warnings @@ -100,7 +101,7 @@ size: ${TARGET} ## Clean target .PHONY: clean clean: - -rm -rf $(OBJECTS) $(PROJECT).elf dep $(PROJECT).hex $(PROJECT).eep $(PROJECT).lss $(PROJECT).map + -rm -rf $(OBJECTS) $(PROJECT).elf dep $(PROJECT).hex $(PROJECT).eep $(PROJECT).lss $(PROJECT).map *.lst ## Other dependencies