[dorkbotpdx-blabber] Teensy++ Released (special dorkbot discount, March 16)

Paul Stoffregen paul at pjrc.com
Fri Mar 20 16:45:38 EDT 2009


> I'm attempting to get the arduino make file in hardware/cores/arduino
> work with the teensypp hardware and having some challenges.

It's been a long time since Arduino has provided a working Makefile.  
When I created the Teensy "core" for the Arduino IDE, I didn't bring 
over the makefile because it did not work.

> Anyone know the magic needed to build the arduino examples (from a makefile)
> for the teensypp hardware?
>   

You could start with the Makefile that is in the 
arduino-0012/hardware/cores/arduino directory.  But it hasn't been 
maintained in quite a long time, so on top of a few edited for the 
Teensy (different filenames), it won't precisely match the Arduino IDE's 
build process.

Long ago, the Arduino IDE simply concatenated all your files together 
and added a single header line at the top, compiled that, then compiled 
all the .c sources in the core directory, and linked them all together.  
That is basically the functionality you'll find in the Makefile.

Much has changed.  Recent Arudino (including 0012) parses include lines 
and moves them all to the top, and includes the WProgram.h one after 
those.  I believe it does some work to create function prototypes for 
you.  Some work is done to detect libraries.  None of this is provided 
by the Makefile.

The build process is a moving target.  Compiler flags have changed, the 
.a library was introduced in 0008  and removed recently (0013 & 0014), 
but has recently reappeared in svn and should become part of 0015.  
David Mellis (the only developer to make commits to Arduino's svn in 
quite some time) recently spoke of accepting a patch to change the build 
process to accept assembly, and also mentioned longer term plans to 
avoid recompiling files unnecessarily.  Other changes have been 
submitted but it's not clear if they'll be accepted and merged.

Nobody is maintaining that Makefile.


-Paul




More information about the dorkbotpdx-blabber mailing list