Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26730 Discussions

/gen-dep not outputting dependencies of source in subfolders

Plus__Map
Beginner
89 Views

Hi ifort users & developers, 

I am applying the guidelines here to generate a makefile from a windows build. One usual outcome I noticed with the dependency file is it does not list object dependencies for source files in sub folders. So for example, if the I have following source directory tree: 

   .
    └── src
        ├── main.f90
        ├── file_1.f90
        └── trapezoid
            ├── trap_1.f90
            └── trap_2.f90

 

The the *.dep file for the build has this as output:

file_1.mod : \
  C:\user\testmake\src\file_1.f90
  
x64\Release\file_1.obj : \
  C:\user\testmake\src\file_1.f90 \
  
main.mod : \
  C:\user\testmake\src\main.f90
  
x64\Release\main.obj : \
  C:\user\testmake\src\main.f90 \
  x64\Release\file_1.mod \
  x64\Release\trap_1.mod \
  x64\Release\trap_2.mod 

  
What's odd above is the *.dep file does not output object dependencies for sources in the ./trapezoid directory. I've enabled the /gen-dep flag. Aside from this, are there other flags I need to activate to output dependencies for the entire build?

The BuildLog.htm file indicates all four files were compiled in the build. I'm using ifort parallel studio 2015 bundled with the Visual Studio IDE to create the BuildLog.htm and dependency file. 

0 Kudos
1 Reply
Steve_Lionel
Black Belt Retired Employee
89 Views

I know that gen_dep has had several fixes over the years. Try the 2019 release.

Reply