[Tfug] Changing default suffix rules for "make"

Terence Rudkin tfug@tfug.org
Thu Jul 11 17:48:02 2002


Not a direct anser to the question.  When I am faced with needing to
make a change to a make file I first want to leanr what it already does.

	make -p -n -f <makefile>   

This will let you know what it knows.  Likly you will find a fortran
rule based on a different extention.   Find it from the output from the
above command.  Then find it in the makefile copy it and paste with the
other extention.

TR

On Thu, 2002-07-11 at 17:31, Curtis Cooper wrote:
> 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     *
>      * * * * * * * * * * * * *        
> 
> _______________________________________________
> tfug mailing list
> tfug@tfug.org
> http://www.tfug.org/mailman/listinfo/tfug
>