[Cook] c_incl ignoring ifdefs?

Matthew Lee leematthewrobert at yahoo.com.au
Wed Feb 16 18:19:58 EST 2005


Hi,

I'm trying to use c_incl as a replacement to my company's in-house 
developed dodgy dependency generator.

We have some code which conditionally-includes header files:

#ifdef SOME_SYMBOL
#include blah.h
#endif


c_incl appears to blindly include blah.h in its list of dependencies -- 
something I don't want it to do, since the code is compiled without 
SOME_SYMBOL defined.

There doesn't appear to be anything in the man page addressing this.

What is c_incl supposed to do in this situation and is there any way of 
getting it to obey the #ifdef directive?

Thanks,
Matt





More information about the Cook-users mailing list