[Tfug] Changing default suffix rules for "make"

Curtis Cooper tfug@tfug.org
Thu Jul 11 17:32:01 2002


Hi,

I've recently installed a Fortran 90/95 compiler on my work Linux 
system.  I'm interested in creating a default suffix rule for it, such 
as exists for C programs.  For example, if you have a C program 
called myprog.c, and type "make myprog" while in the directory 
containing myprog.c, make will automatically know to invoke the C 
compiler and proceed to compile and link the program.  What I would 
now like to do is to be able to compile myprog.f90 by using 'make 
myprog' in an analagous way.  

I tried editing the file /usr/share/mk/sys.mk to add the new suffix 
rules for the .f90 extension, but it didn't seem to change make's 
behavior.  I'm running GNU Make on Redhat Linux 7.2.  Any advice 
would be appreciated.

Thanks,
Curtis

  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *     Curtis S. Cooper, Graduate Research Assistant         *
*      Lunar and Planetary Laboratory, University of Arizona  *
 *     Kuiper Space Sciences, Rm. 318                        *
  *    1629 E. University Blvd.,                            *
   *   Tucson, AZ 85721        * * * * * * * * * * * * * * * 
    *  Wk: (520) 621-1471     *
     * * * * * * * * * * * * *