[Cook] c_incl ignoring ifdefs?
Jeff Lawson
jeff_lawson at ud.com
Fri Feb 18 04:57:08 EST 2005
If you want full preprocessor #ifdef handling, you can try using the
"-M" or "-MM" options of gcc to generate dependencies in Makefile
compatible output. It's not quite as flexible or configurable as c_incl
though.
-----Original Message-----
From: cook-users-bounces+jlawson=ud.com at auug.org.au
[mailto:cook-users-bounces+jlawson=ud.com at auug.org.au] On Behalf Of
Matthew Lee
Sent: Wednesday, February 16, 2005 1:20 AM
To: cook-users at auug.org.au
Subject: [Cook] c_incl ignoring ifdefs?
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
_______________________________________________
Cook-users mailing list
Cook-users at auug.org.au
http://www.auug.org.au/mailman/listinfo/cook-users
More information about the Cook-users
mailing list