| 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 \
 | 
|---|
| 580 |         all-texinfo \
 | 
|---|
| 581 |         all-textutils \
 | 
|---|
| 582 |         all-time \
 | 
|---|
| 583 |         all-uudecode \
 | 
|---|
| 584 |         all-wdiff \
 | 
|---|
| 585 |         all-zip \
 | 
|---|
| 586 |         all-zlib \
 | 
|---|
| 587 |         $(EXTRA_TARGET_HOST_ALL_MODULES)
 | 
|---|
| 588 | 
 | 
|---|
| 589 | # This is a list of the check targets for all of the modules which are
 | 
|---|
| 590 | # compiled using $(FLAGS_TO_PASS).
 | 
|---|
| 591 | #
 | 
|---|
| 592 | # The list is in two parts.  The first lists those tools which
 | 
|---|
| 593 | # are tested as part of the host's native tool-chain, and not
 | 
|---|
| 594 | # tested in a cross configuration.
 | 
|---|
| 595 | NATIVE_CHECK_MODULES = \
 | 
|---|
| 596 |         check-bison \
 | 
|---|
| 597 |         check-byacc \
 | 
|---|
| 598 |         check-fastjar \
 | 
|---|
| 599 |         check-flex \
 | 
|---|
| 600 |         check-zip
 | 
|---|
| 601 | 
 | 
|---|
| 602 | CROSS_CHECK_MODULES = \
 | 
|---|
| 603 |         check-ash \
 | 
|---|
| 604 |         check-autoconf \
 | 
|---|
| 605 |         check-automake \
 | 
|---|
| 606 |         check-bash \
 | 
|---|
| 607 |         check-bfd \
 | 
|---|
| 608 |         check-opcodes \
 | 
|---|
| 609 |         check-binutils \
 | 
|---|
| 610 |         check-bzip2 \
 | 
|---|
| 611 |         check-db \
 | 
|---|
| 612 |         check-dejagnu \
 | 
|---|
| 613 |         check-diff \
 | 
|---|
| 614 |         check-etc \
 | 
|---|
| 615 |         check-fileutils \
 | 
|---|
| 616 |         check-findutils \
 | 
|---|
| 617 |         check-find \
 | 
|---|
| 618 |         check-gas \
 | 
|---|
| 619 |         check-gawk \
 | 
|---|
| 620 |         check-gettext \
 | 
|---|
| 621 |         check-gnuserv \
 | 
|---|
| 622 |         check-gprof \
 | 
|---|
| 623 |         check-grep \
 | 
|---|
| 624 |         check-gzip \
 | 
|---|
| 625 |         check-hello \
 | 
|---|
| 626 |         check-indent \
 | 
|---|
| 627 |         check-intl \
 | 
|---|
| 628 |         check-tcl \
 | 
|---|
| 629 |         check-itcl \
 | 
|---|
| 630 |         check-ld \
 | 
|---|
| 631 |         check-libgui \
 | 
|---|
| 632 |         check-libiberty \
 | 
|---|
| 633 |         check-libtool \
 | 
|---|
| 634 |         check-m4 \
 | 
|---|
| 635 |         check-make \
 | 
|---|
| 636 |         check-patch \
 | 
|---|
| 637 |         check-perl \
 | 
|---|
| 638 |         check-prms \
 | 
|---|
| 639 |         check-rcs \
 | 
|---|
| 640 |         check-readline \
 | 
|---|
| 641 |         check-recode \
 | 
|---|
| 642 |         check-sed \
 | 
|---|
| 643 |         check-send-pr \
 | 
|---|
| 644 |         check-shellutils \
 | 
|---|
| 645 |         check-sid \
 | 
|---|
| 646 |         check-sim \
 | 
|---|
| 647 |         check-snavigator \
 | 
|---|
| 648 |         check-tar \
 | 
|---|
| 649 |         check-texinfo \
 | 
|---|
| 650 |         check-textutils \
 | 
|---|
| 651 |         check-time \
 | 
|---|
| 652 |         check-uudecode \
 | 
|---|
| 653 |         check-wdiff \
 | 
|---|
| 654 |         $(EXTRA_TARGET_HOST_CHECK_MODULES)
 | 
|---|
| 655 | 
 | 
|---|
| 656 | CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
 | 
|---|
| 657 | 
 | 
|---|
| 658 | # This is a list of the install targets for all of the modules which are
 | 
|---|
| 659 | # compiled using $(FLAGS_TO_PASS).
 | 
|---|
| 660 | INSTALL_MODULES = \
 | 
|---|
| 661 |         install-ash \
 | 
|---|
| 662 |         install-autoconf \
 | 
|---|
| 663 |         install-automake \
 | 
|---|
| 664 |         install-bash \
 | 
|---|
| 665 |         install-bfd \
 | 
|---|
| 666 |         install-opcodes \
 | 
|---|
| 667 |         install-binutils \
 | 
|---|
| 668 |         install-bison \
 | 
|---|
| 669 |         install-byacc \
 | 
|---|
| 670 |         install-bzip2 \
 | 
|---|
| 671 |         install-db \
 | 
|---|
| 672 |         install-dejagnu \
 | 
|---|
| 673 |         install-diff \
 | 
|---|
| 674 |         install-dosutils \
 | 
|---|
| 675 |         install-etc \
 | 
|---|
| 676 |         install-fastjar \
 | 
|---|
| 677 |         install-fileutils \
 | 
|---|
| 678 |         install-findutils \
 | 
|---|
| 679 |         install-find \
 | 
|---|
| 680 |         install-flex \
 | 
|---|
| 681 |         install-gas \
 | 
|---|
| 682 |         install-gawk \
 | 
|---|
| 683 |         install-gettext \
 | 
|---|
| 684 |         install-gnuserv \
 | 
|---|
| 685 |         install-gprof \
 | 
|---|
| 686 |         install-grep \
 | 
|---|
| 687 |         install-gzip \
 | 
|---|
| 688 |         install-hello \
 | 
|---|
| 689 |         install-indent \
 | 
|---|
| 690 |         install-intl \
 | 
|---|
| 691 |         install-tcl \
 | 
|---|
| 692 |         install-itcl \
 | 
|---|
| 693 |         install-ld \
 | 
|---|
| 694 |         install-libgui \
 | 
|---|
| 695 |         install-libiberty \
 | 
|---|
| 696 |         install-libtool \
 | 
|---|
| 697 |         install-m4 \
 | 
|---|
| 698 |         install-make \
 | 
|---|
| 699 |         install-mmalloc \
 | 
|---|
| 700 |         install-patch \
 | 
|---|
| 701 |         install-perl \
 | 
|---|
| 702 |         install-prms \
 | 
|---|
| 703 |         install-rcs \
 | 
|---|
| 704 |         install-readline \
 | 
|---|
| 705 |         install-recode \
 | 
|---|
| 706 |         install-sed \
 | 
|---|
| 707 |         install-send-pr \
 | 
|---|
| 708 |         install-shellutils \
 | 
|---|
| 709 |         install-sid \
 | 
|---|
| 710 |         install-sim \
 | 
|---|
| 711 |         install-snavigator \
 | 
|---|
| 712 |         install-tar \
 | 
|---|
| 713 |         install-textutils \
 | 
|---|
| 714 |         install-time \
 | 
|---|
| 715 |         install-uudecode \
 | 
|---|
| 716 |         install-wdiff \
 | 
|---|
| 717 |         install-zip \
 | 
|---|
| 718 |         $(EXTRA_TARGET_HOST_INSTALL_MODULES)
 | 
|---|
| 719 | 
 | 
|---|
| 720 | # This is a list of the targets for all of the modules which are compiled
 | 
|---|
| 721 | # using $(X11_FLAGS_TO_PASS).
 | 
|---|
| 722 | ALL_X11_MODULES = \
 | 
|---|
| 723 |         all-gdb \
 | 
|---|
| 724 |         all-expect \
 | 
|---|
| 725 |         all-guile \
 | 
|---|
| 726 |         all-tclX \
 | 
|---|
| 727 |         all-tk \
 | 
|---|
| 728 |         all-tix
 | 
|---|
| 729 | 
 | 
|---|
| 730 | # This is a list of the check targets for all of the modules which are
 | 
|---|
| 731 | # compiled using $(X11_FLAGS_TO_PASS).
 | 
|---|
| 732 | CHECK_X11_MODULES = \
 | 
|---|
| 733 |         check-gdb \
 | 
|---|
| 734 |         check-guile \
 | 
|---|
| 735 |         check-expect \
 | 
|---|
| 736 |         check-tclX \
 | 
|---|
| 737 |         check-tk \
 | 
|---|
| 738 |         check-tix
 | 
|---|
| 739 | 
 | 
|---|
| 740 | # This is a list of the install targets for all the modules which are
 | 
|---|
| 741 | # compiled using $(X11_FLAGS_TO_PASS).
 | 
|---|
| 742 | INSTALL_X11_MODULES = \
 | 
|---|
| 743 |         install-gdb \
 | 
|---|
| 744 |         install-guile \
 | 
|---|
| 745 |         install-expect \
 | 
|---|
| 746 |         install-tclX \
 | 
|---|
| 747 |         install-tk \
 | 
|---|
| 748 |         install-tix
 | 
|---|
| 749 | 
 | 
|---|
| 750 | # This is a list of the targets for all of the modules which are compiled
 | 
|---|
| 751 | # using $(TARGET_FLAGS_TO_PASS).
 | 
|---|
| 752 | ALL_TARGET_MODULES = \
 | 
|---|
| 753 |         all-target-libstdc++-v3 \
 | 
|---|
| 754 |         all-target-newlib \
 | 
|---|
| 755 |         all-target-libf2c \
 | 
|---|
| 756 |         all-target-libobjc \
 | 
|---|
| 757 |         all-target-libtermcap \
 | 
|---|
| 758 |         all-target-winsup \
 | 
|---|
| 759 |         all-target-libgloss \
 | 
|---|
| 760 |         all-target-libiberty \
 | 
|---|
| 761 |         all-target-gperf \
 | 
|---|
| 762 |         all-target-examples \
 | 
|---|
| 763 |         all-target-libffi \
 | 
|---|
| 764 |         all-target-libjava \
 | 
|---|
| 765 |         all-target-zlib \
 | 
|---|
| 766 |         all-target-boehm-gc \
 | 
|---|
| 767 |         all-target-qthreads \
 | 
|---|
| 768 |         all-target-rda
 | 
|---|
| 769 | 
 | 
|---|
| 770 | # This is a list of the configure targets for all of the modules which
 | 
|---|
| 771 | # are compiled using the target tools.
 | 
|---|
| 772 | CONFIGURE_TARGET_MODULES = \
 | 
|---|
| 773 |         configure-target-libstdc++-v3 \
 | 
|---|
| 774 |         configure-target-newlib \
 | 
|---|
| 775 |         configure-target-libf2c \
 | 
|---|
| 776 |         configure-target-libobjc \
 | 
|---|
| 777 |         configure-target-libtermcap \
 | 
|---|
| 778 |         configure-target-winsup \
 | 
|---|
| 779 |         configure-target-libgloss \
 | 
|---|
| 780 |         configure-target-libiberty \
 | 
|---|
| 781 |         configure-target-gperf \
 | 
|---|
| 782 |         configure-target-examples \
 | 
|---|
| 783 |         configure-target-libffi \
 | 
|---|
| 784 |         configure-target-libjava \
 | 
|---|
| 785 |         configure-target-zlib \
 | 
|---|
| 786 |         configure-target-boehm-gc \
 | 
|---|
| 787 |         configure-target-qthreads \
 | 
|---|
| 788 |         configure-target-rda
 | 
|---|
| 789 | 
 | 
|---|
| 790 | # This is a list of the check targets for all of the modules which are
 | 
|---|
| 791 | # compiled using $(TARGET_FLAGS_TO_PASS).
 | 
|---|
| 792 | CHECK_TARGET_MODULES = \
 | 
|---|
| 793 |         check-target-libstdc++-v3 \
 | 
|---|
| 794 |         check-target-newlib \
 | 
|---|
| 795 |         check-target-libf2c \
 | 
|---|
| 796 |         check-target-libobjc \
 | 
|---|
| 797 |         check-target-winsup \
 | 
|---|
| 798 |         check-target-libiberty \
 | 
|---|
| 799 |         check-target-gperf \
 | 
|---|
| 800 |         check-target-libffi \
 | 
|---|
| 801 |         check-target-libjava \
 | 
|---|
| 802 |         check-target-zlib \
 | 
|---|
| 803 |         check-target-boehm-gc \
 | 
|---|
| 804 |         check-target-qthreads \
 | 
|---|
| 805 |         check-target-rda
 | 
|---|
| 806 | 
 | 
|---|
| 807 | # This is a list of the install targets for all of the modules which are
 | 
|---|
| 808 | # compiled using $(TARGET_FLAGS_TO_PASS).
 | 
|---|
| 809 | INSTALL_TARGET_MODULES = \
 | 
|---|
| 810 |         install-target-libstdc++-v3 \
 | 
|---|
| 811 |         install-target-newlib \
 | 
|---|
| 812 |         install-target-libf2c \
 | 
|---|
| 813 |         install-target-libobjc \
 | 
|---|
| 814 |         install-target-libtermcap \
 | 
|---|
| 815 |         install-target-winsup \
 | 
|---|
| 816 |         install-target-libgloss \
 | 
|---|
| 817 |         install-target-libiberty \
 | 
|---|
| 818 |         install-target-gperf \
 | 
|---|
| 819 |         install-target-libffi \
 | 
|---|
| 820 |         install-target-libjava \
 | 
|---|
| 821 |         install-target-zlib \
 | 
|---|
| 822 |         install-target-boehm-gc \
 | 
|---|
| 823 |         install-target-qthreads \
 | 
|---|
| 824 |         install-target-rda
 | 
|---|
| 825 | 
 | 
|---|
| 826 | # This is a list of the targets for which we can do a clean-{target}.
 | 
|---|
| 827 | CLEAN_MODULES = \
 | 
|---|
| 828 |         clean-ash \
 | 
|---|
| 829 |         clean-autoconf \
 | 
|---|
| 830 |         clean-automake \
 | 
|---|
| 831 |         clean-bash \
 | 
|---|
| 832 |         clean-bfd \
 | 
|---|
| 833 |         clean-opcodes \
 | 
|---|
| 834 |         clean-binutils \
 | 
|---|
| 835 |         clean-bison \
 | 
|---|
| 836 |         clean-byacc \
 | 
|---|
| 837 |         clean-bzip2 \
 | 
|---|
| 838 |         clean-db \
 | 
|---|
| 839 |         clean-dejagnu \
 | 
|---|
| 840 |         clean-diff \
 | 
|---|
| 841 |         clean-dosutils \
 | 
|---|
| 842 |         clean-etc \
 | 
|---|
| 843 |         clean-fastjar \
 | 
|---|
| 844 |         clean-fileutils \
 | 
|---|
| 845 |         clean-findutils \
 | 
|---|
| 846 |         clean-find \
 | 
|---|
| 847 |         clean-flex \
 | 
|---|
| 848 |         clean-gas \
 | 
|---|
| 849 |         clean-gawk \
 | 
|---|
| 850 |         clean-gettext \
 | 
|---|
| 851 |         clean-gnuserv \
 | 
|---|
| 852 |         clean-gprof \
 | 
|---|
| 853 |         clean-grep \
 | 
|---|
| 854 |         clean-gzip \
 | 
|---|
| 855 |         clean-hello \
 | 
|---|
| 856 |         clean-indent \
 | 
|---|
| 857 |         clean-intl \
 | 
|---|
| 858 |         clean-tcl \
 | 
|---|
| 859 |         clean-itcl \
 | 
|---|
| 860 |         clean-ld \
 | 
|---|
| 861 |         clean-libgui \
 | 
|---|
| 862 |         clean-libiberty \
 | 
|---|
| 863 |         clean-libtool \
 | 
|---|
| 864 |         clean-m4 \
 | 
|---|
| 865 |         clean-make \
 | 
|---|
| 866 |         clean-mmalloc \
 | 
|---|
| 867 |         clean-patch \
 | 
|---|
| 868 |         clean-perl \
 | 
|---|
| 869 |         clean-prms \
 | 
|---|
| 870 |         clean-rcs \
 | 
|---|
| 871 |         clean-readline \
 | 
|---|
| 872 |         clean-release \
 | 
|---|
| 873 |         clean-recode \
 | 
|---|
| 874 |         clean-sed \
 | 
|---|
| 875 |         clean-send-pr \
 | 
|---|
| 876 |         clean-shellutils \
 | 
|---|
| 877 |         clean-sid \
 | 
|---|
| 878 |         clean-sim \
 | 
|---|
| 879 |         clean-snavigator \
 | 
|---|
| 880 |         clean-tar \
 | 
|---|
| 881 |         clean-texinfo \
 | 
|---|
| 882 |         clean-textutils \
 | 
|---|
| 883 |         clean-time \
 | 
|---|
| 884 |         clean-uudecode \
 | 
|---|
| 885 |         clean-wdiff \
 | 
|---|
| 886 |         clean-zip \
 | 
|---|
| 887 |         clean-zlib
 | 
|---|
| 888 | 
 | 
|---|
| 889 | # All of the target modules that can be cleaned
 | 
|---|
| 890 | CLEAN_TARGET_MODULES = \
 | 
|---|
| 891 |         clean-target-libstdc++-v3 \
 | 
|---|
| 892 |         clean-target-newlib \
 | 
|---|
| 893 |         clean-target-libf2c \
 | 
|---|
| 894 |         clean-target-libobjc \
 | 
|---|
| 895 |         clean-target-winsup \
 | 
|---|
| 896 |         clean-target-libgloss \
 | 
|---|
| 897 |         clean-target-libiberty \
 | 
|---|
| 898 |         clean-target-gperf \
 | 
|---|
| 899 |         clean-target-examples \
 | 
|---|
| 900 |         clean-target-libffi \
 | 
|---|
| 901 |         clean-target-libjava \
 | 
|---|
| 902 |         clean-target-zlib \
 | 
|---|
| 903 |         clean-target-boehm-gc \
 | 
|---|
| 904 |         clean-target-qthreads \
 | 
|---|
| 905 |         clean-target-rda
 | 
|---|
| 906 | 
 | 
|---|
| 907 | # All of the x11 modules that can be cleaned
 | 
|---|
| 908 | CLEAN_X11_MODULES = \
 | 
|---|
| 909 |         clean-gdb \
 | 
|---|
| 910 |         clean-expect \
 | 
|---|
| 911 |         clean-guile \
 | 
|---|
| 912 |         clean-tclX \
 | 
|---|
| 913 |         clean-tk \
 | 
|---|
| 914 |         clean-tix
 | 
|---|
| 915 | 
 | 
|---|
| 916 | # The target built for a native build.
 | 
|---|
| 917 | .PHONY: all.normal
 | 
|---|
| 918 | all.normal: \
 | 
|---|
| 919 |         $(ALL_BUILD_MODULES) \
 | 
|---|
| 920 |         $(ALL_MODULES) \
 | 
|---|
| 921 |         $(ALL_X11_MODULES) \
 | 
|---|
| 922 |         $(ALL_TARGET_MODULES) \
 | 
|---|
| 923 |         all-gcc
 | 
|---|
| 924 | 
 | 
|---|
| 925 | # Do a target for all the subdirectories.  A ``make do-X'' will do a
 | 
|---|
| 926 | # ``make X'' in all subdirectories (because, in general, there is a
 | 
|---|
| 927 | # dependency (below) of X upon do-X, a ``make X'' will also do this,
 | 
|---|
| 928 | # but it may do additional work as well).
 | 
|---|
| 929 | # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
 | 
|---|
| 930 | # because it is so large that it can easily overflow the command line
 | 
|---|
| 931 | # length limit on some systems.
 | 
|---|
| 932 | DO_X = \
 | 
|---|
| 933 |         do-clean \
 | 
|---|
| 934 |         do-distclean \
 | 
|---|
| 935 |         do-dvi \
 | 
|---|
| 936 |         do-info \
 | 
|---|
| 937 |         do-install-info \
 | 
|---|
| 938 |         do-installcheck \
 | 
|---|
| 939 |         do-mostlyclean \
 | 
|---|
| 940 |         do-maintainer-clean \
 | 
|---|
| 941 |         do-TAGS
 | 
|---|
| 942 | .PHONY: $(DO_X)
 | 
|---|
| 943 | $(DO_X):
 | 
|---|
| 944 |         @target=`echo $@ | sed -e 's/^do-//'`; \
 | 
|---|
| 945 |         r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 946 |         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 947 |         $(SET_LIB_PATH) \
 | 
|---|
| 948 |         for i in $(SUBDIRS) -dummy-; do \
 | 
|---|
| 949 |           if [ -f ./$$i/Makefile ]; then \
 | 
|---|
| 950 |             case $$i in \
 | 
|---|
| 951 |             gcc) \
 | 
|---|
| 952 |               for flag in $(EXTRA_GCC_FLAGS); do \
 | 
|---|
| 953 |                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 | 
|---|
| 954 |               done; \
 | 
|---|
| 955 |               ;; \
 | 
|---|
| 956 |             *) \
 | 
|---|
| 957 |               for flag in $(EXTRA_HOST_FLAGS); do \
 | 
|---|
| 958 |                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 | 
|---|
| 959 |               done; \
 | 
|---|
| 960 |               ;; \
 | 
|---|
| 961 |             esac ; \
 | 
|---|
| 962 |             if (cd ./$$i; \
 | 
|---|
| 963 |                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 | 
|---|
| 964 |                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 | 
|---|
| 965 |                         "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
 | 
|---|
| 966 |                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
 | 
|---|
| 967 |                         $${target}); \
 | 
|---|
| 968 |             then true; else exit 1; fi; \
 | 
|---|
| 969 |           else true; fi; \
 | 
|---|
| 970 |         done
 | 
|---|
| 971 |         @target=`echo $@ | sed -e 's/^do-//'`; \
 | 
|---|
| 972 |         r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 973 |         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 974 |         $(SET_LIB_PATH) \
 | 
|---|
| 975 |         for i in $(TARGET_CONFIGDIRS) -dummy-; do \
 | 
|---|
| 976 |           if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
 | 
|---|
| 977 |             for flag in $(EXTRA_TARGET_FLAGS); do \
 | 
|---|
| 978 |                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 | 
|---|
| 979 |             done; \
 | 
|---|
| 980 |             if (cd $(TARGET_SUBDIR)/$$i; \
 | 
|---|
| 981 |                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 | 
|---|
| 982 |                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 | 
|---|
| 983 |                         "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
 | 
|---|
| 984 |                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
 | 
|---|
| 985 |                         $${target}); \
 | 
|---|
| 986 |             then true; else exit 1; fi; \
 | 
|---|
| 987 |           else true; fi; \
 | 
|---|
| 988 |         done
 | 
|---|
| 989 | 
 | 
|---|
| 990 | # Here are the targets which correspond to the do-X targets.
 | 
|---|
| 991 | 
 | 
|---|
| 992 | .PHONY: info installcheck dvi install-info
 | 
|---|
| 993 | .PHONY: clean distclean mostlyclean maintainer-clean realclean
 | 
|---|
| 994 | .PHONY: local-clean local-distclean local-maintainer-clean
 | 
|---|
| 995 | info: do-info
 | 
|---|
| 996 | installcheck: do-installcheck
 | 
|---|
| 997 | dvi: do-dvi
 | 
|---|
| 998 | 
 | 
|---|
| 999 | # Make sure makeinfo is built before we do a `make info'.
 | 
|---|
| 1000 | do-info: all-texinfo
 | 
|---|
| 1001 | 
 | 
|---|
| 1002 | install-info: do-install-info dir.info
 | 
|---|
| 1003 |         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1004 |         if [ -f dir.info ] ; then \
 | 
|---|
| 1005 |           $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
 | 
|---|
| 1006 |         else true ; fi
 | 
|---|
| 1007 | 
 | 
|---|
| 1008 | local-clean:
 | 
|---|
| 1009 |         -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
 | 
|---|
| 1010 | 
 | 
|---|
| 1011 | local-distclean:
 | 
|---|
| 1012 |         -rm -f Makefile config.status config.cache mh-frag mt-frag
 | 
|---|
| 1013 |         -if [ "$(TARGET_SUBDIR)" != "." ]; then \
 | 
|---|
| 1014 |           rm -rf $(TARGET_SUBDIR); \
 | 
|---|
| 1015 |         else true; fi
 | 
|---|
| 1016 |         -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
 | 
|---|
| 1017 |         -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
 | 
|---|
| 1018 |         -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
 | 
|---|
| 1019 |         -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
 | 
|---|
| 1020 |         -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
 | 
|---|
| 1021 | 
 | 
|---|
| 1022 | local-maintainer-clean:
 | 
|---|
| 1023 |         @echo "This command is intended for maintainers to use;"
 | 
|---|
| 1024 |         @echo "it deletes files that may require special tools to rebuild."
 | 
|---|
| 1025 | 
 | 
|---|
| 1026 | clean: do-clean local-clean
 | 
|---|
| 1027 | mostlyclean: do-mostlyclean local-clean
 | 
|---|
| 1028 | distclean: do-distclean local-clean local-distclean
 | 
|---|
| 1029 | maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
 | 
|---|
| 1030 | maintainer-clean: local-distclean
 | 
|---|
| 1031 | realclean: maintainer-clean
 | 
|---|
| 1032 | 
 | 
|---|
| 1033 | # This rule is used to clean specific modules.
 | 
|---|
| 1034 | .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
 | 
|---|
| 1035 | $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
 | 
|---|
| 1036 |         @dir=`echo $@ | sed -e 's/clean-//'`; \
 | 
|---|
| 1037 |         if [ -f ./$${dir}/Makefile ] ; then \
 | 
|---|
| 1038 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1039 |           s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1040 |           $(SET_LIB_PATH) \
 | 
|---|
| 1041 |           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
 | 
|---|
| 1042 |         else \
 | 
|---|
| 1043 |           true; \
 | 
|---|
| 1044 |         fi
 | 
|---|
| 1045 | 
 | 
|---|
| 1046 | .PHONY: $(CLEAN_TARGET_MODULES)
 | 
|---|
| 1047 | $(CLEAN_TARGET_MODULES):
 | 
|---|
| 1048 |         @dir=`echo $@ | sed -e 's/clean-target-//'`; \
 | 
|---|
| 1049 |         rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
 | 
|---|
| 1050 |         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
 | 
|---|
| 1051 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1052 |           s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1053 |           $(SET_LIB_PATH) \
 | 
|---|
| 1054 |           (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
 | 
|---|
| 1055 |         else \
 | 
|---|
| 1056 |           true; \
 | 
|---|
| 1057 |         fi
 | 
|---|
| 1058 | 
 | 
|---|
| 1059 | clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
 | 
|---|
| 1060 | clean-target-libgcc:
 | 
|---|
| 1061 |         test ! -d gcc/libgcc || \
 | 
|---|
| 1062 |         (cd gcc/libgcc && find . -type d -print) | \
 | 
|---|
| 1063 |         while read d; do rm -f gcc/$$d/libgcc.a || : ; done
 | 
|---|
| 1064 |         -rm -rf gcc/libgcc
 | 
|---|
| 1065 | 
 | 
|---|
| 1066 | # Check target.
 | 
|---|
| 1067 | 
 | 
|---|
| 1068 | .PHONY: check do-check
 | 
|---|
| 1069 | check:
 | 
|---|
| 1070 |         $(MAKE) do-check NOTPARALLEL=parallel-ok
 | 
|---|
| 1071 | 
 | 
|---|
| 1072 | do-check: $(CHECK_MODULES) \
 | 
|---|
| 1073 |         $(CHECK_TARGET_MODULES) \
 | 
|---|
| 1074 |         $(CHECK_X11_MODULES) \
 | 
|---|
| 1075 |         check-gcc
 | 
|---|
| 1076 | 
 | 
|---|
| 1077 | # Automated reporting of test results.
 | 
|---|
| 1078 | 
 | 
|---|
| 1079 | warning.log: build.log
 | 
|---|
| 1080 |         $(srcdir)/contrib/warn_summary build.log > $@
 | 
|---|
| 1081 | 
 | 
|---|
| 1082 | mail-report.log:
 | 
|---|
| 1083 |         if test x'$(BOOT_CFLAGS)' != x''; then \
 | 
|---|
| 1084 |             BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
 | 
|---|
| 1085 |         fi; \
 | 
|---|
| 1086 |         $(srcdir)/contrib/test_summary -t >$@
 | 
|---|
| 1087 |         chmod +x $@
 | 
|---|
| 1088 |         echo If you really want to send e-mail, run ./$@ now
 | 
|---|
| 1089 | 
 | 
|---|
| 1090 | mail-report-with-warnings.log: warning.log
 | 
|---|
| 1091 |         if test x'$(BOOT_CFLAGS)' != x''; then \
 | 
|---|
| 1092 |             BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
 | 
|---|
| 1093 |         fi; \
 | 
|---|
| 1094 |         $(srcdir)/contrib/test_summary -t -i warning.log >$@
 | 
|---|
| 1095 |         chmod +x $@
 | 
|---|
| 1096 |         echo If you really want to send e-mail, run ./$@ now
 | 
|---|
| 1097 | 
 | 
|---|
| 1098 | # Installation targets.
 | 
|---|
| 1099 | 
 | 
|---|
| 1100 | .PHONY: install install-cross uninstall source-vault binary-vault vault-install
 | 
|---|
| 1101 | install: $(INSTALL_TARGET)
 | 
|---|
| 1102 | install-cross: $(INSTALL_TARGET_CROSS)
 | 
|---|
| 1103 | 
 | 
|---|
| 1104 | uninstall:
 | 
|---|
| 1105 |         @echo "the uninstall target is not supported in this tree"
 | 
|---|
| 1106 | 
 | 
|---|
| 1107 | source-vault:
 | 
|---|
| 1108 |         $(MAKE) -f ./release/Build-A-Release \
 | 
|---|
| 1109 |                 host=$(host_alias) source-vault
 | 
|---|
| 1110 | 
 | 
|---|
| 1111 | binary-vault:
 | 
|---|
| 1112 |         $(MAKE) -f ./release/Build-A-Release \
 | 
|---|
| 1113 |                 host=$(host_alias) target=$(target_alias)
 | 
|---|
| 1114 | 
 | 
|---|
| 1115 | vault-install:
 | 
|---|
| 1116 |         @if [ -f ./release/vault-install ] ; then \
 | 
|---|
| 1117 |           ./release/vault-install $(host_alias) $(target_alias) ; \
 | 
|---|
| 1118 |         else \
 | 
|---|
| 1119 |           true ; \
 | 
|---|
| 1120 |         fi
 | 
|---|
| 1121 | 
 | 
|---|
| 1122 | .PHONY: install.all
 | 
|---|
| 1123 | install.all: install-no-fixedincludes
 | 
|---|
| 1124 |         @if [ -f ./gcc/Makefile ] ; then \
 | 
|---|
| 1125 |                 r=`${PWD_COMMAND}` ; export r ; \
 | 
|---|
| 1126 |                 $(SET_LIB_PATH) \
 | 
|---|
| 1127 |                 (cd ./gcc; \
 | 
|---|
| 1128 |                 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
 | 
|---|
| 1129 |         else \
 | 
|---|
| 1130 |                 true ; \
 | 
|---|
| 1131 |         fi
 | 
|---|
| 1132 | 
 | 
|---|
| 1133 | # install-no-fixedincludes is used because Cygnus can not distribute
 | 
|---|
| 1134 | # the fixed header files.
 | 
|---|
| 1135 | .PHONY: install-no-fixedincludes
 | 
|---|
| 1136 | install-no-fixedincludes: \
 | 
|---|
| 1137 |         installdirs \
 | 
|---|
| 1138 |         $(INSTALL_MODULES) \
 | 
|---|
| 1139 |         $(INSTALL_TARGET_MODULES) \
 | 
|---|
| 1140 |         $(INSTALL_X11_MODULES) \
 | 
|---|
| 1141 |         gcc-no-fixedincludes
 | 
|---|
| 1142 | 
 | 
|---|
| 1143 | # Install the gcc headers files, but not the fixed include files,
 | 
|---|
| 1144 | # which Cygnus is not allowed to distribute.  This rule is very
 | 
|---|
| 1145 | # dependent on the workings of the gcc Makefile.in.
 | 
|---|
| 1146 | .PHONY: gcc-no-fixedincludes
 | 
|---|
| 1147 | gcc-no-fixedincludes:
 | 
|---|
| 1148 |         @if [ -f ./gcc/Makefile ]; then \
 | 
|---|
| 1149 |           rm -rf gcc/tmp-include; \
 | 
|---|
| 1150 |           mv gcc/include gcc/tmp-include 2>/dev/null; \
 | 
|---|
| 1151 |           mkdir gcc/include; \
 | 
|---|
| 1152 |           cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
 | 
|---|
| 1153 |           touch gcc/stmp-fixinc gcc/include/fixed; \
 | 
|---|
| 1154 |           rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
 | 
|---|
| 1155 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1156 |           s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
 | 
|---|
| 1157 |           $(SET_LIB_PATH) \
 | 
|---|
| 1158 |           (cd ./gcc; \
 | 
|---|
| 1159 |            $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
 | 
|---|
| 1160 |           rm -rf gcc/include; \
 | 
|---|
| 1161 |           mv gcc/tmp-include gcc/include 2>/dev/null; \
 | 
|---|
| 1162 |         else true; fi
 | 
|---|
| 1163 | 
 | 
|---|
| 1164 | # This rule is used to build the modules which are built with the
 | 
|---|
| 1165 | # build machine's native compiler.
 | 
|---|
| 1166 | .PHONY: $(ALL_BUILD_MODULES)
 | 
|---|
| 1167 | $(ALL_BUILD_MODULES):
 | 
|---|
| 1168 |         dir=`echo $@ | sed -e 's/all-build-//'`; \
 | 
|---|
| 1169 |         if [ -f ./$${dir}/Makefile ] ; then \
 | 
|---|
| 1170 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1171 |           s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1172 |           (cd $(BUILD_SUBDIR)/$${dir} && $(MAKE) all); \
 | 
|---|
| 1173 |         else \
 | 
|---|
| 1174 |           true; \
 | 
|---|
| 1175 |         fi
 | 
|---|
| 1176 | 
 | 
|---|
| 1177 | # This rule is used to configure the modules which are built with the
 | 
|---|
| 1178 | # native tools.
 | 
|---|
| 1179 | .PHONY: $(CONFIGURE_BUILD_MODULES)
 | 
|---|
| 1180 | $(CONFIGURE_BUILD_MODULES):
 | 
|---|
| 1181 |         @dir=`echo $@ | sed -e 's/configure-build-//'`; \
 | 
|---|
| 1182 |         if [ ! -d $(BUILD_SUBDIR) ]; then \
 | 
|---|
| 1183 |           true; \
 | 
|---|
| 1184 |         elif [ -f $(BUILD_SUBDIR)/$${dir}/Makefile ] ; then \
 | 
|---|
| 1185 |           true; \
 | 
|---|
| 1186 |         elif echo " $(BUILD_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
 | 
|---|
| 1187 |           if [ -d $(srcdir)/$${dir} ]; then \
 | 
|---|
| 1188 |             [ -d $(BUILD_SUBDIR)/$${dir} ] || mkdir $(BUILD_SUBDIR)/$${dir};\
 | 
|---|
| 1189 |             r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1190 |             s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1191 |             AR="$(AR_FOR_BUILD)"; export AR; \
 | 
|---|
| 1192 |             AS="$(AS_FOR_BUILD)"; export AS; \
 | 
|---|
| 1193 |             CC="$(CC_FOR_BUILD)"; export CC; \
 | 
|---|
| 1194 |             CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
 | 
|---|
| 1195 |             CXX="$(CXX_FOR_BUILD)"; export CXX; \
 | 
|---|
| 1196 |             CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
 | 
|---|
| 1197 |             GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
 | 
|---|
| 1198 |             DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
 | 
|---|
| 1199 |             LD="$(LD_FOR_BUILD)"; export LD; \
 | 
|---|
| 1200 |             LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
 | 
|---|
| 1201 |             NM="$(NM_FOR_BUILD)"; export NM; \
 | 
|---|
| 1202 |             RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
 | 
|---|
| 1203 |             WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
 | 
|---|
| 1204 |             echo Configuring in $(BUILD_SUBDIR)/$${dir}; \
 | 
|---|
| 1205 |             cd "$(BUILD_SUBDIR)/$${dir}" || exit 1; \
 | 
|---|
| 1206 |             case $(srcdir) in \
 | 
|---|
| 1207 |             /* | [A-Za-z]:[\\/]*) \
 | 
|---|
| 1208 |               topdir=$(srcdir) ;; \
 | 
|---|
| 1209 |             *) \
 | 
|---|
| 1210 |               case "$(BUILD_SUBDIR)" in \
 | 
|---|
| 1211 |               .) topdir="../$(srcdir)" ;; \
 | 
|---|
| 1212 |               *) topdir="../../$(srcdir)" ;; \
 | 
|---|
| 1213 |               esac ;; \
 | 
|---|
| 1214 |             esac; \
 | 
|---|
| 1215 |             if [ "$(srcdir)" = "." ] ; then \
 | 
|---|
| 1216 |               if [ "$(BUILD_SUBDIR)" != "." ] ; then \
 | 
|---|
| 1217 |                 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
 | 
|---|
| 1218 |                   if [ -f Makefile ]; then \
 | 
|---|
| 1219 |                     if $(MAKE) distclean; then \
 | 
|---|
| 1220 |                       true; \
 | 
|---|
| 1221 |                     else \
 | 
|---|
| 1222 |                       exit 1; \
 | 
|---|
| 1223 |                     fi; \
 | 
|---|
| 1224 |                   else \
 | 
|---|
| 1225 |                     true; \
 | 
|---|
| 1226 |                   fi; \
 | 
|---|
| 1227 |                 else \
 | 
|---|
| 1228 |                   exit 1; \
 | 
|---|
| 1229 |                 fi; \
 | 
|---|
| 1230 |               else \
 | 
|---|
| 1231 |                 true; \
 | 
|---|
| 1232 |               fi; \
 | 
|---|
| 1233 |               srcdiroption="--srcdir=."; \
 | 
|---|
| 1234 |               libsrcdir="."; \
 | 
|---|
| 1235 |             else \
 | 
|---|
| 1236 |               srcdiroption="--srcdir=$${topdir}/$${dir}"; \
 | 
|---|
| 1237 |               libsrcdir="$$s/$${dir}"; \
 | 
|---|
| 1238 |             fi; \
 | 
|---|
| 1239 |             if [ -f $${libsrcdir}/configure ] ; then \
 | 
|---|
| 1240 |               rm -f no-such-file skip-this-dir; \
 | 
|---|
| 1241 |               CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
 | 
|---|
| 1242 |                 $(BUILD_CONFIGARGS) $${srcdiroption} \
 | 
|---|
| 1243 |                 --with-build-subdir="$(BUILD_SUBDIR)"; \
 | 
|---|
| 1244 |             else \
 | 
|---|
| 1245 |               rm -f no-such-file skip-this-dir; \
 | 
|---|
| 1246 |               CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
 | 
|---|
| 1247 |                 $(BUILD_CONFIGARGS) $${srcdiroption} \
 | 
|---|
| 1248 |                 --with-build-subdir="$(BUILD_SUBDIR)"; \
 | 
|---|
| 1249 |             fi || exit 1; \
 | 
|---|
| 1250 |             if [ -f skip-this-dir ] ; then \
 | 
|---|
| 1251 |               sh skip-this-dir; \
 | 
|---|
| 1252 |               rm -f skip-this-dir; \
 | 
|---|
| 1253 |               cd ..; rmdir $${dir} || true; \
 | 
|---|
| 1254 |             else \
 | 
|---|
| 1255 |               true; \
 | 
|---|
| 1256 |             fi; \
 | 
|---|
| 1257 |           else \
 | 
|---|
| 1258 |             true; \
 | 
|---|
| 1259 |           fi; \
 | 
|---|
| 1260 |         else \
 | 
|---|
| 1261 |           true; \
 | 
|---|
| 1262 |         fi
 | 
|---|
| 1263 | 
 | 
|---|
| 1264 | # This rule is used to build the modules which use FLAGS_TO_PASS.  To
 | 
|---|
| 1265 | # build a target all-X means to cd to X and make all.
 | 
|---|
| 1266 | .PHONY: $(ALL_MODULES)
 | 
|---|
| 1267 | $(ALL_MODULES):
 | 
|---|
| 1268 |         @dir=`echo $@ | sed -e 's/all-//'`; \
 | 
|---|
| 1269 |         if [ -f ./$${dir}/Makefile ] ; then \
 | 
|---|
| 1270 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1271 |           s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1272 |           $(SET_LIB_PATH) \
 | 
|---|
| 1273 |           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
 | 
|---|
| 1274 |         else \
 | 
|---|
| 1275 |           true; \
 | 
|---|
| 1276 |         fi
 | 
|---|
| 1277 | 
 | 
|---|
| 1278 | # These rules are used to check the modules which use FLAGS_TO_PASS.
 | 
|---|
| 1279 | # To build a target check-X means to cd to X and make check.  Some
 | 
|---|
| 1280 | # modules are only tested in a native toolchain.
 | 
|---|
| 1281 | 
 | 
|---|
| 1282 | .PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
 | 
|---|
| 1283 | $(NATIVE_CHECK_MODULES):
 | 
|---|
| 1284 |         @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
 | 
|---|
| 1285 |           dir=`echo $@ | sed -e 's/check-//'`; \
 | 
|---|
| 1286 |           if [ -f ./$${dir}/Makefile ] ; then \
 | 
|---|
| 1287 |             r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1288 |             s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1289 |             $(SET_LIB_PATH) \
 | 
|---|
| 1290 |             (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
 | 
|---|
| 1291 |           else \
 | 
|---|
| 1292 |             true; \
 | 
|---|
| 1293 |           fi; \
 | 
|---|
| 1294 |         fi
 | 
|---|
| 1295 | 
 | 
|---|
| 1296 | $(CROSS_CHECK_MODULES):
 | 
|---|
| 1297 |         @dir=`echo $@ | sed -e 's/check-//'`; \
 | 
|---|
| 1298 |         if [ -f ./$${dir}/Makefile ] ; then \
 | 
|---|
| 1299 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1300 |           s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1301 |           $(SET_LIB_PATH) \
 | 
|---|
| 1302 |           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
 | 
|---|
| 1303 |         else \
 | 
|---|
| 1304 |           true; \
 | 
|---|
| 1305 |         fi
 | 
|---|
| 1306 | 
 | 
|---|
| 1307 | # This rule is used to install the modules which use FLAGS_TO_PASS.
 | 
|---|
| 1308 | # To build a target install-X means to cd to X and make install.
 | 
|---|
| 1309 | .PHONY: $(INSTALL_MODULES)
 | 
|---|
| 1310 | $(INSTALL_MODULES): installdirs
 | 
|---|
| 1311 |         @dir=`echo $@ | sed -e 's/install-//'`; \
 | 
|---|
| 1312 |         if [ -f ./$${dir}/Makefile ] ; then \
 | 
|---|
| 1313 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1314 |           s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1315 |           $(SET_LIB_PATH) \
 | 
|---|
| 1316 |           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
 | 
|---|
| 1317 |         else \
 | 
|---|
| 1318 |           true; \
 | 
|---|
| 1319 |         fi
 | 
|---|
| 1320 | 
 | 
|---|
| 1321 | # This rule is used to configure the modules which are built with the
 | 
|---|
| 1322 | # target tools.
 | 
|---|
| 1323 | .PHONY: $(CONFIGURE_TARGET_MODULES)
 | 
|---|
| 1324 | $(CONFIGURE_TARGET_MODULES):
 | 
|---|
| 1325 |         @dir=`echo $@ | sed -e 's/configure-target-//'`; \
 | 
|---|
| 1326 |         if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
 | 
|---|
| 1327 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1328 |           $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
 | 
|---|
| 1329 |           if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \
 | 
|---|
| 1330 |             if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \
 | 
|---|
| 1331 |               if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \
 | 
|---|
| 1332 |                 rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
 | 
|---|
| 1333 |               else \
 | 
|---|
| 1334 |                 echo "Multilibs changed for $${dir}, reconfiguring"; \
 | 
|---|
| 1335 |                 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \
 | 
|---|
| 1336 |                 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
 | 
|---|
| 1337 |               fi; \
 | 
|---|
| 1338 |             else \
 | 
|---|
| 1339 |               mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
 | 
|---|
| 1340 |             fi; \
 | 
|---|
| 1341 |           fi; \
 | 
|---|
| 1342 |         fi; exit 0      # break command into two pieces
 | 
|---|
| 1343 |         @dir=`echo $@ | sed -e 's/configure-target-//'`; \
 | 
|---|
| 1344 |         if [ ! -d $(TARGET_SUBDIR) ]; then \
 | 
|---|
| 1345 |           true; \
 | 
|---|
| 1346 |         elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
 | 
|---|
| 1347 |           true; \
 | 
|---|
| 1348 |         elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
 | 
|---|
| 1349 |           if [ -d $(srcdir)/$${dir} ]; then \
 | 
|---|
| 1350 |             [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
 | 
|---|
| 1351 |             r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1352 |             s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1353 |             $(SET_LIB_PATH) \
 | 
|---|
| 1354 |             AR="$(AR_FOR_TARGET)"; export AR; \
 | 
|---|
| 1355 |             AS="$(AS_FOR_TARGET)"; export AS; \
 | 
|---|
| 1356 |             CC="$(CC_FOR_TARGET)"; export CC; \
 | 
|---|
| 1357 |             CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
 | 
|---|
| 1358 |             CXX="$(CXX_FOR_TARGET)"; export CXX; \
 | 
|---|
| 1359 |             CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
 | 
|---|
| 1360 |             GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
 | 
|---|
| 1361 |             DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
 | 
|---|
| 1362 |             LD="$(LD_FOR_TARGET)"; export LD; \
 | 
|---|
| 1363 |             LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
 | 
|---|
| 1364 |             NM="$(NM_FOR_TARGET)"; export NM; \
 | 
|---|
| 1365 |             RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
 | 
|---|
| 1366 |             WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
 | 
|---|
| 1367 |             echo Configuring in $(TARGET_SUBDIR)/$${dir}; \
 | 
|---|
| 1368 |             cd "$(TARGET_SUBDIR)/$${dir}" || exit 1; \
 | 
|---|
| 1369 |             case $(srcdir) in \
 | 
|---|
| 1370 |             /* | [A-Za-z]:[\\/]*) \
 | 
|---|
| 1371 |               topdir=$(srcdir) ;; \
 | 
|---|
| 1372 |             *) \
 | 
|---|
| 1373 |               case "$(TARGET_SUBDIR)" in \
 | 
|---|
| 1374 |               .) topdir="../$(srcdir)" ;; \
 | 
|---|
| 1375 |               *) topdir="../../$(srcdir)" ;; \
 | 
|---|
| 1376 |               esac ;; \
 | 
|---|
| 1377 |             esac; \
 | 
|---|
| 1378 |             if [ "$(srcdir)" = "." ] ; then \
 | 
|---|
| 1379 |               if [ "$(TARGET_SUBDIR)" != "." ] ; then \
 | 
|---|
| 1380 |                 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
 | 
|---|
| 1381 |                   if [ -f Makefile ]; then \
 | 
|---|
| 1382 |                     if $(MAKE) distclean; then \
 | 
|---|
| 1383 |                       true; \
 | 
|---|
| 1384 |                     else \
 | 
|---|
| 1385 |                       exit 1; \
 | 
|---|
| 1386 |                     fi; \
 | 
|---|
| 1387 |                   else \
 | 
|---|
| 1388 |                     true; \
 | 
|---|
| 1389 |                   fi; \
 | 
|---|
| 1390 |                 else \
 | 
|---|
| 1391 |                   exit 1; \
 | 
|---|
| 1392 |                 fi; \
 | 
|---|
| 1393 |               else \
 | 
|---|
| 1394 |                 true; \
 | 
|---|
| 1395 |               fi; \
 | 
|---|
| 1396 |               srcdiroption="--srcdir=."; \
 | 
|---|
| 1397 |               libsrcdir="."; \
 | 
|---|
| 1398 |             else \
 | 
|---|
| 1399 |               srcdiroption="--srcdir=$${topdir}/$${dir}"; \
 | 
|---|
| 1400 |               libsrcdir="$$s/$${dir}"; \
 | 
|---|
| 1401 |             fi; \
 | 
|---|
| 1402 |             if [ -f $${libsrcdir}/configure ] ; then \
 | 
|---|
| 1403 |               rm -f no-such-file skip-this-dir; \
 | 
|---|
| 1404 |               CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
 | 
|---|
| 1405 |                 $(TARGET_CONFIGARGS) $${srcdiroption} \
 | 
|---|
| 1406 |                 --with-target-subdir="$(TARGET_SUBDIR)"; \
 | 
|---|
| 1407 |             else \
 | 
|---|
| 1408 |               rm -f no-such-file skip-this-dir; \
 | 
|---|
| 1409 |               CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
 | 
|---|
| 1410 |                 $(TARGET_CONFIGARGS) $${srcdiroption} \
 | 
|---|
| 1411 |                 --with-target-subdir="$(TARGET_SUBDIR)"; \
 | 
|---|
| 1412 |             fi || exit 1; \
 | 
|---|
| 1413 |             if [ -f skip-this-dir ] ; then \
 | 
|---|
| 1414 |               sh skip-this-dir; \
 | 
|---|
| 1415 |               rm -f skip-this-dir; \
 | 
|---|
| 1416 |               cd ..; rmdir $${dir} || true; \
 | 
|---|
| 1417 |             else \
 | 
|---|
| 1418 |               true; \
 | 
|---|
| 1419 |             fi; \
 | 
|---|
| 1420 |           else \
 | 
|---|
| 1421 |             true; \
 | 
|---|
| 1422 |           fi; \
 | 
|---|
| 1423 |         else \
 | 
|---|
| 1424 |           true; \
 | 
|---|
| 1425 |         fi
 | 
|---|
| 1426 | 
 | 
|---|
| 1427 | # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
 | 
|---|
| 1428 | # To build a target all-X means to cd to X and make all.
 | 
|---|
| 1429 | .PHONY: $(ALL_TARGET_MODULES)
 | 
|---|
| 1430 | $(ALL_TARGET_MODULES):
 | 
|---|
| 1431 |         @dir=`echo $@ | sed -e 's/all-target-//'`; \
 | 
|---|
| 1432 |         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
 | 
|---|
| 1433 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1434 |           s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1435 |           $(SET_LIB_PATH) \
 | 
|---|
| 1436 |           (cd $(TARGET_SUBDIR)/$${dir}; \
 | 
|---|
| 1437 |             $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
 | 
|---|
| 1438 |         else \
 | 
|---|
| 1439 |           true; \
 | 
|---|
| 1440 |         fi
 | 
|---|
| 1441 | 
 | 
|---|
| 1442 | # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
 | 
|---|
| 1443 | # To build a target install-X means to cd to X and make install.
 | 
|---|
| 1444 | .PHONY: $(CHECK_TARGET_MODULES)
 | 
|---|
| 1445 | $(CHECK_TARGET_MODULES):
 | 
|---|
| 1446 |         @dir=`echo $@ | sed -e 's/check-target-//'`; \
 | 
|---|
| 1447 |         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
 | 
|---|
| 1448 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1449 |           s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1450 |           $(SET_LIB_PATH) \
 | 
|---|
| 1451 |           (cd $(TARGET_SUBDIR)/$${dir}; \
 | 
|---|
| 1452 |             $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
 | 
|---|
| 1453 |         else \
 | 
|---|
| 1454 |           true; \
 | 
|---|
| 1455 |         fi
 | 
|---|
| 1456 | 
 | 
|---|
| 1457 | # This rule is used to install the modules which use
 | 
|---|
| 1458 | # TARGET_FLAGS_TO_PASS.  To build a target install-X means to cd to X
 | 
|---|
| 1459 | # and make install.
 | 
|---|
| 1460 | .PHONY: $(INSTALL_TARGET_MODULES)
 | 
|---|
| 1461 | $(INSTALL_TARGET_MODULES): installdirs
 | 
|---|
| 1462 |         @dir=`echo $@ | sed -e 's/install-target-//'`; \
 | 
|---|
| 1463 |         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
 | 
|---|
| 1464 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1465 |           s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1466 |           $(SET_LIB_PATH) \
 | 
|---|
| 1467 |           (cd $(TARGET_SUBDIR)/$${dir}; \
 | 
|---|
| 1468 |             $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
 | 
|---|
| 1469 |         else \
 | 
|---|
| 1470 |           true; \
 | 
|---|
| 1471 |         fi
 | 
|---|
| 1472 | 
 | 
|---|
| 1473 | # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
 | 
|---|
| 1474 | # To build a target all-X means to cd to X and make all.
 | 
|---|
| 1475 | .PHONY: $(ALL_X11_MODULES)
 | 
|---|
| 1476 | $(ALL_X11_MODULES):
 | 
|---|
| 1477 |         @dir=`echo $@ | sed -e 's/all-//'`; \
 | 
|---|
| 1478 |         if [ -f ./$${dir}/Makefile ] ; then \
 | 
|---|
| 1479 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1480 |           s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1481 |           $(SET_LIB_PATH) \
 | 
|---|
| 1482 |           (cd $${dir}; \
 | 
|---|
| 1483 |            $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
 | 
|---|
| 1484 |         else \
 | 
|---|
| 1485 |           true; \
 | 
|---|
| 1486 |         fi
 | 
|---|
| 1487 | 
 | 
|---|
| 1488 | # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
 | 
|---|
| 1489 | # To build a target check-X means to cd to X and make all.
 | 
|---|
| 1490 | .PHONY: $(CHECK_X11_MODULES)
 | 
|---|
| 1491 | $(CHECK_X11_MODULES):
 | 
|---|
| 1492 |         @dir=`echo $@ | sed -e 's/check-//'`; \
 | 
|---|
| 1493 |         if [ -f ./$${dir}/Makefile ] ; then \
 | 
|---|
| 1494 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1495 |           s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1496 |           $(SET_LIB_PATH) \
 | 
|---|
| 1497 |           (cd $${dir}; \
 | 
|---|
| 1498 |            $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
 | 
|---|
| 1499 |         else \
 | 
|---|
| 1500 |           true; \
 | 
|---|
| 1501 |         fi
 | 
|---|
| 1502 | 
 | 
|---|
| 1503 | # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
 | 
|---|
| 1504 | # To build a target install-X means to cd to X and make install.
 | 
|---|
| 1505 | .PHONY: $(INSTALL_X11_MODULES)
 | 
|---|
| 1506 | $(INSTALL_X11_MODULES): installdirs
 | 
|---|
| 1507 |         @dir=`echo $@ | sed -e 's/install-//'`; \
 | 
|---|
| 1508 |         if [ -f ./$${dir}/Makefile ] ; then \
 | 
|---|
| 1509 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1510 |           s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1511 |           $(SET_LIB_PATH) \
 | 
|---|
| 1512 |           (cd $${dir}; \
 | 
|---|
| 1513 |            $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
 | 
|---|
| 1514 |         else \
 | 
|---|
| 1515 |           true; \
 | 
|---|
| 1516 |         fi
 | 
|---|
| 1517 | 
 | 
|---|
| 1518 | # gcc is the only module which uses GCC_FLAGS_TO_PASS.
 | 
|---|
| 1519 | .PHONY: all-gcc
 | 
|---|
| 1520 | all-gcc:
 | 
|---|
| 1521 |         @if [ -f ./gcc/Makefile ] ; then \
 | 
|---|
| 1522 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1523 |           s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1524 |           $(SET_LIB_PATH) \
 | 
|---|
| 1525 |           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
 | 
|---|
| 1526 |         else \
 | 
|---|
| 1527 |           true; \
 | 
|---|
| 1528 |         fi
 | 
|---|
| 1529 | 
 | 
|---|
| 1530 | # Building GCC uses some tools for rebuilding "source" files
 | 
|---|
| 1531 | # like texinfo, bison/byacc, etc.  So we must depend on those.
 | 
|---|
| 1532 | #
 | 
|---|
| 1533 | # While building GCC, it may be necessary to run various target
 | 
|---|
| 1534 | # programs like the assembler, linker, etc.  So we depend on
 | 
|---|
| 1535 | # those too.
 | 
|---|
| 1536 | #
 | 
|---|
| 1537 | # In theory, on an SMP all those dependencies can be resolved
 | 
|---|
| 1538 | # in parallel.
 | 
|---|
| 1539 | #
 | 
|---|
| 1540 | .PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
 | 
|---|
| 1541 | bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap: all-bootstrap
 | 
|---|
| 1542 |         @r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1543 |         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1544 |         $(SET_LIB_PATH) \
 | 
|---|
| 1545 |         echo "Bootstrapping the compiler"; \
 | 
|---|
| 1546 |         cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
 | 
|---|
| 1547 |         @r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1548 |         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1549 |         case "$@" in \
 | 
|---|
| 1550 |           *bootstrap4-lean ) \
 | 
|---|
| 1551 |                         msg="Comparing stage3 and stage4 of the compiler"; \
 | 
|---|
| 1552 |                         compare=compare3-lean ;; \
 | 
|---|
| 1553 |           *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
 | 
|---|
| 1554 |                         compare=compare3 ;; \
 | 
|---|
| 1555 |           *-lean )      msg="Comparing stage2 and stage3 of the compiler"; \
 | 
|---|
| 1556 |                         compare=compare-lean ;; \
 | 
|---|
| 1557 |           * )           msg="Comparing stage2 and stage3 of the compiler"; \
 | 
|---|
| 1558 |                         compare=compare ;; \
 | 
|---|
| 1559 |         esac; \
 | 
|---|
| 1560 |         $(SET_LIB_PATH) \
 | 
|---|
| 1561 |         echo "$$msg"; \
 | 
|---|
| 1562 |         cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
 | 
|---|
| 1563 |         @r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1564 |         s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
 | 
|---|
| 1565 |         $(SET_LIB_PATH) \
 | 
|---|
| 1566 |         echo "Building runtime libraries"; \
 | 
|---|
| 1567 |         $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
 | 
|---|
| 1568 | 
 | 
|---|
| 1569 | .PHONY: cross
 | 
|---|
| 1570 | cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
 | 
|---|
| 1571 |         @r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1572 |         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1573 |         $(SET_LIB_PATH) \
 | 
|---|
| 1574 |         echo "Building the C and C++ compiler"; \
 | 
|---|
| 1575 |         cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
 | 
|---|
| 1576 |         @r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1577 |         s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
 | 
|---|
| 1578 |         $(SET_LIB_PATH) \
 | 
|---|
| 1579 |         echo "Building runtime libraries"; \
 | 
|---|
| 1580 |         $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
 | 
|---|
| 1581 |           LANGUAGES="c c++" all
 | 
|---|
| 1582 | 
 | 
|---|
| 1583 | .PHONY: check-gcc
 | 
|---|
| 1584 | check-gcc:
 | 
|---|
| 1585 |         @if [ -f ./gcc/Makefile ] ; then \
 | 
|---|
| 1586 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1587 |           s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1588 |           $(SET_LIB_PATH) \
 | 
|---|
| 1589 |           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
 | 
|---|
| 1590 |         else \
 | 
|---|
| 1591 |           true; \
 | 
|---|
| 1592 |         fi
 | 
|---|
| 1593 | 
 | 
|---|
| 1594 | .PHONY: check-gcc-c++
 | 
|---|
| 1595 | check-gcc-c++:
 | 
|---|
| 1596 |         @if [ -f ./gcc/Makefile ] ; then \
 | 
|---|
| 1597 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1598 |           s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1599 |           $(SET_LIB_PATH) \
 | 
|---|
| 1600 |           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
 | 
|---|
| 1601 |         else \
 | 
|---|
| 1602 |           true; \
 | 
|---|
| 1603 |         fi
 | 
|---|
| 1604 | 
 | 
|---|
| 1605 | .PHONY: check-c++
 | 
|---|
| 1606 | check-c++:
 | 
|---|
| 1607 |         $(MAKE) check-target-libstdc++-v3 check-gcc-c++ NOTPARALLEL=parallel-ok
 | 
|---|
| 1608 | 
 | 
|---|
| 1609 | .PHONY: install-gcc
 | 
|---|
| 1610 | install-gcc:
 | 
|---|
| 1611 |         @if [ -f ./gcc/Makefile ] ; then \
 | 
|---|
| 1612 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1613 |           s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1614 |           $(SET_LIB_PATH) \
 | 
|---|
| 1615 |           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
 | 
|---|
| 1616 |         else \
 | 
|---|
| 1617 |           true; \
 | 
|---|
| 1618 |         fi
 | 
|---|
| 1619 | 
 | 
|---|
| 1620 | .PHONY: install-gcc-cross
 | 
|---|
| 1621 | install-gcc-cross:
 | 
|---|
| 1622 |         @if [ -f ./gcc/Makefile ] ; then \
 | 
|---|
| 1623 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1624 |           s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1625 |           $(SET_LIB_PATH) \
 | 
|---|
| 1626 |           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" install); \
 | 
|---|
| 1627 |         else \
 | 
|---|
| 1628 |           true; \
 | 
|---|
| 1629 |         fi
 | 
|---|
| 1630 | # EXPERIMENTAL STUFF
 | 
|---|
| 1631 | # This rule is used to install the modules which use FLAGS_TO_PASS.
 | 
|---|
| 1632 | # To build a target install-X means to cd to X and make install.
 | 
|---|
| 1633 | .PHONY: install-dosrel
 | 
|---|
| 1634 | install-dosrel: installdirs info
 | 
|---|
| 1635 |         @dir=`echo $@ | sed -e 's/install-//'`; \
 | 
|---|
| 1636 |         if [ -f ./$${dir}/Makefile ] ; then \
 | 
|---|
| 1637 |           r=`${PWD_COMMAND}`; export r; \
 | 
|---|
| 1638 |           s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 | 
|---|
| 1639 |           $(SET_LIB_PATH) \
 | 
|---|
| 1640 |           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
 | 
|---|
| 1641 |         else \
 | 
|---|
| 1642 |           true; \
 | 
|---|
| 1643 |         fi
 | 
|---|
| 1644 | 
 | 
|---|
| 1645 | install-dosrel-fake:
 | 
|---|
| 1646 | 
 | 
|---|
| 1647 | ALL_GCC = all-gcc
 | 
|---|
| 1648 | ALL_GCC_C = $(ALL_GCC) all-target-newlib all-target-libgloss
 | 
|---|
| 1649 | ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++-v3
 | 
|---|
| 1650 | 
 | 
|---|
| 1651 | # This is a list of inter-dependencies among modules.
 | 
|---|
| 1652 | all-ash:
 | 
|---|
| 1653 | all-autoconf: all-m4 all-texinfo
 | 
|---|
| 1654 | all-automake: all-m4 all-texinfo
 | 
|---|
| 1655 | all-bash:
 | 
|---|
| 1656 | all-bfd: all-libiberty all-intl
 | 
|---|
| 1657 | all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
 | 
|---|
| 1658 | all-bison: all-texinfo
 | 
|---|
| 1659 | configure-target-boehm-gc: $(ALL_GCC_C) configure-target-qthreads
 | 
|---|
| 1660 | all-byacc:
 | 
|---|
| 1661 | all-bzip2:
 | 
|---|
| 1662 | all-db:
 | 
|---|
| 1663 | all-dejagnu: all-tcl all-expect all-tk
 | 
|---|
| 1664 | all-diff: all-libiberty
 | 
|---|
| 1665 | all-etc:
 | 
|---|
| 1666 | configure-target-examples: $(ALL_GCC_C)
 | 
|---|
| 1667 | all-expect: all-tcl all-tk
 | 
|---|
| 1668 | all-fileutils: all-libiberty
 | 
|---|
| 1669 | all-findutils:
 | 
|---|
| 1670 | all-find:
 | 
|---|
| 1671 | all-flex: all-libiberty all-bison all-byacc
 | 
|---|
| 1672 | all-gas: all-libiberty all-opcodes all-bfd all-intl
 | 
|---|
| 1673 | all-gawk:
 | 
|---|
| 1674 | all-gcc: all-bison all-byacc all-binutils all-gas all-ld all-zlib
 | 
|---|
| 1675 | all-bootstrap: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib
 | 
|---|
| 1676 | GDB_TK = @GDB_TK@
 | 
|---|
| 1677 | all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
 | 
|---|
| 1678 | all-gettext:
 | 
|---|
| 1679 | all-gnuserv:
 | 
|---|
| 1680 | configure-target-gperf: $(ALL_GCC_CXX)
 | 
|---|
| 1681 | all-target-gperf: all-target-libiberty all-target-libstdc++-v3
 | 
|---|
| 1682 | all-gprof: all-libiberty all-bfd all-opcodes all-intl
 | 
|---|
| 1683 | all-grep: all-libiberty
 | 
|---|
| 1684 | all-guile:
 | 
|---|
| 1685 | all-gzip: all-libiberty
 | 
|---|
| 1686 | all-hello: all-libiberty
 | 
|---|
| 1687 | all-indent:
 | 
|---|
| 1688 | all-intl:
 | 
|---|
| 1689 | all-itcl: all-tcl all-tk
 | 
|---|
| 1690 | all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
 | 
|---|
| 1691 | configure-target-libgloss: $(ALL_GCC)
 | 
|---|
| 1692 | all-target-libgloss: configure-target-newlib
 | 
|---|
| 1693 | all-libgui: all-tcl all-tk all-itcl
 | 
|---|
| 1694 | all-libiberty:
 | 
|---|
| 1695 | 
 | 
|---|
| 1696 | all-build-libiberty: configure-build-libiberty
 | 
|---|
| 1697 | 
 | 
|---|
| 1698 | configure-target-libffi: $(ALL_GCC_C) 
 | 
|---|
| 1699 | configure-target-libjava: $(ALL_GCC_C) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi
 | 
|---|
| 1700 | all-target-libjava: all-fastjar all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi
 | 
|---|
| 1701 | configure-target-libstdc++-v3: $(ALL_GCC_C)
 | 
|---|
| 1702 | all-target-libstdc++-v3: all-target-libiberty
 | 
|---|
| 1703 | all-libtool:
 | 
|---|
| 1704 | configure-target-libf2c: $(ALL_GCC_C)
 | 
|---|
| 1705 | all-target-libf2c: all-target-libiberty
 | 
|---|
| 1706 | configure-target-libobjc: $(ALL_GCC_C)
 | 
|---|
| 1707 | all-target-libobjc: all-target-libiberty
 | 
|---|
| 1708 | all-m4: all-libiberty all-texinfo
 | 
|---|
| 1709 | all-make: all-libiberty
 | 
|---|
| 1710 | all-mmalloc:
 | 
|---|
| 1711 | configure-target-newlib: $(ALL_GCC)
 | 
|---|
| 1712 | configure-target-libtermcap: $(ALL_GCC_C)
 | 
|---|
| 1713 | all-opcodes: all-bfd all-libiberty
 | 
|---|
| 1714 | all-patch: all-libiberty
 | 
|---|
| 1715 | all-perl:
 | 
|---|
| 1716 | all-prms: all-libiberty
 | 
|---|
| 1717 | configure-target-qthreads: $(ALL_GCC_C)
 | 
|---|
| 1718 | all-rcs:
 | 
|---|
| 1719 | all-readline:
 | 
|---|
| 1720 | all-recode: all-libiberty
 | 
|---|
| 1721 | all-sed: all-libiberty
 | 
|---|
| 1722 | all-send-pr: all-prms
 | 
|---|
| 1723 | all-shellutils:
 | 
|---|
| 1724 | all-sid: all-tcl all-tk
 | 
|---|
| 1725 | all-sim: all-libiberty all-bfd all-opcodes all-readline
 | 
|---|
| 1726 | all-snavigator: all-tcl all-tk all-itcl all-tix all-db all-grep all-libgui
 | 
|---|
| 1727 | all-tar: all-libiberty
 | 
|---|
| 1728 | all-tcl:
 | 
|---|
| 1729 | all-tclX: all-tcl all-tk
 | 
|---|
| 1730 | all-tk: all-tcl
 | 
|---|
| 1731 | all-texinfo: all-libiberty
 | 
|---|
| 1732 | all-textutils:
 | 
|---|
| 1733 | all-time:
 | 
|---|
| 1734 | all-tix: all-tcl all-tk
 | 
|---|
| 1735 | all-wdiff:
 | 
|---|
| 1736 | configure-target-rda: $(ALL_GCC_C)
 | 
|---|
| 1737 | configure-target-winsup: $(ALL_GCC_C)
 | 
|---|
| 1738 | all-target-winsup: all-target-libiberty all-target-libtermcap
 | 
|---|
| 1739 | all-uudecode: all-libiberty
 | 
|---|
| 1740 | all-zip:
 | 
|---|
| 1741 | all-zlib:
 | 
|---|
| 1742 | configure-target-zlib: $(ALL_GCC_C)
 | 
|---|
| 1743 | all-fastjar: all-zlib all-libiberty
 | 
|---|
| 1744 | configure-target-fastjar: configure-target-zlib
 | 
|---|
| 1745 | all-target-fastjar: configure-target-fastjar all-target-zlib all-target-libiberty
 | 
|---|
| 1746 | configure-target-libiberty: $(ALL_GCC_C)
 | 
|---|
| 1747 | configure-target: $(CONFIGURE_TARGET_MODULES)
 | 
|---|
| 1748 | all-target: $(ALL_TARGET_MODULES)
 | 
|---|
| 1749 | install-target: $(INSTALL_TARGET_MODULES)
 | 
|---|
| 1750 | install-gdb: install-tcl install-tk install-itcl install-tix install-libgui
 | 
|---|
| 1751 | install-sid: install-tcl install-tk
 | 
|---|
| 1752 | 
 | 
|---|
| 1753 | # We put install-opcodes before install-binutils because the installed
 | 
|---|
| 1754 | # binutils might be on PATH, and they might need the shared opcodes
 | 
|---|
| 1755 | # library.
 | 
|---|
| 1756 | install-binutils: install-opcodes
 | 
|---|
| 1757 | 
 | 
|---|
| 1758 | # We put install-tcl before install-itcl because itcl wants to run a
 | 
|---|
| 1759 | # program on installation which uses the Tcl libraries.
 | 
|---|
| 1760 | install-itcl: install-tcl
 | 
|---|
| 1761 | 
 | 
|---|
| 1762 | 
 | 
|---|
| 1763 | # Dependencies of all-target-foo on configure-target-foo.
 | 
|---|
| 1764 | all-target-libstdc++-v3: configure-target-libstdc++-v3
 | 
|---|
| 1765 | all-target-newlib: configure-target-newlib
 | 
|---|
| 1766 | all-target-libf2c: configure-target-libf2c
 | 
|---|
| 1767 | all-target-libobjc: configure-target-libobjc
 | 
|---|
| 1768 | all-target-libtermcap: configure-target-libtermcap
 | 
|---|
| 1769 | all-target-winsup: configure-target-winsup
 | 
|---|
| 1770 | all-target-libgloss: configure-target-libgloss
 | 
|---|
| 1771 | all-target-libiberty: configure-target-libiberty
 | 
|---|
| 1772 | all-target-gperf: configure-target-gperf
 | 
|---|
| 1773 | all-target-examples: configure-target-examples
 | 
|---|
| 1774 | all-target-libffi: configure-target-libffi
 | 
|---|
| 1775 | all-target-libjava: configure-target-libjava
 | 
|---|
| 1776 | all-target-zlib: configure-target-zlib
 | 
|---|
| 1777 | all-target-boehm-gc: configure-target-boehm-gc
 | 
|---|
| 1778 | all-target-qthreads: configure-target-qthreads
 | 
|---|
| 1779 | all-target-rda: configure-target-rda
 | 
|---|
| 1780 | 
 | 
|---|
| 1781 | 
 | 
|---|
| 1782 | ### other supporting targets
 | 
|---|
| 1783 | 
 | 
|---|
| 1784 | MAKEDIRS= \
 | 
|---|
| 1785 |         $(DESTDIR)$(prefix) \
 | 
|---|
| 1786 |         $(DESTDIR)$(exec_prefix)
 | 
|---|
| 1787 | .PHONY: installdirs
 | 
|---|
| 1788 | installdirs: mkinstalldirs
 | 
|---|
| 1789 |         $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
 | 
|---|
| 1790 | 
 | 
|---|
| 1791 | dir.info: do-install-info
 | 
|---|
| 1792 |         if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
 | 
|---|
| 1793 |           $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
 | 
|---|
| 1794 |           mv -f dir.info.new dir.info ; \
 | 
|---|
| 1795 |         else true ; \
 | 
|---|
| 1796 |         fi
 | 
|---|
| 1797 | 
 | 
|---|
| 1798 | dist:
 | 
|---|
| 1799 |         @echo "Building a full distribution of this tree isn't done"
 | 
|---|
| 1800 |         @echo "via 'make dist'.  Check out the etc/ subdirectory"
 | 
|---|
| 1801 | 
 | 
|---|
| 1802 | etags tags: TAGS
 | 
|---|
| 1803 | 
 | 
|---|
| 1804 | # Right now this just builds TAGS in each subdirectory.  emacs19 has the
 | 
|---|
| 1805 | # ability to use several tags files at once, so there is probably no need
 | 
|---|
| 1806 | # to combine them into one big TAGS file (like CVS 1.3 does).  We could
 | 
|---|
| 1807 | # (if we felt like it) have this Makefile write a piece of elisp which
 | 
|---|
| 1808 | # the user could load to tell emacs19 where all the TAGS files we just
 | 
|---|
| 1809 | # built are.
 | 
|---|
| 1810 | TAGS: do-TAGS
 | 
|---|
| 1811 | 
 | 
|---|
| 1812 | # Rebuilding Makefile.in, using autogen.
 | 
|---|
| 1813 | $(srcdir)/Makefile.in: # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
 | 
|---|
| 1814 |         cd $(srcdir) && autogen Makefile.def
 | 
|---|
| 1815 | 
 | 
|---|
| 1816 | # with the gnu make, this is done automatically.
 | 
|---|
| 1817 | 
 | 
|---|
| 1818 | Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
 | 
|---|
| 1819 |         $(SHELL) ./config.status
 | 
|---|
| 1820 | 
 | 
|---|
| 1821 | #
 | 
|---|
| 1822 | 
 | 
|---|
| 1823 | .NOEXPORT:
 | 
|---|
| 1824 | MAKEOVERRIDES=
 | 
|---|
| 1825 | 
 | 
|---|
| 1826 | # end of Makefile.in
 | 
|---|