[Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options

fxcoudert at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Apr 16 09:21:00 GMT 2007


gcc has various -M options to create Makefile dependencies for automatic
dependency tracking, which is very nice for compilation of large projects.
gfortran should be able to do the same. Here are examples with g95:

$ cat a.f90 
module foo
  integer, parameter :: bar = 42
end module foo
$ g95 -M a.f90     
a.o foo.mod: a.f90
$ cat a.F90
include "foo.inc"

module foo
  integer, parameter :: bar = 42
end module foo
$ g95 -M a.F90
a.o foo.mod: a.F90 foo.inc


-- 
           Summary: gfortran should be able to output Makefile dependencies
                    with -M* options
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31588



More information about the Gcc-bugs mailing list