Teensy Makefile is a modified version of the wonderful arduino-mk file made by Tim Marston available at http://ed.am/dev/make/arduino-mk to use Teensyduino.
To build a .hex file:
- Copy makefile to project directory
- Run:
export ARDUINODIR=/<path_to>/arduino # only if in a weird place
export BOARD=teensy35 # or whatever your target board is
export SPEED=120 # or whatever your target clock speed is
make
To compile and upload your .hex file:
- Run:
make upload