1 /* lang-specs.h file for Fortran
2 Copyright (C) 1995, 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
3 Contributed by James Craig Burley.
5 This file is part of GNU Fortran.
7 GNU Fortran is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
12 GNU Fortran is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU Fortran; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
24 /* This is the contribution to the `default_compilers' array in gcc.c for
27 {".F", "@f77-cpp-input"},
28 {".fpp", "@f77-cpp-input"},
29 {".FPP", "@f77-cpp-input"},
31 "tradcpp0 -lang-fortran %(cpp_options) %{!M:%{!MM:%{!E:%{!pipe:%g.f |\n\
32 f771 %{!pipe:%g.f} %(cc1_options) %{I*} %{!fsyntax-only:%(invoke_as)}}}}}"},
35 "%{C:%{!E:%eGNU C does not support -C without using -E}}\
36 ratfor %{C} %{v} %i %{E:%W{o*}} %{!E: %{!pipe:-o %g.f} |\n\
37 f771 %{!pipe:%g.f} %(cc1_options) %{I*} %{!fsyntax-only:%(invoke_as)}}"},
42 "%{!M:%{!MM:%{!E:f771 %i %(cc1_options) %{I*}\
43 %{!fsyntax-only:%(invoke_as)}}}}"},
44 /* XXX This is perverse and should not be necessary. */
46 "tradcpp0 -lang-fortran %(cpp_options) %j \n\
47 f771 -fnull-version %1 \
48 %{!Q:-quiet} -dumpbase g77-version.f %{d*} %{m*} %{a*} \
49 %{g*} %{O*} %{W*} %{w} %{pedantic*} \
50 -version -fversion %{f*} %{I*} -o %g.s %j \n\
51 as %a %Y -o %g%O %g.s %A \n\
52 ld %l %X -o %g %g%O %{A} %{d} %{e*} %{m} %{N} %{n} \
53 %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} \
54 %{!A:%{!nostdlib:%{!nostartfiles:%S}}} \
55 %{static:} %{L*} %D -lg2c -lm \
56 %{!nostdlib:%{!nodefaultlibs:%G %L %G}} \
57 %{!A:%{!nostdlib:%{!nostartfiles:%E}}} \