make gfortran compile f95 files
By mrcarlis at Fri, Sep 19 2008 1:43pm |
Hi
I have some source and a make file originally developed on solaris and the format is '.f95'.
When I run the make file I get the following error: 'make: f95: Command not found'
Is this because my system does not know that .f95 should be compiled with my gfortran? Can I do something to solve this issue?
Best regards Carlis




Edit the makefile
The 'make: f95: Command not found' error means that there is no program called f95 on your PATH.
It doesn't matter that much because you use gfortran. You need to edit the Makefile, find the place where the fortran compiler is defined :
FC=f95, or F95=f95 and replace the right hand side by gfortran, FC=gfortran or F95=gfortran.
If you find no definition based on f95, it means that f95 is the standard command to compile .f95 files. You will then need to define rules in the Makefile to change this behaviour.