Programing ATMEGA with arduino

Hi,
I wanted to program an ATMEGA32 with my arduino mega, and I wanted to know how do I make the code for programing it, the chip hasn´t a bootloader or something like that. I just want to use my arduino as a programmer.

Looks a lot like a 1284P, with a few less resources (less memory, only 1 serial port)
Try here to start
http://www.avr-developers.com/
I am pretty sure the core files exist for that chip.
You can than build it up into an Uno like module using one of my cards
http://www.crossroadsfencing.com/BobuinoRev17/

I´m out of budget to buy does thing, what do I do?

16 MHz crystal
two 22pF caps
10K resistor
four 100nF or 0.1uF caps
wire up a minimal circuit device and use NickGammon's bootload code.

Still need to set up the IDE using the files from avr-developers.com