The devel/arduino-makefile port
arduino-makefile-1.6.0 – Makefile to build and upload Arduino sketches
This is a very simple Makefile which knows how to build Arduino
sketches. It defines entire workflows for compiling code, flashing
it to Arduino and even communicating through Serial monitor. You
don't need to change anything in the Arduino sketches.
To use, create a Makefile and add:
Then compile with `gmake` and upload with `gmake upload`.