CVSROOT:        /cvs
Module name:    ports
Changes by:     [email protected]    2013/05/05 14:51:40

Modified files:
        devel/arduino  : Makefile 
        devel/arduino/files: BSDmakefile 

Log message:
Improve BSDmakefile distributed with arduino libs:

- Adds the utility/ directory as an include path for each library imported.
Needed to build, for example, the SD library.

- Add example settings for an arduino mega.

- Add example of how to use the SD library.

- Use -ffunction-sections -fdata-sections and link with
-Wl,--gc-sections, as the official arduino toolchain does[1].
This makes smaller hex files. I put the -f stuff in CTUNING, which
was previously defined but unused. Commented the unused def out for now.

- Implement __cxa_pure_virtual so the user does not have to[1][2].

- Deal with the creation and removal of the utility/ directory
automatically. The comment that explained this was actually wrong
anyway. It said to create a 'utilities' directory, but it meant
'utility'. Anyway, manage this automatically, why not.

[1] 
http://stackoverflow.com/questions/920500/what-is-the-purpose-of-cxa-pure-virtual
[2] http://playground.arduino.cc/OpenBSD/CLI

OK jasper@

Reply via email to