I am very new to makefiles and fortran compilers and would like to compile a program with no external dependencies using Intel's fortran compiler. The makefile is:
# FF = gfortran -O3
FF = ifort -O3
es: es.o
${FF} es.o -o es
esource.o: es.f95
${FF} -c es.f95
clean:
rm -f *.o *.xcoff core
I am doing it this way so I can easily change up compiler setting etc. Now this works perfectly with gfortran however when I invoke ifort, it shows out an error in the console:
ifort -O3 -c es.f95
ifort: warning #10145: no action performed for file 'es.f95'
ifort -O3 es.o -o es
ifort: error #10236: File not found: 'es.o'
ifort: command line error: no files specified; for help type "ifort -help"
Makefile:5: recipe for target 'es' failed
make: *** [es] Error 1
Any help would be greatly appreicated.