Hi
I'm new to Maple and ARM in general, not new to C++, Makefiles, AVRs, etc.
Right now, all I'm trying to do is to figure out how to create a build environment for a classic, multiple .cpp and .h file, C++ project.
In the Unix Toolchain doc (http://leaflabs.com/docs/unix-toolchain.html#starting-your-own-projects), it states ...
"At a minimum, your include path should contain the directories ~/libmaple/libmaple and ~/libmaple/wirish/"
But this is clearly much less than, "a minimum". Why? Because it does nothing to tell of the myriad of compiler options and other things apparently needed to actually compile code for the Maple. That is to say, it's not as if you can simply ...
arm-none-eabi-g++ -o myprog -Iwirish_include_dir -Lmaple.a main.cpp source1.cpp etc.cpp
... since that surely leaves out a great deal of otherwise required stuff. There's no board definition for starters, not to mention having no path from there to an .elf and then .bin file.
(I do want to use wirish libraries etc, at least at this stage -- since that is the whole point, I thought?)
I tried to modify the suite of files (like support/make/build-rules.mk
) used to build the single main.cpp "sketch", so that it would also compile and later link multiple files. But I failed miserably. The build rules use some kind of compiler directive that seems to disallow multiple source files. Boohoo. I guess I'm not as clever with make (or g++) as I thought. :(
So I'm really hoping someone can point me to an example of a, "large" project, which has a Makefile that can handle more than one source .cpp file.
Much gratitude held in reserve for your generous kindness! :D
Bryan.