I started with an Arduino Makefile and bent it to work with Teensy3.
Enjoy :D



ifndef ARDUINODIR
ARDUINODIR := $(firstword $(wildcard ~/opt/arduino /usr/share/arduino))
endif

# default...