Managed Makefile code inclusion [message #504844] |
Tue, 22 December 2009 20:19  |
Eclipse User |
|
|
|
Hi all,
I'm a new user to the Eclipse world, currently using the version of Eclipse CDT bundled with Xilinx's embedded development kit (3.1, I believe).
As I do more and more embedded programming, I'm beginning to accumulate a repository of hardware-specific and/or carefully optimized functions and drivers. Most of these are <foo.h>/<foo.c> pairs. I would like to store them centrally and re-use them across CDT projects, but I'm having a pretty tough time figuring out an elegant way to do it in CDT.
My first approach was to add a linked folder to my project as described in the wiki. This works great for viewing / browsing the file tree, but it seems like it adds Every. Single. File. in my repository directory to the makefile automatically instead of only adding the ones which are referenced in some way by the project's individual source code and main() function.
This causes the final output product to contain compiled versions of tons of stuff it isn't even using, which uses up way too much codespace in my target embedded platforms.
I noticed there's a property that can be flagged on a per-file basis to exclude that file from the design, but this is a big hassle for a repository folder which contains a ton of externally managed files (that could move, disappear, or get added to outside of Eclipse)
How do I get around this? Do I have to abandon the convenience of managed makefiles and go through the hassle of writing my own?
|
|
|
|
Powered by
FUDForum. Page generated in 0.02911 seconds