I would suggest that you open a dos box
go to the directory where all the source code is and ( assuming the suffix is .for, type
ftn95 *.for /unlimited_errors >compile.tce
slink *.obj /map >>compile.tce
and see what happens
You may want to consider the use of the following compiler options
/debug
/do1
/error_numbers
/fixed_format
/implicit_none
/persist
/unlimited_errors
All of these are relevent to what you are doing.
'dir /l/b *.for >make.bat' will get you started in generating a list of files. this list has a lot of uses, as a list of files to compile and a list of .obj files to load into slink. I always put the program as the first file name.
In slink, generate a .map and import all the routine names into excel and review what is available. The map gives routine names and the .for file that defines them.
You could also turn the file list into a single .for source file, using include statements, to improve the ftn95 diagnostics.
Being a unix source, the integer4 and real4 defaults should be the same.
Any record length file commands and probably all binary file formats need review, as this changed for the better from f77 to f90+.
To locate all open, read, write, close, rewind and backspace file commands, use the command
find /n/i 'open' *.for
Otherwise compile, link and see what happens.
You do need some data input files and hopefully a past output file to see if it works.
good luck.