Now a little bit of elbow grease. Start a command line interface
(otherwise known as a DOS prompt) first. Go to the directory
where WinAVR was installed. Let's say you keep the defaults and
install WinAVR at c:\winavr, then issue the following commands:
c: cd \winavr\examples cd demo copy \winavr\sample\makefile . edit makefile
In the editor, look for the line that reads
MCU = atmega128
Change atmega128 to at90s2313.
Then, look for the line that reads
TARGET = main
Change main to demo.
Save the file and exit the editor. Generally, you only need the following command to make all the targets:
make all