X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=BaseTinyFirmware%2FGCC%2Favr463%2FMakefile;h=53aebb18583967fcb3b80b22fe903a03126b216e;hb=03b410c58cdc4e44a2900bace0a66b41fba77752;hp=826b34552aaca3dd8b62852a644d1af88bd738b9;hpb=70667e37128288b141e5def02dfb0e47a5e60034;p=avr_bc100.git diff --git a/BaseTinyFirmware/GCC/avr463/Makefile b/BaseTinyFirmware/GCC/avr463/Makefile index 826b345..53aebb1 100644 --- a/BaseTinyFirmware/GCC/avr463/Makefile +++ b/BaseTinyFirmware/GCC/avr463/Makefile @@ -1,4 +1,4 @@ - ############################################################################### +############################################################################### # Makefile for the project avr463 ############################################################################### @@ -6,15 +6,18 @@ PROJECT = avr463 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 -DNIMH -CFLAGS += -MD -MP -MT $(*F).o -MF dep/$(@F).d +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 += -MMD -MP -MF dep/$(@F).d +CFLAGS += -DNIMH ## Assembly specific flags ASMFLAGS = $(COMMON) @@ -23,7 +26,7 @@ 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,-gc-sections -Wl,-relax ## Intel Hex file production flags @@ -100,7 +103,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