X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=BaseTinyFirmware%2FGCC%2Favr463%2FMakefile;h=fd8c0f68b5bdb0b73e307478b1baee974baff4ee;hb=b5bb5a5535a50aa7851ceb66b7b72ac7e417d337;hp=44c49e4ee106af91dd3409db9bed26c9a69cf767;hpb=e69ce471b5201b021291e8a406d371fc451a2ace;p=avr_bc100.git diff --git a/BaseTinyFirmware/GCC/avr463/Makefile b/BaseTinyFirmware/GCC/avr463/Makefile index 44c49e4..fd8c0f6 100644 --- a/BaseTinyFirmware/GCC/avr463/Makefile +++ b/BaseTinyFirmware/GCC/avr463/Makefile @@ -5,8 +5,8 @@ ## General Flags PROJECT = avr463 MCU = attiny861 -TARGET = avr463.elf -CC = avr-gcc.exe +TARGET = $(PROJECT).elf +CC = avr-gcc ## Options common to compile, link and assembly rules COMMON = -mmcu=$(MCU) @@ -23,7 +23,7 @@ ASMFLAGS += -x assembler-with-cpp -Wa,-gdwarf2 ## Linker flags LDFLAGS = $(COMMON) -LDFLAGS += -Wl,-Map=avr463.map -Wl,-relax +LDFLAGS += -Wl,-Map=$(PROJECT).map -Wl,--relax ## Intel Hex file production flags @@ -44,7 +44,7 @@ OBJECTS = ADC.o battery.o chargefunc.o main.o menu.o NIMHcharge.o OWI.o PWM.o st LINKONLYOBJECTS = ## Build -all: $(TARGET) avr463.hex avr463.eep avr463.lss size +all: $(TARGET) $(PROJECT).hex $(PROJECT).eep $(PROJECT).lss size ## Compile ADC.o: ../ADC.c @@ -100,9 +100,8 @@ size: ${TARGET} ## Clean target .PHONY: clean clean: - -rm -rf $(OBJECTS) avr463.elf dep avr463.hex avr463.eep avr463.lss avr463.map + -rm -rf $(OBJECTS) $(PROJECT).elf dep $(PROJECT).hex $(PROJECT).eep $(PROJECT).lss $(PROJECT).map ## Other dependencies -include $(shell mkdir dep 2>/dev/null) $(wildcard dep/*) -