source: trunk/gcc/Makefile.in@ 2810

Last change on this file since 2810 was 1394, checked in by bird, 22 years ago

#1040: Joined the GCC 3.3.3 with the trunk.

  • Property cvs2svn:cvs-rev set to 1.3
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 52.6 KB
Line 
1
2# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
3#
4# Makefile for directory with subdirs to build.
5# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
6# 1999, 2000, 2001, 2002 Free Software Foundation
7#
8# This file is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 2 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21#
22
23# Tell GNU make 3.79 not to run the top level in parallel. This
24# prevents contention for $builddir/$target/config.cache, as well
25# as minimizing scatter in file system caches.
26NOTPARALLEL = .NOTPARALLEL
27$(NOTPARALLEL):
28
29srcdir = @srcdir@
30
31prefix = @prefix@
32exec_prefix = @exec_prefix@
33
34bindir = @bindir@
35sbindir = @sbindir@
36libexecdir = @libexecdir@
37datadir = @datadir@
38sysconfdir = @sysconfdir@
39sharedstatedir = @sharedstatedir@
40localstatedir = @localstatedir@
41libdir = @libdir@
42includedir = @includedir@
43oldincludedir = @oldincludedir@
44infodir = @infodir@
45mandir = @mandir@
46gxx_include_dir=@gxx_include_dir@
47
48tooldir = @tooldir@
49build_tooldir = @build_tooldir@
50
51program_transform_name = @program_transform_name@
52
53man1dir = $(mandir)/man1
54man2dir = $(mandir)/man2
55man3dir = $(mandir)/man3
56man4dir = $(mandir)/man4
57man5dir = $(mandir)/man5
58man6dir = $(mandir)/man6
59man7dir = $(mandir)/man7
60man8dir = $(mandir)/man8
61man9dir = $(mandir)/man9
62# Directory in which the compiler finds executables, libraries, etc.
63libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
64GDB_NLM_DEPS =
65
66SHELL = @config_shell@
67
68# pwd command to use. Allow user to override default by setting PWDCMD in
69# the environment to account for automounters. The make variable must not
70# be called PWDCMD, otherwise the value set here is passed to make
71# subprocesses and overrides the setting from the user's environment.
72# Don't use PWD since it is a common shell environment variable and we
73# don't want to corrupt it.
74PWD_COMMAND = $${PWDCMD-pwd}
75
76# INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
77# cygwin host.
78INSTALL_PROGRAM_ARGS =
79
80INSTALL = $(SHELL) $$s/install-sh -c
81INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
82INSTALL_SCRIPT = $(INSTALL)
83INSTALL_DATA = $(INSTALL) -m 644
84
85INSTALL_DOSREL = install-dosrel-fake
86
87AS = as
88AR = ar
89AR_FLAGS = rc
90CC = cc
91
92# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
93# here so that they can be overridden by Makefile fragments.
94HOST_CC = $(CC_FOR_BUILD)
95BUILD_PREFIX =
96BUILD_PREFIX_1 = loser-
97
98# These flag values are normally overridden by the configure script.
99CFLAGS = -g
100CXXFLAGS = -g -O2
101
102LDFLAGS =
103LIBCFLAGS = $(CFLAGS)
104CFLAGS_FOR_BUILD = $(CFLAGS)
105# During gcc bootstrap, if we use some random cc for stage1 then
106# CFLAGS will be just -g. We want to ensure that TARGET libraries
107# (which we know are built with gcc) are built with optimizations so
108# prepend -O2 when setting CFLAGS_FOR_TARGET.
109CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
110LDFLAGS_FOR_TARGET =
111LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
112PICFLAG =
113PICFLAG_FOR_TARGET =
114
115CXX = c++
116
117# Use -O2 to stress test the compiler.
118LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
119CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
120LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
121
122DLLTOOL = dlltool
123WINDRES = windres
124
125NM = nm
126
127LD = ld
128
129# These values are substituted by configure.
130DEFAULT_YACC = @DEFAULT_YACC@
131DEFAULT_LEX = @DEFAULT_LEX@
132DEFAULT_M4 = @DEFAULT_M4@
133
134BISON = `if [ -f $$r/bison/bison ] ; then \
135 echo $$r/bison/bison -L $$s/bison/ ; \
136 else \
137 echo bison ; \
138 fi`
139
140YACC = `if [ -f $$r/bison/bison ] ; then \
141 echo $$r/bison/bison -y -L $$s/bison/ ; \
142 elif [ -f $$r/byacc/byacc ] ; then \
143 echo $$r/byacc/byacc ; \
144 else \
145 echo ${DEFAULT_YACC} ; \
146 fi`
147
148LEX = `if [ -f $$r/flex/flex ] ; \
149 then echo $$r/flex/flex ; \
150 else echo ${DEFAULT_LEX} ; fi`
151
152M4 = `if [ -f $$r/m4/m4 ] ; \
153 then echo $$r/m4/m4 ; \
154 else echo ${DEFAULT_M4} ; fi`
155
156# For an installed makeinfo, we require it to be from texinfo 4.2 or
157# higher, else we use the "missing" dummy.
158MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
159 then echo $$r/texinfo/makeinfo/makeinfo ; \
160 else if (makeinfo --version \
161 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
162 then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
163
164# This just becomes part of the MAKEINFO definition passed down to
165# sub-makes. It lets flags be given on the command line while still
166# using the makeinfo from the object tree.
167# (Default to avoid splitting info files.)
168MAKEINFOFLAGS = --no-split
169
170EXPECT = `if [ -f $$r/expect/expect ] ; \
171 then echo $$r/expect/expect ; \
172 else echo expect ; fi`
173
174RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
175 then echo $$s/dejagnu/runtest ; \
176 else echo runtest ; fi`
177
178
179# compilers to use to create programs which must be run in the build
180# environment.
181CC_FOR_BUILD = $(CC)
182CXX_FOR_BUILD = $(CXX)
183
184SUBDIRS = @configdirs@
185
186# This is set by the configure script to the list of directories which
187# should be built using the target tools.
188TARGET_CONFIGDIRS = @target_configdirs@
189
190# Target libraries are put under this directory:
191# Changed by configure to $(target_alias) if cross.
192TARGET_SUBDIR = @target_subdir@
193
194BUILD_CONFIGDIRS = libiberty
195BUILD_SUBDIR = @build_subdir@
196
197# This is set by the configure script to the arguments to use when configuring
198# directories built for the target.
199TARGET_CONFIGARGS = @target_configargs@
200
201# This is set by the configure script to the arguments to use when configuring
202# directories built for the build system.
203BUILD_CONFIGARGS = @build_configargs@
204
205# This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
206# was used.
207SET_LIB_PATH = @SET_LIB_PATH@
208
209# This is the name of the environment variable used for the path to
210# the libraries. This may be changed by configure.in.
211RPATH_ENVVAR = @RPATH_ENVVAR@
212
213# This is the list of directories that may be needed in RPATH_ENVVAR
214# so that programs built for the host machine work.
215HOST_LIB_PATH = $$r/bfd:$$r/opcodes
216
217# This is the list of directories that may be needed in RPATH_ENVVAR
218# so that prorgams built for the target machine work.
219TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
220
221# configure.in sets SET_LIB_PATH to this if --enable-shared was used.
222# Some platforms don't like blank entries, so we remove duplicate,
223# leading and trailing colons.
224REALLY_SET_LIB_PATH = \
225 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
226
227ALL = all.normal
228INSTALL_TARGET = installdirs \
229 install-gcc \
230 $(INSTALL_MODULES) \
231 $(INSTALL_TARGET_MODULES) \
232 $(INSTALL_X11_MODULES) \
233 $(INSTALL_DOSREL)
234
235INSTALL_TARGET_CROSS = installdirs \
236 install-gcc-cross \
237 $(INSTALL_MODULES) \
238 $(INSTALL_TARGET_MODULES) \
239 $(INSTALL_X11_MODULES) \
240 $(INSTALL_DOSREL)
241
242# Should be substed by configure.in
243FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
244CC_FOR_TARGET = @CC_FOR_TARGET@
245CXX_FOR_TARGET = @CXX_FOR_TARGET@
246CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
247GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
248
249# If GCC_FOR_TARGET is not overriden on the command line, then this
250# variable is passed down to the gcc Makefile, where it is used to
251# build libgcc2.a. We define it here so that it can itself be
252# overridden on the command line.
253GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
254
255AS_FOR_TARGET = ` \
256 if [ -f $$r/gas/as-new ] ; then \
257 echo $$r/gas/as-new ; \
258 elif [ -f $$r/gcc/xgcc ]; then \
259 $(CC_FOR_TARGET) -print-prog-name=as ; \
260 else \
261 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
262 echo $(AS); \
263 else \
264 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
265 fi; \
266 fi`
267
268LD_FOR_TARGET = ` \
269 if [ -f $$r/ld/ld-new ] ; then \
270 echo $$r/ld/ld-new ; \
271 elif [ -f $$r/gcc/xgcc ]; then \
272 $(CC_FOR_TARGET) -print-prog-name=ld ; \
273 else \