This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fortran makefiles


Hi Simon,

there is nothing specific about makefiles when used in the context of
Fortran or gfortran.
The only thing you need to keep in mind is indeed dealing with .mod files.

I usually use dependencies of this type:

myprog.o : myprog.f90 mymodule.o

mymodule.o : mymodule.f90

(Knowing that the modules used by myprog.f90 are contained in mymodule.f90)

Of course, you can also make the program depend on the various .mod
files directly.

Regards,

Arjen

2012/9/28 Simon Reinhardt <simon.reinhardt@stud.uni-regensburg.de>:
> hi,
> where can I find information on fortran makefiles, when using gfortran?
> Is there some canonical way to deal with .mod files in a makefile?
> thanks for your advice!
> Simon


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]