On Wed, Jul 31, 2002 at 04:09:36PM +0200, Michael Gerner Andreasen wrote:
> Iam starting to feel the pressur from my brain and from the list!! *giggle*
> 
> when i use gcc to make my depends:
> $(CC) -MM $(SRC_FILES) $(CFLAGS) > .depend
> could someone explaine me why we have the CFLAGS in it?

To make sure that your source-files depend on the same flags as
your depend depends on them.

For example:

CFLAGS  = -DINTERMUD3

#ifdef INTERMUD3
#include "imc3/fd_imc3.h"
#endif

Now without the CFLAGS, imc3/fd_imc3.h will not be taken into account
for this file.

Edwin

-- 
Edwin Groothuis      |            Personal website: http://www.MavEtJu.org
[EMAIL PROTECTED]    |    Weblog: http://www.mavetju.org/weblog/weblog.php 
bash$ :(){ :|:&};:   | Interested in MUDs? http://www.FatalDimensions.org/

Reply via email to