Programing another atmega8 running on 1MHZ internal RC oscillator using Arduino IDE
You would need to add a new hardware configuration. Here the procedure is explained for an ATMega328: http://arduino.cc/en/Tutorial/ArduinoToBreadboard
but you would need to adjust the example hardware config or maybe you'll find a working one.