| 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
|
|---|
|
|---|