Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Excluding files/directories from being built (with wildcards?)
Excluding files/directories from being built (with wildcards?) [message #176185] Thu, 07 September 2006 05:44
Eclipse UserFriend
Originally posted by: blaker.ieee.org

I read in the CDT FAQ that in order to have the file "devices/devices.c"
excluded form the built you could:

> add a file named "makefile.defs" to the project ROOT and added the
> following lines to it:
> OBJS := $(OBJS:devices/devices.o=)

I was wondering if it was possible to exclude an entire directory. I tried
experimenting with wildcards and it didn't have any luck. For example:
OBJS := $(OBJS:devices/*.o=) didn't exclude every object in the directory
devices.

I found that in order to exclude more then one file you could add lines:
OBJS := $(OBJS:devices/file1.o=)
OBJS := $(OBJS:devices/file2.o=)

Note: The compiler plugin i use is for CDT 3.0.2

Thanks for any suggestions.
~blake
Previous Topic:Setup help(can't compile)
Next Topic:Entries appearing in Debug view before launch
Goto Forum:
  


Current Time: Thu Sep 26 06:22:27 GMT 2024

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

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

Back to the top