Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

makefile error

oncu
Beginner
432 Views
Hi, i try this simple makefile:
F90 = ifort
$(F90) main_10.90 -L /opt/intel/mkl/8.0/lib/32 -lmkl_lapack -lmkl_ia32 -lguide
which gives the following error:
./makefile: line 1: F90: command not found
./makefile: line 2: F90: command not found
./makefile: line 2: main_10.90: command not found
on the other hand the following works:
ifortmain_10.90 -L /opt/intel/mkl/8.0/lib/32 -lmkl_lapack -lmkl_ia32 -lguide
im using gentoo linux, and ifc 9.0. It seems 'F90 = ifort' line doesnt work, how can i fix theproblem? thank u.
0 Kudos
1 Reply
Hirchert__Kurt_W
New Contributor II
432 Views
It appears you are typing

makefile

and thus causing the file "makefile" to be interpreted as a shell script and thus generating errors because the syntax is wrong for a shell script. What you should be typing is

make

or if you want to be explicit about the file you are using

make -f makefile


[You might want to

chmod -x makefile

because make doesn't need "makefile" to be executable, and making it not be executable would keep it from being interepreted as being a shell script.]
0 Kudos
Reply