compiler generated dependency information

Eddie Kohler kohler at icir.org
Fri Aug 2 13:55:33 EDT 2002


> Would it be possible to replace -MD (a gccism) in the Makefiles with a
> configuration variable?  While some compilers can not generate
> dependency information as part of the compilation, and hence require a
> separate dependency generating target, when using KCC I can specify
> '--output_dependencies $*.d' as a CPPFLAGS or CFLAGS/CXXFLAGS
> component and get results equivalent to gcc's '-MD'.
> 
> If I don't delete the -MD, the compilation continues, but generates a
> slew of warnings.

Hi,

The current sources now shove -MD onto the CC and/or CXX variables if they
are GCC and the user didn't set the variables explicitly. So you should be
able to add '--output_dependencies $*.d' to your definition of CC/CXX and
get what you want.

E




More information about the click mailing list