View previous topic :: View next topic |
Author |
Message |
EKruck
Joined: 09 Jan 2010 Posts: 224 Location: Aalen, Germany
|
Posted: Thu Jan 12, 2017 3:31 pm Post subject: Directory Mix |
|
|
To compile about 400 Fortran files of a project in 40 different subdirectories I have created a batch file say in directroy MAIN.
This batch file runs in directory MAIN and starts all compilations with e.g.:
Quote: | :
CALL COMP64 LibF\cpuTime.f90
: |
COMP64 is a bacht file containing
Quote: | ftn95 %1 /64 /debug /no_banner |
This construct allows to change compile options for all files at once.
All OBJ files will be created - as expected - in the correct subdirectories e.g. LibF. However, all MOD files will be created in directory MAIN.
How can I make sure to have as well the MOD files in their correct positions in the subdirectories? Any idea? |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Thu Jan 12, 2017 6:12 pm Post subject: |
|
|
You might consider using the command line option /MOD_PATH to direct the compiler to look in MAIN for mod files.
You can also set MOD_PATH as an environment variable. |
|
Back to top |
|
|
EKruck
Joined: 09 Jan 2010 Posts: 224 Location: Aalen, Germany
|
Posted: Fri Jan 13, 2017 9:13 am Post subject: |
|
|
The environment variable MOD_PATH is (probably) defined during FTN95 installation as
Quote: | mod_path=C:\Program Files (x86)\Silverfrost\FTN95\include | my file ftn95.cfg contains
Quote: | /mod_path ..\Moduls | to point to my global moduls. ? |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Fri Jan 13, 2017 10:20 am Post subject: |
|
|
I guess the environment MOD_PATH could be a list so you could add to an existing MOD_PATH using semi-colon separators.
If you have created an ftn95.cfg then it can be modified.
You can even have an extra ftn95.cfg in a local folder as well as the FTN95 folder. Both will be called upon.
You can use /MOD_PATH more than once on a command line. |
|
Back to top |
|
|
|