<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Glynn Clements ha scritto:
<blockquote
 cite="mid18460.58812.943275.362415@cerise.gclements.plus.com"
 type="cite">
  <pre wrap="">roberto.marzocchi wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">I've write a grass script 
(<a class="moz-txt-link-freetext" href="https://svn.osgeo.org/grass/grass-addons/raster/r.inund.fluv/">https://svn.osgeo.org/grass/grass-addons/raster/r.inund.fluv/</a>) In my 
grass script I use four implemented fortran codes.
Now this script is in Add_ons repository, but there isn't a Makefile. 
I've written an install.sh  script.

With Markus, we think that is good to make some changes to the MAKE 
system and to allow the compilation of Fortan codes.

probably  is like the compilation of C codes
 We wrote some lines in install.sh script (see below),  but we're sure 
that this can be written more elegant in make syntax.

/            #compile the fortran codes with GNUFORTRAN
            #gfortran -O1 -o trova_alveo.exe trova_alveo.f90
            #gfortran -O1 -o pulizia_inondazione.exe pulizia_inondazione.f90
            #gfortran -O1 -o reticolo2d.exe reticolo2d.f90
            #gfortran -O1 -o correzione_reticolo.exe correzione_reticolo.f90
          
            # put the .exe files in the chosen directory and change the 
219-222 rows of the script/
 

Anyone may help me?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
The compilation rules should be relatively straightforward; see the
rules for C and C++ files in include/Make/Rules.make.
  </pre>
</blockquote>
Yes&nbsp; try to understand....<br>
<blockquote
 cite="mid18460.58812.943275.362415@cerise.gclements.plus.com"
 type="cite">
  <pre wrap="">
The main thing which needs to be done is to add configure tests for a
Fortran-90 compiler. AFAICT, AC_PROG_FC is the appropriate macro.
  </pre>
</blockquote>
I write to Markus: "Probably the file <i>configure</i> of GRASS source
code
must
test the installation of GNUFortran compiler on the computer too". <br>
Markus wrote to me: &nbsp;&nbsp; "this is currently disabled because nobody
needed it If requested, it may come back " <br>
Probably he yet changed the configure file.<br>
I'm not very expert....<br>
<br>
Thanks<br>
<br>
Roberto <br>
<br>
<br>
<br>
</body>
</html>