Programming Atmega 8

Check boards.txt, see if any of the older boards used that processor.
If not, check avr-developers.net (.com? .org?) for core files to use with the IDE.