REM============= REM MAKSALF.BAT => e.g. C:\stopwatch\src\maksalf REM============= REM=============================================================================== REM..Batch File tested on SALFORD FTN90 V2.15 REM..running under MS-Windows NT3.51 REM..13/01/97 REM..Provided by Neil Campbell, University of Nottingham REM=============================================================================== REM=============================================================================== REM..Change the PATH environment variable (if necessary) REM=============================================================================== REM..Alter the PATH environment variable setting to pick up the STOPWATCH REM..directory (and also the SALFORD compiler directory, if this is not already REM..included in the path). This can be done by editing the path at the command REM..prompt, or by selecting SYSTEM from the NT Control Panel. PATH=%PATH%;C:\stopwatch\src REM=============================================================================== REM..Cannot Access CPU Clock so copy nil version of cpusec to new file REM=============================================================================== copy cpusec.nil.f90 cpusec.f90 REM=============================================================================== REM..Create a STOPWATCH.DLL (Dynamic Link Library) REM=============================================================================== REM..Compile the 2 source files to be used in a DLL (Dynamic Link Library) ftn90 stopwatch.f90 /CA /DEBUG ftn90 cpusec.f90 /CA /DEBUG REM..Create the Dynamic Link Library REM..(-file:xxx can be removed if desired during linking in all the following cases) slink -dll -exportall -file:stopwatch stopwatch.obj cpusec.obj REM=============================================================================== REM..Compile and Link the Test Programs REM=============================================================================== ftn90 simple.f90 /CA /DEBUG slink -file:simple simple.obj stopwatch.dll ftn90 advanced.f90 /CA /DEBUG slink -file:advanced advanced.obj stopwatch.dll ftn90 overhead.f90 /CA /DEBUG slink -file:overhead overhead.obj stopwatch.dll ftn90 testsw.f90 /CA /DEBUG slink -file:testsw testsw.obj stopwatch.dll ftn90 errors.f90 /CA /DEBUG slink -file:errors errors.obj stopwatch.dll ftn90 crash.f90 /CA /DEBUG slink -file:crash crash.obj stopwatch.dll REM..Alternatively the DLL may not be created, and the programs can be linked so : REM slink -file:crash crash.obj stopwatch.obj cpusec.obj REM=============================================================================== REM..Using the STOPWATCH.DLL when programming REM=============================================================================== REM..Next alter the PATH environment variable setting to pick up the directory REM..in which the STOPWATCH.DLL will reside, e.g : REM PATH=%PATH%;C:\stopwatch\src REM..In future when compiling and linking a program in another directory, REM..the full path to the DLL still needs to be specified, even though the REM..PATH environment variable has been changed. (Note that if PATH is not REM..changed, the link will not fail, but a run-time error will be generated) REM..e.g. : REM slink -file:anything anything.obj C:\f90\stopwatch\src\stopwatch.dll