Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
15 Views

/gen-dep not outputting dependencies of source in subfolders

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
Highlighted
Black Belt Retired Employee
15 Views

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

0 Kudos