how to program atmega 1284p AU with arduino ide with USBasp?

how to program atmega 1284p AU with arduino ide with USBasp?

where i can find files to put in hardware folder?

regards

I posted a step-by-step a while ago.
I hope it helps.