When I compile Fortran 95 programs, my compilers produce a .o and a .mod
file.
If I use a typical make-make tool, e.g. f90mkmf, it generates dependency
rules, e.g. "foo.o: foo.f90 bar.o ..." but no corresponding actions.
The actions are subsumed by an inference, i.e. ".f90.o:". rule.
After compiling a program once, and then changing something and trying
to compile it again using "make", I get a message "m2c not found"
from a command of the form "m2c -c -o foo.o foo.mod".
It appears that "make" has concluded that "foo.mod" is a Modula file,
and the Modula-to-C converter should be run.
I tried putting ".SUFFIXES:" before the ".SUFFIXES: .f90". My "make"
manual says this makes "make" forget about its built in suffix rules.
It has no effect on this problem.
Does anybody know how to convince "make" not to try to compile my
.mod files with the Modula-to-C converter?
Best regards,
Van Snyder
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|