| 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.
|
|---|
| 26 | NOTPARALLEL = .NOTPARALLEL
|
|---|
| 27 | $(NOTPARALLEL):
|
|---|
| 28 |
|
|---|
| 29 | srcdir = @srcdir@
|
|---|
| 30 |
|
|---|
| 31 | prefix = @prefix@
|
|---|
| 32 | exec_prefix = @exec_prefix@
|
|---|
| 33 |
|
|---|
| 34 | bindir = @bindir@
|
|---|
| 35 | sbindir = @sbindir@
|
|---|
| 36 | libexecdir = @libexecdir@
|
|---|
| 37 | datadir = @datadir@
|
|---|
| 38 | sysconfdir = @sysconfdir@
|
|---|
| 39 | sharedstatedir = @sharedstatedir@
|
|---|
| 40 | localstatedir = @localstatedir@
|
|---|
| 41 | libdir = @libdir@
|
|---|
| 42 | includedir = @includedir@
|
|---|
| 43 | oldincludedir = @oldincludedir@
|
|---|
| 44 | infodir = @infodir@
|
|---|
| 45 | mandir = @mandir@
|
|---|
| 46 | gxx_include_dir=@gxx_include_dir@
|
|---|
| 47 |
|
|---|
| 48 | tooldir = @tooldir@
|
|---|
| 49 | build_tooldir = @build_tooldir@
|
|---|
| 50 |
|
|---|
| 51 | program_transform_name = @program_transform_name@
|
|---|
| 52 |
|
|---|
| 53 | man1dir = $(mandir)/man1
|
|---|
| 54 | man2dir = $(mandir)/man2
|
|---|
| 55 | man3dir = $(mandir)/man3
|
|---|
| 56 | man4dir = $(mandir)/man4
|
|---|
| 57 | man5dir = $(mandir)/man5
|
|---|
| 58 | man6dir = $(mandir)/man6
|
|---|
| 59 | man7dir = $(mandir)/man7
|
|---|
| 60 | man8dir = $(mandir)/man8
|
|---|
| 61 | man9dir = $(mandir)/man9
|
|---|
| 62 | # Directory in which the compiler finds executables, libraries, etc.
|
|---|
| 63 | libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
|
|---|
| 64 | GDB_NLM_DEPS =
|
|---|
| 65 |
|
|---|
| 66 | SHELL = @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.
|
|---|
| 74 | PWD_COMMAND = $${PWDCMD-pwd}
|
|---|
| 75 |
|
|---|
| 76 | # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
|
|---|
| 77 | # cygwin host.
|
|---|
| 78 | INSTALL_PROGRAM_ARGS =
|
|---|
| 79 |
|
|---|
| 80 | INSTALL = $(SHELL) $$s/install-sh -c
|
|---|
| 81 | INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
|
|---|
| 82 | INSTALL_SCRIPT = $(INSTALL)
|
|---|
| 83 | INSTALL_DATA = $(INSTALL) -m 644
|
|---|
| 84 |
|
|---|
| 85 | INSTALL_DOSREL = install-dosrel-fake
|
|---|
| 86 |
|
|---|
| 87 | AS = as
|
|---|
| 88 | AR = ar
|
|---|
| 89 | AR_FLAGS = rc
|
|---|
| 90 | CC = 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.
|
|---|
| 94 | HOST_CC = $(CC_FOR_BUILD)
|
|---|
| 95 | BUILD_PREFIX =
|
|---|
| 96 | BUILD_PREFIX_1 = loser-
|
|---|
| 97 |
|
|---|
| 98 | # These flag values are normally overridden by the configure script.
|
|---|
| 99 | CFLAGS = -g
|
|---|
| 100 | CXXFLAGS = -g -O2
|
|---|
| 101 |
|
|---|
| 102 | LDFLAGS =
|
|---|
| 103 | LIBCFLAGS = $(CFLAGS)
|
|---|
| 104 | CFLAGS_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.
|
|---|
| 109 | CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
|
|---|
| 110 | LDFLAGS_FOR_TARGET =
|
|---|
| 111 | LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
|
|---|
| 112 | PICFLAG =
|
|---|
| 113 | PICFLAG_FOR_TARGET =
|
|---|
| 114 |
|
|---|
| 115 | CXX = c++
|
|---|
| 116 |
|
|---|
| 117 | # Use -O2 to stress test the compiler.
|
|---|
| 118 | LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
|
|---|
| 119 | CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
|
|---|
| 120 | LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
|
|---|
| 121 |
|
|---|
| 122 | DLLTOOL = dlltool
|
|---|
| 123 | WINDRES = windres
|
|---|
| 124 |
|
|---|
| 125 | NM = nm
|
|---|
| 126 |
|
|---|
| 127 | LD = ld
|
|---|
| 128 |
|
|---|
| 129 | # These values are substituted by configure.
|
|---|
| 130 | DEFAULT_YACC = @DEFAULT_YACC@
|
|---|
| 131 | DEFAULT_LEX = @DEFAULT_LEX@
|
|---|
| 132 | DEFAULT_M4 = @DEFAULT_M4@
|
|---|
| 133 |
|
|---|
| 134 | BISON = `if [ -f $$r/bison/bison ] ; then \
|
|---|
| 135 | echo $$r/bison/bison -L $$s/bison/ ; \
|
|---|
| 136 | else \
|
|---|
| 137 | echo bison ; \
|
|---|
| 138 | fi`
|
|---|
| 139 |
|
|---|
| 140 | YACC = `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 |
|
|---|
| 148 | LEX = `if [ -f $$r/flex/flex ] ; \
|
|---|
| 149 | then echo $$r/flex/flex ; \
|
|---|
| 150 | else echo ${DEFAULT_LEX} ; fi`
|
|---|
| 151 |
|
|---|
| 152 | M4 = `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.
|
|---|
| 158 | MAKEINFO = `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.)
|
|---|
| 168 | MAKEINFOFLAGS = --no-split
|
|---|
| 169 |
|
|---|
| 170 | EXPECT = `if [ -f $$r/expect/expect ] ; \
|
|---|
| 171 | then echo $$r/expect/expect ; \
|
|---|
| 172 | else echo expect ; fi`
|
|---|
| 173 |
|
|---|
| 174 | RUNTEST = `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.
|
|---|
| 181 | CC_FOR_BUILD = $(CC)
|
|---|
| 182 | CXX_FOR_BUILD = $(CXX)
|
|---|
| 183 |
|
|---|
| 184 | SUBDIRS = @configdirs@
|
|---|
| 185 |
|
|---|
| 186 | # This is set by the configure script to the list of directories which
|
|---|
| 187 | # should be built using the target tools.
|
|---|
| 188 | TARGET_CONFIGDIRS = @target_configdirs@
|
|---|
| 189 |
|
|---|
| 190 | # Target libraries are put under this directory:
|
|---|
| 191 | # Changed by configure to $(target_alias) if cross.
|
|---|
| 192 | TARGET_SUBDIR = @target_subdir@
|
|---|
| 193 |
|
|---|
| 194 | BUILD_CONFIGDIRS = libiberty
|
|---|
| 195 | BUILD_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.
|
|---|
| 199 | TARGET_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.
|
|---|
| 203 | BUILD_CONFIGARGS = @build_configargs@
|
|---|
| 204 |
|
|---|
| 205 | # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
|
|---|
| 206 | # was used.
|
|---|
| 207 | SET_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.
|
|---|
| 211 | RPATH_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.
|
|---|
| 215 | HOST_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.
|
|---|
| 219 | TARGET_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.
|
|---|
| 224 | REALLY_SET_LIB_PATH = \
|
|---|
| 225 | $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
|
|---|
| 226 |
|
|---|
| 227 | ALL = all.normal
|
|---|
| 228 | INSTALL_TARGET = installdirs \
|
|---|
| 229 | install-gcc \
|
|---|
| 230 | $(INSTALL_MODULES) \
|
|---|
| 231 | $(INSTALL_TARGET_MODULES) \
|
|---|
| 232 | $(INSTALL_X11_MODULES) \
|
|---|
| 233 | $(INSTALL_DOSREL)
|
|---|
| 234 |
|
|---|
| 235 | INSTALL_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
|
|---|
| 243 | FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
|
|---|
| 244 | CC_FOR_TARGET = @CC_FOR_TARGET@
|
|---|
| 245 | CXX_FOR_TARGET = @CXX_FOR_TARGET@
|
|---|
| 246 | CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
|
|---|
| 247 | GCJ_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.
|
|---|
| 253 | GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
|
|---|
| 254 |
|
|---|
| 255 | AS_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 |
|
|---|
| 268 | LD_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 \
|
|---|
|
|---|