| 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 \
|
|---|
| 274 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
|
|---|
| 275 | echo $(LD); \
|
|---|
| 276 | else \
|
|---|
| 277 | t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
|
|---|
| 278 | fi; \
|
|---|
| 279 | fi`
|
|---|
| 280 |
|
|---|
| 281 | DLLTOOL_FOR_TARGET = ` \
|
|---|
| 282 | if [ -f $$r/binutils/dlltool ] ; then \
|
|---|
| 283 | echo $$r/binutils/dlltool ; \
|
|---|
| 284 | else \
|
|---|
| 285 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
|
|---|
| 286 | echo $(DLLTOOL); \
|
|---|
| 287 | else \
|
|---|
| 288 | t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
|
|---|
| 289 | fi; \
|
|---|
| 290 | fi`
|
|---|
| 291 |
|
|---|
| 292 | WINDRES_FOR_TARGET = ` \
|
|---|
| 293 | if [ -f $$r/binutils/windres ] ; then \
|
|---|
| 294 | echo $$r/binutils/windres ; \
|
|---|
| 295 | else \
|
|---|
| 296 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
|
|---|
| 297 | echo $(WINDRES); \
|
|---|
| 298 | else \
|
|---|
| 299 | t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
|
|---|
| 300 | fi; \
|
|---|
| 301 | fi`
|
|---|
| 302 |
|
|---|
| 303 | AR_FOR_TARGET = ` \
|
|---|
| 304 | if [ -f $$r/binutils/ar ] ; then \
|
|---|
| 305 | echo $$r/binutils/ar ; \
|
|---|
| 306 | else \
|
|---|
| 307 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
|
|---|
| 308 | echo $(AR); \
|
|---|
| 309 | else \
|
|---|
| 310 | t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
|
|---|
| 311 | fi; \
|
|---|
| 312 | fi`
|
|---|
| 313 |
|
|---|
| 314 | RANLIB_FOR_TARGET = ` \
|
|---|
| 315 | if [ -f $$r/binutils/ranlib ] ; then \
|
|---|
| 316 | echo $$r/binutils/ranlib ; \
|
|---|
| 317 | else \
|
|---|
| 318 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
|
|---|
| 319 | if [ x'$(RANLIB)' != x ]; then \
|
|---|
| 320 | echo $(RANLIB); \
|
|---|
| 321 | else \
|
|---|
| 322 | echo ranlib; \
|
|---|
| 323 | fi; \
|
|---|
| 324 | else \
|
|---|
| 325 | t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
|
|---|
| 326 | fi; \
|
|---|
| 327 | fi`
|
|---|
| 328 |
|
|---|
| 329 | NM_FOR_TARGET = ` \
|
|---|
| 330 | if [ -f $$r/binutils/nm-new ] ; then \
|
|---|
| 331 | echo $$r/binutils/nm-new ; \
|
|---|
| 332 | elif [ -f $$r/gcc/xgcc ]; then \
|
|---|
| 333 | $(CC_FOR_TARGET) -print-prog-name=nm ; \
|
|---|
| 334 | else \
|
|---|
| 335 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
|
|---|
| 336 | echo $(NM); \
|
|---|
| 337 | else \
|
|---|
| 338 | t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
|
|---|
| 339 | fi; \
|
|---|
| 340 | fi`
|
|---|
| 341 |
|
|---|
| 342 | # The first rule in the file had better be this one. Don't put any above it.
|
|---|
| 343 | # This lives here to allow makefile fragments to contain dependencies.
|
|---|
| 344 | all: all.normal
|
|---|
| 345 | .PHONY: all
|
|---|
| 346 |
|
|---|
| 347 | # These can be overridden by config/mt-*.
|
|---|
| 348 | # The _TARGET_ is because they're specified in mt-foo.
|
|---|
| 349 | # The _HOST_ is because they're programs that run on the host.
|
|---|
| 350 | EXTRA_TARGET_HOST_ALL_MODULES =
|
|---|
| 351 | EXTRA_TARGET_HOST_INSTALL_MODULES =
|
|---|
| 352 | EXTRA_TARGET_HOST_CHECK_MODULES =
|
|---|
| 353 |
|
|---|
| 354 | #### host and target specific makefile fragments come in here.
|
|---|
| 355 | ###
|
|---|
| 356 |
|
|---|
| 357 | # Flags to pass down to all sub-makes.
|
|---|
| 358 | # Please keep these in alphabetical order.
|
|---|
| 359 | BASE_FLAGS_TO_PASS = \
|
|---|
| 360 | "AR_FLAGS=$(AR_FLAGS)" \
|
|---|
| 361 | "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
|
|---|
| 362 | "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
|
|---|
| 363 | "BISON=$(BISON)" \
|
|---|
| 364 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
|
|---|
| 365 | "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
|
|---|
| 366 | "CFLAGS=$(CFLAGS)" \
|
|---|
| 367 | "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
|
|---|
| 368 | "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
|
|---|
| 369 | "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
|
|---|
| 370 | "CXXFLAGS=$(CXXFLAGS)" \
|
|---|
| 371 | "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
|
|---|
| 372 | "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
|
|---|
| 373 | "DESTDIR=$(DESTDIR)" \
|
|---|
| 374 | "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
|
|---|
| 375 | "INSTALL=$(INSTALL)" \
|
|---|
| 376 | "INSTALL_DATA=$(INSTALL_DATA)" \
|
|---|
| 377 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
|
|---|
| 378 | "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
|
|---|
| 379 | "LDFLAGS=$(LDFLAGS)" \
|
|---|
| 380 | "LEX=$(LEX)" \
|
|---|
| 381 | "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
|
|---|
| 382 | "LIBCFLAGS=$(LIBCFLAGS)" \
|
|---|
| 383 | "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
|
|---|
| 384 | "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
|
|---|
| 385 | "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
|
|---|
| 386 | "M4=$(M4)" \
|
|---|
| 387 | "MAKE=$(MAKE)" \
|
|---|
| 388 | "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
|
|---|
| 389 | "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
|
|---|
| 390 | "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
|
|---|
| 391 | "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
|
|---|
| 392 | "SHELL=$(SHELL)" \
|
|---|
| 393 | "EXPECT=$(EXPECT)" \
|
|---|
| 394 | "RUNTEST=$(RUNTEST)" \
|
|---|
| 395 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
|
|---|
| 396 | "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
|
|---|
| 397 | "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
|
|---|
| 398 | "YACC=$(YACC)" \
|
|---|
| 399 | "bindir=$(bindir)" \
|
|---|
| 400 | "datadir=$(datadir)" \
|
|---|
| 401 | "exec_prefix=$(exec_prefix)" \
|
|---|
| 402 | "includedir=$(includedir)" \
|
|---|
| 403 | "infodir=$(infodir)" \
|
|---|
| 404 | "libdir=$(libdir)" \
|
|---|
| 405 | "libexecdir=$(libexecdir)" \
|
|---|
| 406 | "lispdir=$(lispdir)" \
|
|---|
| 407 | "libstdcxx_incdir=$(libstdcxx_incdir)" \
|
|---|
| 408 | "libsubdir=$(libsubdir)" \
|
|---|
| 409 | "localstatedir=$(localstatedir)" \
|
|---|
| 410 | "mandir=$(mandir)" \
|
|---|
| 411 | "oldincludedir=$(oldincludedir)" \
|
|---|
| 412 | "prefix=$(prefix)" \
|
|---|
| 413 | "sbindir=$(sbindir)" \
|
|---|
| 414 | "sharedstatedir=$(sharedstatedir)" \
|
|---|
| 415 | "sysconfdir=$(sysconfdir)" \
|
|---|
| 416 | "tooldir=$(tooldir)" \
|
|---|
| 417 | "build_tooldir=$(build_tooldir)" \
|
|---|
| 418 | "gxx_include_dir=$(gxx_include_dir)" \
|
|---|
| 419 | "gcc_version=$(gcc_version)" \
|
|---|
| 420 | "gcc_version_trigger=$(gcc_version_trigger)" \
|
|---|
| 421 | "target_alias=$(target_alias)"
|
|---|
| 422 |
|
|---|
| 423 | # For any flags above that may contain shell code that varies from one
|
|---|
| 424 | # target library to another. When doing recursive invocations of the
|
|---|
| 425 | # top-level Makefile, we don't want the outer make to evaluate them,
|
|---|
| 426 | # so we pass these variables down unchanged. They must not contain
|
|---|
| 427 | # single nor double quotes.
|
|---|
| 428 | RECURSE_FLAGS = \
|
|---|
| 429 | CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)'
|
|---|
| 430 |
|
|---|
| 431 | # Flags to pass down to most sub-makes, in which we're building with
|
|---|
| 432 | # the host environment.
|
|---|
| 433 | # If any variables are added here, they must be added to do-*, below.
|
|---|
| 434 | EXTRA_HOST_FLAGS = \
|
|---|
| 435 | 'AR=$(AR)' \
|
|---|
| 436 | 'AS=$(AS)' \
|
|---|
| 437 | 'CC=$(CC)' \
|
|---|
| 438 | 'CXX=$(CXX)' \
|
|---|
| 439 | 'DLLTOOL=$(DLLTOOL)' \
|
|---|
| 440 | 'LD=$(LD)' \
|
|---|
| 441 | 'NM=$(NM)' \
|
|---|
| 442 | "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
|
|---|
| 443 | 'WINDRES=$(WINDRES)'
|
|---|
| 444 |
|
|---|
| 445 | FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
|
|---|
| 446 |
|
|---|
| 447 | # Flags that are concerned with the location of the X11 include files
|
|---|
| 448 | # and library files
|
|---|
| 449 | #
|
|---|
| 450 | # NOTE: until the top-level is getting the values via autoconf, it only
|
|---|
| 451 | # causes problems to have this top-level Makefile overriding the autoconf-set
|
|---|
| 452 | # values in child directories. Only variables that don't conflict with
|
|---|
| 453 | # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
|
|---|
| 454 | #
|
|---|
| 455 | X11_FLAGS_TO_PASS = \
|
|---|
| 456 | 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
|
|---|
| 457 | 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
|
|---|
| 458 |
|
|---|
| 459 | # Flags to pass down to makes which are built with the target environment.
|
|---|
| 460 | # The double $ decreases the length of the command line; the variables
|
|---|
| 461 | # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
|
|---|
| 462 | # If any variables are added here, they must be added to do-*, below.
|
|---|
| 463 | EXTRA_TARGET_FLAGS = \
|
|---|
| 464 | 'AR=$$(AR_FOR_TARGET)' \
|
|---|
| 465 | 'AS=$$(AS_FOR_TARGET)' \
|
|---|
| 466 | 'CC=$$(CC_FOR_TARGET)' \
|
|---|
| 467 | 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
|
|---|
| 468 | 'CXX=$$(CXX_FOR_TARGET)' \
|
|---|
| 469 | 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
|
|---|
| 470 | 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
|
|---|
| 471 | 'LD=$$(LD_FOR_TARGET)' \
|
|---|
| 472 | 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
|
|---|
| 473 | 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
|
|---|
| 474 | 'NM=$$(NM_FOR_TARGET)' \
|
|---|
| 475 | 'RANLIB=$$(RANLIB_FOR_TARGET)' \
|
|---|
| 476 | 'WINDRES=$$(WINDRES_FOR_TARGET)'
|
|---|
| 477 |
|
|---|
| 478 | TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
|
|---|
| 479 |
|
|---|
| 480 | # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
|
|---|
| 481 | # unfortunately needs the native compiler and the target ar and
|
|---|
| 482 | # ranlib.
|
|---|
| 483 | # If any variables are added here, they must be added to do-*, below.
|
|---|
| 484 | # The HOST_* variables are a special case, which are used for the gcc
|
|---|
| 485 | # cross-building scheme.
|
|---|
| 486 | EXTRA_GCC_FLAGS = \
|
|---|
| 487 | 'AR=$(AR)' \
|
|---|
| 488 | 'AS=$(AS)' \
|
|---|
| 489 | 'CC=$(CC)' \
|
|---|
| 490 | 'CXX=$(CXX)' \
|
|---|
| 491 | 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
|
|---|
| 492 | 'HOST_CC=$(CC_FOR_BUILD)' \
|
|---|
| 493 | 'BUILD_PREFIX=$(BUILD_PREFIX)' \
|
|---|
| 494 | 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
|
|---|
| 495 | 'NM=$(NM)' \
|
|---|
| 496 | "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
|
|---|
| 497 | 'WINDRES=$$(WINDRES_FOR_TARGET)' \
|
|---|
| 498 | "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
|
|---|
| 499 | "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
|
|---|
| 500 | "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
|
|---|
| 501 | "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
|
|---|
| 502 | "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
|
|---|
| 503 | "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
|
|---|
| 504 | "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
|
|---|
| 505 | "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
|
|---|
| 506 | "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
|
|---|
| 507 | "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
|
|---|
| 508 | "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
|
|---|
| 509 |
|
|---|
| 510 | GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
|
|---|
| 511 |
|
|---|
| 512 | # This is a list of the targets for all of the modules which are compiled
|
|---|
| 513 | # using the build machine's native compiler. Configure edits the second
|
|---|
| 514 | # macro for build!=host builds.
|
|---|
| 515 | ALL_BUILD_MODULES_LIST = \
|
|---|
| 516 | all-build-libiberty
|
|---|
| 517 | ALL_BUILD_MODULES = @all_build_modules@
|
|---|
| 518 |
|
|---|
| 519 | # This is a list of the configure targets for all of the modules which
|
|---|
| 520 | # are compiled using the native tools.
|
|---|
| 521 | CONFIGURE_BUILD_MODULES = \
|
|---|
| 522 | configure-build-libiberty
|
|---|
| 523 |
|
|---|
| 524 | # This is a list of the targets for all of the modules which are compiled
|
|---|
| 525 | # using $(FLAGS_TO_PASS).
|
|---|
| 526 | ALL_MODULES = \
|
|---|
| 527 | all-ash \
|
|---|
| 528 | all-autoconf \
|
|---|
| 529 | all-automake \
|
|---|
| 530 | all-bash \
|
|---|
| 531 | all-bfd \
|
|---|
| 532 | all-opcodes \
|
|---|
| 533 | all-binutils \
|
|---|
| 534 | all-bison \
|
|---|
| 535 | all-byacc \
|
|---|
| 536 | all-bzip2 \
|
|---|
| 537 | all-db \
|
|---|
| 538 | all-dejagnu \
|
|---|
| 539 | all-diff \
|
|---|
| 540 | all-dosutils \
|
|---|
| 541 | all-etc \
|
|---|
| 542 | all-fastjar \
|
|---|
| 543 | all-fileutils \
|
|---|
| 544 | all-findutils \
|
|---|
| 545 | all-find \
|
|---|
| 546 | all-flex \
|
|---|
| 547 | all-gas \
|
|---|
| 548 | all-gawk \
|
|---|
| 549 | all-gettext \
|
|---|
| 550 | all-gnuserv \
|
|---|
| 551 | all-gprof \
|
|---|
| 552 | all-grep \
|
|---|
| 553 | all-gzip \
|
|---|
| 554 | all-hello \
|
|---|
| 555 | all-indent \
|
|---|
| 556 | all-intl \
|
|---|
| 557 | all-tcl \
|
|---|
| 558 | all-itcl \
|
|---|
| 559 | all-ld \
|
|---|
| 560 | all-libgui \
|
|---|
| 561 | all-libiberty \
|
|---|
| 562 | all-libtool \
|
|---|
| 563 | all-m4 \
|
|---|
| 564 | all-make \
|
|---|
| 565 | all-mmalloc \
|
|---|
| 566 | all-patch \
|
|---|
| 567 | all-perl \
|
|---|
| 568 | all-prms \
|
|---|
| 569 | all-rcs \
|
|---|
| 570 | all-readline \
|
|---|
| 571 | all-release \
|
|---|
| 572 | all-recode \
|
|---|
| 573 | all-sed \
|
|---|
| 574 | all-send-pr \
|
|---|
| 575 | all-shellutils \
|
|---|
| 576 | all-sid \
|
|---|
| 577 | all-sim \
|
|---|
| 578 | all-snavigator \
|
|---|
| 579 | all-tar \
|
|---|
|
|---|