Atmega32 bootloader

Anyone figured out how to make the Arduino IDE talk to an Atmega32 chip?

With help from other topics i successfully compiled and uploaded code from Arduino 0017 to the bare Atmega32 via a ISP parallel programmer but when i try to write this retrointerfacing.com/?p=30 bootloader for example i get a verify error from avrdude like the code wasn't compiled for the chip...

avrdude.exe: verifying ... avrdude.exe: verification error, first mismatch at byte 0x7000 0x0c != 0xff avrdude.exe: verification error; content mismatch