3 targetProjectFile=heart
5 #AVRGCC=/usr/local/avr/bin/avr-gcc
6 #AVRGCC=/home/dmitry/Bin/avr8-gnu-toolchain-linux_x86_64/bin/avr-gcc
9 # export DEFINES="-mmcu=attiny10 -DF_CPU=12000000UL -DBOARD=1 -fno-strict-aliasing"
10 export DEFINES="-mmcu=attiny10 -DBOARD=1 -fno-strict-aliasing -Wattributes"
12 # export PATH=$PATH:/usr/local/avr/bin
13 # export PATH=$PATH:/home/dmitry/Bin/avr8-gnu-toolchain-linux_x86_64/
17 $AVRGCC $DEFINES -Wall -O1 -std=gnu99 -o $targetProjectFile.o -c $targetProjectFile.c
18 $AVRGCC $DEFINES -Wl,-Map=$targetProjectFile.map $targetProjectFile.o -o $targetProjectFile.elf
19 avr-objcopy -O ihex $targetProjectFile.elf $targetProjectFile.hex
21 echo "Compilatoin done"