Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Managed Makefile code inclusion(Is there a convenient way to include only a few files?)
icon9.gif  Managed Makefile code inclusion [message #504844] Tue, 22 December 2009 20:19 Go to next message
Eclipse UserFriend
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?
Re: Managed Makefile code inclusion [message #504957 is a reply to message #504844] Wed, 23 December 2009 14:07 Go to previous message
Eclipse UserFriend
Editing the project file "projectname.pro" should be a possible way.
Delete all unnecessary files in the sections Sources and Headers.
Previous Topic:Accessing Symbol Table
Next Topic:Debugging: "Display as array" option unavailable.
Goto Forum:
  


Current Time: Wed Nov 05 15:18:59 EST 2025

Powered by FUDForum. Page generated in 0.02911 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top