

@echo off

avr-gcc -save-temps -mmcu=atmega16 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -std=gnu99 -g test.c -o test.elf
avr-objcopy -O ihex -R .eeprom test.elf test.hex
rem  +++ avrdude -c avrisp -p atmega16 -P COM3 -b 19200 -B 12 -U flash:w:test.hex:i

pause

