@echo off set platz= set platz1= :set mcu=90s2313 set mcu=tiny26 :set mcu=mega8 set main=test set ac=c:\avr\winavr path %ac%\bin;%path% avr-gcc.exe -xc -Os -mmcu=at%mcu% -Wall -g -o main.out *.c >l if not exist main.out goto end cmd /c avr-objdump.exe -t -h -S main.out >%main%.lst cmd /c avr-objcopy.exe -O ihex main.out %main%.hex avr-size.exe -B main.out del main.out goto end ::pause call pf.bat %main% ::if errorlevel 1 goto end ::pause ::l -b19200 -i- -c1 :end