- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apologies in advance for the repetitive nature of this question (see "compilation cascade"), but I could not find a definitive answer for my specific use case (linux, using gmake).
It seems that, unlike gfortran, ifort always updates the file timestamp of generated .mod files, even if the contents of the module have not changed. This makes it difficult to write makefiles that are both correct and that do minimal work. I don't see any compiler options that would control this behavior. Is my understanding of this matter correct?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Submodules are the answer to this. Intel Fortran 16 supports them. See Doctor Fortran in "We All Live in a Yellow Submodule"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks very much for the quick responses from Thomas O. and Steve Lionel. I always seem to learn something by posting here. Submodules do look interesting and useful, especially for new code. For existing code, perhaps not so much.
![](/skins/images/7B0AB6865064EAE32B30EC9A4E94B48A/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page