X-Git-Url: http://git.kpe.io/?p=avr_bc100.git;a=blobdiff_plain;f=BaseTinyFirmware%2FGCC%2Favr463%2FMakefile;fp=BaseTinyFirmware%2FGCC%2Favr463%2FMakefile;h=826b34552aaca3dd8b62852a644d1af88bd738b9;hp=44c49e4ee106af91dd3409db9bed26c9a69cf767;hb=70667e37128288b141e5def02dfb0e47a5e60034;hpb=e69ce471b5201b021291e8a406d371fc451a2ace diff --git a/BaseTinyFirmware/GCC/avr463/Makefile b/BaseTinyFirmware/GCC/avr463/Makefile index 44c49e4..826b345 100644 --- a/BaseTinyFirmware/GCC/avr463/Makefile +++ b/BaseTinyFirmware/GCC/avr463/Makefile @@ -1,11 +1,11 @@ -############################################################################### + ############################################################################### # Makefile for the project avr463 ############################################################################### ## General Flags PROJECT = avr463 MCU = attiny861 -TARGET = avr463.elf +TARGET = $(PROJECT).elf CC = avr-gcc.exe ## Options common to compile, link and assembly rules @@ -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/*) -