[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 = $(shell git rev-parse HEAD | awk '{print substr($$0,1,16)}')
TARGET = main
# 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.
@ -542,13 +542,13 @@ clean: begin clean_list end
clean_list :
@echo
@echo $(MSG_CLEANING)
$(REMOVE) *.hex
$(REMOVE) *.eep
$(REMOVE) *.cof
$(REMOVE) *.elf
$(REMOVE) *.map
$(REMOVE) *.sym
$(REMOVE) *.lss
$(REMOVE) $(TARGET).hex
$(REMOVE) $(TARGET).eep
$(REMOVE) $(TARGET).cof
$(REMOVE) $(TARGET).elf
$(REMOVE) $(TARGET).map
$(REMOVE) $(TARGET).sym
$(REMOVE) $(TARGET).lss
$(REMOVE) $(OBJ)
$(REMOVE) $(LST)
$(REMOVE) $(SRC:.c=.s)

View File

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