how to manually build and upload project?

Hi.
I want use for development NetBeans or other IDE. For this i want understand how build and upload standard arduino editor.

He use makefile for this? Where i find this file?

I tried setup NetBeans with Arduino plugin, but it's don't working =(

https://www.google.com/search?q=arduino+makefile
https://www.google.com/search?q=netbeans+arduino

I want use for development … other IDE

http://arduino.cc/forum/index.php/topic,160456.0.html
http://arduino.cc/forum/index.php/topic,141050.0.html
http://arduino.cc/forum/index.php/topic,125225.0.html
http://arduino.cc/forum/index.php/topic,49956.0.html
http://arduino.cc/forum/index.php/topic,79595.0.html
http://arduino.cc/forum/index.php/topic,128023.0.html

You can find more in this section…
http://arduino.cc/forum/index.php/board,23.0.html

You can use the makefiles I've developed for Xcode. The embedXcode template buils, limks and uploads sketches. I tested them on NetBeans running on OS X successfully.

Learn more at http://embedXcode.weebly.com (release 52of the makefiles) and https://github.com/rei-vilo/embedNetBeansProject (release 15 of the makefiles).