[Tfug] Changing default suffix rules for "make"
Andre Lehovich
tfug@tfug.org
Thu Jul 11 22:04:01 2002
On Thu, 11 Jul 2002, Curtis Cooper wrote:
> What I would
> now like to do is to be able to compile myprog.f90 by using 'make
> myprog' in an analagous way.
What happens if you've got foo.F and you run 'make myprog'?
What happens if you run 'make FC=f90 myprog'?
Instead of modifying system files I'd either create a
compile alias, or write my own Makefile:
FC=f90
%:%.f90
$(FC) $< -o $@
(That's a tab not spaces)
--Andre