1 /* Definitions for specs for Objective-C.
2 Copyright (C) 1998, 1999 Free Software Foundation, Inc.
4 This file is part of GNU CC.
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 /* This is the contribution to the `default_compilers' array in gcc.c for
24 {".m", "@objective-c"},
27 "%{E|M|MM:cpp0 -lang-objc %{ansi:-std=c89} %(cpp_options)}\
28 %{!E:%{!M:%{!MM:cc1obj -lang-objc %(cpp_options) %(cc1_options)\
29 %{gen-decls} %{!S:-o %{|!pipe:%g.s} |\n\
30 as %(asm_options) %{!pipe:%g.s} %A }}}}"
31 #else /* ! USE_CPPLIB */
32 "%(trad_capable_cpp) -lang-objc %{ansi:-std=c89} %(cpp_options)\
33 %{!M:%{!MM:%{!E:%{!pipe:%g.mi} |\n\
34 cc1obj -lang-objc %{!pipe:%g.mi} %(cc1_options) %{gen-decls}\
35 %{!S:-o %{|!pipe:%g.s} |\n\
36 as %(asm_options) %{!pipe:%g.s} %A }}}}\n"
37 #endif /* ! USE_CPPLIB */
39 {".mi", "@objc-cpp-output"},
41 "%{!M:%{!MM:%{!E:cc1obj -lang-objc %i %(cc1_options) %{gen-decls}\
42 %{!S:-o %{|!pipe:%g.s} |\n\
43 as %(asm_options) %{!pipe:%g.s} %A }}}}"},