help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems telling make about FORTRAN 90 module use


From: beliavsky
Subject: Re: Problems telling make about FORTRAN 90 module use
Date: 18 Sep 2004 10:45:32 -0700

David Bristow <djbristow@optonline.net> wrote in message 
news:<pan.2004.09.17.20.21.45.232195@optonline.net>...
> Some FORTRAN source compiles not only to an object code file, but also a
> .mod file for other subroutines to "USE".  How do I tell make that these
> files are created, and that each of the subroutines that use the modules
> must be compiled after the .mod files it references are created first?
> 
> make didn't know how to deal with blah.f90, so I used this rule:
> 
> %.o : %.f90
>         $(FC) -c $(FFLAGS) $< -o $@
> 
> but this doesn't say anything about the .mod file generated by some of
> these files.  Any ideas?
> 
> David Bristow
> djbristow@optonline.net

Lots of Fortranners have grappled with this. Maybe one of the tools at
http://www.dmoz.org/Computers/Programming/Languages/Fortran/Tools/
solves your problem -- grep for "make". Someone can definitely answer
your question on comp.lang.fortran .

reply via email to

[Prev in Thread] Current Thread [Next in Thread]