Program to create a Makefile

Janne Blomqvist blomqvist.janne@gmail.com
Wed Jun 2 15:32:00 GMT 2010


On Wed, Jun 2, 2010 at 18:22, Francisco Pena <pacobraxe@yahoo.es> wrote:
> Hi,
>
> I just create a fortran program that constructs a makefile suitable to compile and link a Fortran project. The idea is that it is hard to type in the Makefile all the dependencies between modules when you have a lot of files.
> This program opens every fortran file stored in a set of folders (given by the user), searches the main program and all the dependencies to construct the Makefile.
>
> I would like to ask you if you think whether this program can be useful for someone. If not, how do you create your Makefiles?

Typically handcrafted Makefile, where I include a generated file with
the dependencies. In some cases, I have used autotools instead of
manually writing makefiles. For generating dependencies, I use
makedepf90

http://personal.inet.fi/private/erikedelmann/makedepf90/

but there are many others similar to that. And, apparently, now you
have created yet another one.


-- 
Janne Blomqvist



More information about the Fortran mailing list