[fluksod + avr] revert to using main as avr target name

This commit is contained in:
Bart Van Der Meerssche 2011-05-03 06:15:15 +02:00
parent bd9067dbd2
commit b80c95c752
2 changed files with 12 additions and 11 deletions

View File

@ -72,11 +72,11 @@ FORMAT = ihex
# Target file name (without extension). # Target file name (without extension).
TARGET = $(shell git rev-parse HEAD | awk '{print substr($$0,1,16)}') TARGET = main
# List C source files here. (C dependencies are automatically generated.) # List C source files here. (C dependencies are automatically generated.)
SRC = main.c buffer.c uart.c spi.c ctrl.c SRC = $(TARGET).c buffer.c uart.c spi.c ctrl.c
# List Assembler source files here. # List Assembler source files here.
@ -542,13 +542,13 @@ clean: begin clean_list end
clean_list : clean_list :
@echo @echo
@echo $(MSG_CLEANING) @echo $(MSG_CLEANING)
$(REMOVE) *.hex $(REMOVE) $(TARGET).hex
$(REMOVE) *.eep $(REMOVE) $(TARGET).eep
$(REMOVE) *.cof $(REMOVE) $(TARGET).cof
$(REMOVE) *.elf $(REMOVE) $(TARGET).elf
$(REMOVE) *.map $(REMOVE) $(TARGET).map
$(REMOVE) *.sym $(REMOVE) $(TARGET).sym
$(REMOVE) *.lss $(REMOVE) $(TARGET).lss
$(REMOVE) $(OBJ) $(REMOVE) $(OBJ)
$(REMOVE) $(LST) $(REMOVE) $(LST)
$(REMOVE) $(SRC:.c=.s) $(REMOVE) $(SRC:.c=.s)

View File

@ -30,9 +30,10 @@ program_sensor_board()
FLAGS="-p $MCU -c $PROGRAMMER" FLAGS="-p $MCU -c $PROGRAMMER"
FUSES="-U lfuse:w:0xEC:m -U hfuse:w:0xD6:m -U efuse:w:0x01:m" FUSES="-U lfuse:w:0xEC:m -U hfuse:w:0xD6:m -U efuse:w:0x01:m"
TARGET=main
AVRDIR=/usr/bin/avr AVRDIR=/usr/bin/avr
HEXFILE=$(find $AVRDIR/*.hex) HEXFILE="$AVRDIR/$TARGET.hex"
EEPFILE=$(find $AVRDIR/*.eep) EEPFILE="$AVRDIR/$TARGET.eep"
FLASH="-U flash:w:$HEXFILE" FLASH="-U flash:w:$HEXFILE"
EEPROM="-U eeprom:w:$EEPFILE" EEPROM="-U eeprom:w:$EEPFILE"