HOW TO BUILD ARDUINO ON YOUR FAVORITE PLATFORM
See: http://code.google.com/p/arduino/wiki/BuildingArduino