Here’s how to compile your arduino programs using the command line in windows xp. I took the Makefile from the Arduino forum, but modified it because it didn’t work for me, probably due to my using Arduino 0011.
1. Make sure you have Arduino 0011 installed and that you can upload and run the blinking LED sample program.
2. You need make. Install cygwin. I have gnu make 3.78.1 installed.
3. Download this Makefile.
4. Create a directory somewhere and a file called “main.pde”. Use the blinking LED program from the Getting Started section of the Arduino website.
5. Put the Makefile there
6. Modify the Makefile to suit your project. Instructions are in the Makefile
7. Run make, it should build the stuff
8. Run “make upload” and your program should be uploaded to the board. You can have auto-reset with Diecimila, but you have to modify avrdude.conf, which is in INSTALL_DIR/hardware/tools/avr/etc/avrdude.conf. The Makefile has instructions for how to modify avrdude.conf
Happy physical computing.