How to generate binary of sketch

Hi,
I have a sketch that I want to program on an ATMEGA328 board which does not have a USB port. I want to program it via ICSP. I know how to do this through the Arduino IDE, but I was wondering if I could get this done with an ICSP (STK500, etc), using the firmware binary generated by the Arduino IDE. When I compile the sketch, I don't see any binary files saved anywhere.

Is there a way to make the Arduino IDE save the firmware binary somewhere, which can be used to program the chip with?

Thanks.

Is there a way to make the Arduino IDE save the firmware binary somewhere, which can be used to program the chip with?

It is saved, but it is deleted when the IDE is closed. Hold the shift key down when selecting the upload icon. The verbose output will show you WHERE the files are saved.

Got it. Thanks for the fast reply!