Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Module Dependencies

sick
Beginner
1,003 Views

Is there a tool of the IVF package to create makefiles based on the module dependencies ?

Something like makemake or mkmf ?

How does it work in Windows ? Is it part of the IVF VisualStudio implementation ?

Thanks in advance,

Stefan

0 Kudos
3 Replies
Kevin_D_Intel
Employee
1,003 Views

No, there is no such tool and haven't heard of anything that might help. Visual Studio has a built-in Dependency Checker that ensures compilation order from what I understand.
0 Kudos
Steven_L_Intel1
Employee
1,003 Views

On Windows in Visual Studio, the Intel Fortran integration adds logic so that Visual Studio can do the dependence checking for project builds. It is not a separate tool. We don't have a makefile generator but if you do a web search for "fortran makefile generator" you will see several options.

In a future release the compiler will support creation of a makefile dependency fiile similar to gcc's -M (I think I have that right.)
0 Kudos
jimdempseyatthecove
Honored Contributor III
1,003 Views

Stefan,

I haven't tried this hack, if you are up to performing an experiment... (I'm not a Mac or Linux user)

iif the current dependency checker makes dependencies on INCLUDE 'foo.inc' files
then you can try replacing

USE FOO

with

INCLUDE 'USE_FOO.INC'

And USE_FOO.INC contains


USE FOO

This also requires a make file for your modules which when FOO.F90 is compiled it performs TOUCH USE_FOO.INC
you may have to be careful not to create a circular dependency with this seciton.

Now you perform a make on the modules, then make on your projects.

Jim Dempsey
0 Kudos
Reply