Using a makefile instead of the Arduino IDE has several advantages. For the older arduinos, there is an excellent makefile available from the official Ubuntu repositories.
For the Due, the only Makefile I can find is the one by olikraus for u8glib:http://code.google.com/p/u8glib/source/browse/sys/arduino/HelloWorld/Makefile.152.due
Using a simple sketch attached and the above makefile (modified for paths and file extensions), I can however not make the arduino blink. Using the IDE, it works as expected.
I believe there are others interested in a makefile for the Due, so I hope we can create a working Makefile also for the Due. Please help getting a working makefile!
EDIT: here is a repo with a working makefile: GitHub - pauldreik/arduino-due-makefile: Arduino Due Makefile
Makefile (8.85 KB)
makefile.ino (462 Bytes)