Adjusting serial buffer size in IDE, mk2

Start with ArduinoISP. That will tell you what avrdude needs to function correctly. I believe the two are exactly mated; ArduinoISP implements the minimum necessary for avrdude to program a target.

Any reason you don't just embed / include avrdude?