g77: Automatically generating MAKE dependencies

Matthew D. Langston langston@SLAC.Stanford.EDU
Sat Jan 31 20:08:00 GMT 1998


Hello all,

  According to the g77 info pages from egcs-1.0.1, g77 can generate
dependency information for Make: 

* Preprocessor Options:: Controlling header files and macro definitions.
                         Also, getting dependency information for Make.


However, this is the only mention in the info pages of how to do this. 
Is this ability built into g77 yet?  Note that I am talking about the
Fortran `INCLUDE' statement, and not the CPP `#include' directive (i.e.
the Fortran source code I have to maintain doesn't use cpp macros; it is
pure Fortran 77).

For the C and C++ code that I maintain, I pass the flags `-MM' and `-MG'
to gcc in order to get cpp to output the Make dependency information. 
However, these flags appear to be no-ops for g77.

Can someone speak to this?

--
Matthew D. Langston
SLD, Stanford Linear Accelerator Center
langston@SLAC.Stanford.EDU



More information about the Gcc mailing list