building arduino using atmega8

Should be able to.
Start here
http://www.avr-developers.com/