Those that specify a NO_ARDUINO environment variable before using
the teensy3/Makefile, will be completely Arduino independent. Note
however that if ARDUINOPATH is set, the NO_ARDUINO behaviour will
be overridden. With NO_ARDUINO set and ARDUINOPATH unset, the
cross-compiler tool path (COMPILERPATH) will be set to /usr/bin.
Setting the COMPILERPATH environment variable before using the
teensy3/Makefile, will override the default.
Some path-variables in the teens3/Makefile passes though abspath
every time before they get used. Do this only once, when they get
set. This makes things more readable and less error-prone.
Define MCU in one place at the top of the file. Also allow it to be
overridden by the command line to compile for a different MCU without
changing the Makefile.
Reduce confusion, remove -nostdlib as it isn't obvious that it is
only being passed when compiling (which isn't linking so doesn't use
it), and isn't being passed to the linker (where it would fail if it
was, because routines from the library are used).
I think that
- the ARDUIO define should actually be named ARDUINO (main.cpp for example checks for an existing definition of ARDUINO)
- the teensyduino version is 1.20 now