File: fortran.xml

package info (click to toggle)
gprbuild 1.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 7,964 kB
  • ctags: 252
  • sloc: ada: 82,840; sh: 2,812; xml: 1,430; makefile: 410; ansic: 188; cpp: 89; fortran: 62; asm: 27
file content (80 lines) | stat: -rw-r--r-- 2,349 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?xml version="1.0" ?>
<gprconfig>
   <!--  This package provides the default standard options for a g77
         Fortran compiler -->

   <configuration>
     <compilers>
       <compiler name="G77" language="Fortran" />
       <compiler name="GCC-CYGMING" language="Fortran" />
     </compilers>
     <config>
   package Naming is
      for Body_Suffix ("Fortran") use ".f";
   end Naming;

   package Compiler is
      for Driver            ("Fortran") use "${PATH}g77";
      for Leading_Required_Switches ("Fortran") use
         Compiler'Leading_Required_Switches ("Fortran") &amp;
         ("-c", "-fno-underscoring");
      for Include_Path      ("Fortran") use "CPATH";
   end Compiler;
     </config>
   </configuration>

   <!-- in cygminw mode, make sure that the option -mno-cygwin is used -->

   <configuration>
     <compilers>
       <compiler name="GCC-CYGMING" language="Fortran" />
     </compilers>
     <config>
   package Compiler is
      for Leading_Required_Switches ("Fortran") use
      Compiler'Leading_Required_Switches ("Fortran") &amp; ("-mno-cygwin");
   end Compiler;
     </config>
   </configuration>

   <!-- Configuration for GFortran: the GCC fortran 95 compiler -->

   <configuration>
     <compilers>
       <compiler name="GFORTRAN" language="Fortran" />
       <compiler name="GCC-MINGW32" language="Fortran" />
     </compilers>
     <config>
   package Naming is
      for Body_Suffix ("Fortran") use ".f";
   end Naming;

   package Compiler is
      for Driver            ("Fortran") use "${PATH}gfortran-4.4${PREFIX}";
      for Leading_Required_Switches ("Fortran") use
         Compiler'Leading_Required_Switches ("Fortran") &amp;
         ("-c", "-fno-underscoring");
      for Include_Path      ("Fortran") use "CPATH";
   end Compiler;
     </config>
   </configuration>

   <!--  Additional switches needed on some platforms -->

   <configuration>
     <compilers>
       <compiler name="G77" language="Fortran" />
     </compilers>
     <targets negate="true">
       <target name="^.*LynxOS.*$" />
       <target name="^.*pentium-mingw.*$" />
       <target name="^.*cygwin.*$" />
       <target name="^.*dec-osf.*$" />
     </targets>
     <config>
   package Compiler is
      for PIC_Option      ("Fortran") use ("-fPIC");
   end Compiler;
     </config>
   </configuration>
</gprconfig>