| 1 | # | 
|---|
| 2 | # Makefile for directory with subdirs to build. | 
|---|
| 3 | #   Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, | 
|---|
| 4 | #   1999, 2000, 2001 Free Software Foundation | 
|---|
| 5 | # | 
|---|
| 6 | # This file is free software; you can redistribute it and/or modify | 
|---|
| 7 | # it under the terms of the GNU General Public License as published by | 
|---|
| 8 | # the Free Software Foundation; either version 2 of the License, or | 
|---|
| 9 | # (at your option) any later version. | 
|---|
| 10 | # | 
|---|
| 11 | # This program is distributed in the hope that it will be useful, | 
|---|
| 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|---|
| 14 | # GNU General Public License for more details. | 
|---|
| 15 | # | 
|---|
| 16 | # You should have received a copy of the GNU General Public License | 
|---|
| 17 | # along with this program; if not, write to the Free Software | 
|---|
| 18 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 
|---|
| 19 | # | 
|---|
| 20 |  | 
|---|
| 21 | # Tell GNU make 3.79 not to run the top level in parallel.  This | 
|---|
| 22 | # prevents contention for $builddir/$target/config.cache, as well | 
|---|
| 23 | # as minimizing scatter in file system caches. | 
|---|
| 24 | NOTPARALLEL = .NOTPARALLEL | 
|---|
| 25 | $(NOTPARALLEL): | 
|---|
| 26 |  | 
|---|
| 27 | srcdir = . | 
|---|
| 28 |  | 
|---|
| 29 | prefix = /usr/local | 
|---|
| 30 | exec_prefix = $(prefix) | 
|---|
| 31 |  | 
|---|
| 32 | bindir=${exec_prefix}/bin | 
|---|
| 33 | sbindir=${exec_prefix}/sbin | 
|---|
| 34 | libexecdir=${exec_prefix}/libexec | 
|---|
| 35 | datadir=${prefix}/share | 
|---|
| 36 | sysconfdir=${prefix}/etc | 
|---|
| 37 | sharedstatedir=${prefix}/com | 
|---|
| 38 | localstatedir=${prefix}/var | 
|---|
| 39 | libdir=${exec_prefix}/lib | 
|---|
| 40 | includedir=${prefix}/include | 
|---|
| 41 | oldincludedir=/usr/include | 
|---|
| 42 | infodir=${prefix}/info | 
|---|
| 43 | mandir=${prefix}/man | 
|---|
| 44 | gxx_include_dir=${includedir}/g++ | 
|---|
| 45 |  | 
|---|
| 46 | tooldir = $(exec_prefix)/$(target_alias) | 
|---|
| 47 | build_tooldir = $(exec_prefix)/$(target_alias) | 
|---|
| 48 |  | 
|---|
| 49 | program_transform_name = | 
|---|
| 50 |  | 
|---|
| 51 | man1dir = $(mandir)/man1 | 
|---|
| 52 | man2dir = $(mandir)/man2 | 
|---|
| 53 | man3dir = $(mandir)/man3 | 
|---|
| 54 | man4dir = $(mandir)/man4 | 
|---|
| 55 | man5dir = $(mandir)/man5 | 
|---|
| 56 | man6dir = $(mandir)/man6 | 
|---|
| 57 | man7dir = $(mandir)/man7 | 
|---|
| 58 | man8dir = $(mandir)/man8 | 
|---|
| 59 | man9dir = $(mandir)/man9 | 
|---|
| 60 | infodir = $(prefix)/info | 
|---|
| 61 | includedir = $(prefix)/include | 
|---|
| 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 = /bin/sh | 
|---|
| 67 |  | 
|---|
| 68 | # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a | 
|---|
| 69 | # cygwin host. | 
|---|
| 70 | INSTALL_PROGRAM_ARGS = | 
|---|
| 71 |  | 
|---|
| 72 | INSTALL = $(SHELL) $$s/install-sh -c | 
|---|
| 73 | INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS) | 
|---|
| 74 | INSTALL_SCRIPT = $(INSTALL) | 
|---|
| 75 | INSTALL_DATA = $(INSTALL) -m 644 | 
|---|
| 76 |  | 
|---|
| 77 | INSTALL_DOSREL = install-dosrel-fake | 
|---|
| 78 |  | 
|---|
| 79 | AS = as | 
|---|
| 80 | AR = ar | 
|---|
| 81 | AR_FLAGS = rc | 
|---|
| 82 | CC = cc | 
|---|
| 83 |  | 
|---|
| 84 | # Special variables passed down in EXTRA_GCC_FLAGS.  They are defined | 
|---|
| 85 | # here so that they can be overridden by Makefile fragments. | 
|---|
| 86 | HOST_CC = $(CC_FOR_BUILD) | 
|---|
| 87 | HOST_PREFIX = | 
|---|
| 88 | HOST_PREFIX_1 = loser- | 
|---|
| 89 |  | 
|---|
| 90 | # These flag values are normally overridden by the configure script. | 
|---|
| 91 | CFLAGS = -g | 
|---|
| 92 | CXXFLAGS = -g -O2 | 
|---|
| 93 |  | 
|---|
| 94 | LDFLAGS = | 
|---|
| 95 | LIBCFLAGS = $(CFLAGS) | 
|---|
| 96 | CFLAGS_FOR_BUILD = $(CFLAGS) | 
|---|
| 97 | # During gcc bootstrap, if we use some random cc for stage1 then | 
|---|
| 98 | # CFLAGS will be just -g.  We want to ensure that TARGET libraries | 
|---|
| 99 | # (which we know are built with gcc) are built with optimizations so | 
|---|
| 100 | # prepend -O2 when setting CFLAGS_FOR_TARGET. | 
|---|
| 101 | CFLAGS_FOR_TARGET = -O2 $(CFLAGS) | 
|---|
| 102 | LDFLAGS_FOR_TARGET = | 
|---|
| 103 | LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET) | 
|---|
| 104 | PICFLAG = | 
|---|
| 105 | PICFLAG_FOR_TARGET = | 
|---|
| 106 |  | 
|---|
| 107 | CXX = c++ | 
|---|
| 108 |  | 
|---|
| 109 | # Use -O2 to stress test the compiler. | 
|---|
| 110 | LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates | 
|---|
| 111 | CXXFLAGS_FOR_TARGET = $(CXXFLAGS) | 
|---|
| 112 | LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates | 
|---|
| 113 |  | 
|---|
| 114 | DLLTOOL = dlltool | 
|---|
| 115 | WINDRES = windres | 
|---|
| 116 |  | 
|---|
| 117 | NM = nm | 
|---|
| 118 |  | 
|---|
| 119 | LD = ld | 
|---|
| 120 |  | 
|---|
| 121 | BZIPPROG = bzip2 | 
|---|
| 122 | MD5PROG = md5sum | 
|---|
| 123 |  | 
|---|
| 124 | # These values are substituted by configure. | 
|---|
| 125 | DEFAULT_YACC = yacc | 
|---|
| 126 | DEFAULT_LEX = lex | 
|---|
| 127 | DEFAULT_M4 = m4 | 
|---|
| 128 |  | 
|---|
| 129 | BISON = `if [ -f $$r/bison/bison ] ; then \ | 
|---|
| 130 | echo $$r/bison/bison -L $$s/bison/ ; \ | 
|---|
| 131 | else \ | 
|---|
| 132 | echo bison ; \ | 
|---|
| 133 | fi` | 
|---|
| 134 |  | 
|---|
| 135 | YACC = `if [ -f $$r/bison/bison ] ; then \ | 
|---|
| 136 | echo $$r/bison/bison -y -L $$s/bison/ ; \ | 
|---|
| 137 | elif [ -f $$r/byacc/byacc ] ; then \ | 
|---|
| 138 | echo $$r/byacc/byacc ; \ | 
|---|
| 139 | else \ | 
|---|
| 140 | echo ${DEFAULT_YACC} ; \ | 
|---|
| 141 | fi` | 
|---|
| 142 |  | 
|---|
| 143 | LEX = `if [ -f $$r/flex/flex ] ; \ | 
|---|
| 144 | then echo $$r/flex/flex ; \ | 
|---|
| 145 | else echo ${DEFAULT_LEX} ; fi` | 
|---|
| 146 |  | 
|---|
| 147 | M4 = `if [ -f $$r/m4/m4 ] ; \ | 
|---|
| 148 | then echo $$r/m4/m4 ; \ | 
|---|
| 149 | else echo ${DEFAULT_M4} ; fi` | 
|---|
| 150 |  | 
|---|
| 151 | # For an installed makeinfo, we require it to be from texinfo 4 or | 
|---|
| 152 | # higher, else we use the "missing" dummy. | 
|---|
| 153 | MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \ | 
|---|
| 154 | then echo $$r/texinfo/makeinfo/makeinfo ; \ | 
|---|
| 155 | else if (makeinfo --version \ | 
|---|
| 156 | | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \ | 
|---|
| 157 | then echo makeinfo; else echo $$s/missing makeinfo; fi; fi` | 
|---|
| 158 |  | 
|---|
| 159 | # This just becomes part of the MAKEINFO definition passed down to | 
|---|
| 160 | # sub-makes.  It lets flags be given on the command line while still | 
|---|
| 161 | # using the makeinfo from the object tree. | 
|---|
| 162 | MAKEINFOFLAGS = | 
|---|
| 163 |  | 
|---|
| 164 | EXPECT = `if [ -f $$r/expect/expect ] ; \ | 
|---|
| 165 | then echo $$r/expect/expect ; \ | 
|---|
| 166 | else echo expect ; fi` | 
|---|
| 167 |  | 
|---|
| 168 | RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \ | 
|---|
| 169 | then echo $$s/dejagnu/runtest ; \ | 
|---|
| 170 | else echo runtest ; fi` | 
|---|
| 171 |  | 
|---|
| 172 |  | 
|---|
| 173 | # compilers to use to create programs which must be run in the build | 
|---|
| 174 | # environment. | 
|---|
| 175 | CC_FOR_BUILD = $(CC) | 
|---|
| 176 | CXX_FOR_BUILD = $(CXX) | 
|---|
| 177 |  | 
|---|
| 178 | SUBDIRS = "this is set via configure, don't edit this" | 
|---|
| 179 | OTHERS = | 
|---|
| 180 |  | 
|---|
| 181 | # This is set by the configure script to the list of directories which | 
|---|
| 182 | # should be built using the target tools. | 
|---|
| 183 | TARGET_CONFIGDIRS = libiberty libgloss $(SPECIAL_LIBS) newlib librx winsup opcodes bsp libstub cygmon libf2c libobjc | 
|---|
| 184 |  | 
|---|
| 185 | # Target libraries are put under this directory: | 
|---|
| 186 | # Changed by configure to $(target_alias) if cross. | 
|---|
| 187 | TARGET_SUBDIR = . | 
|---|
| 188 |  | 
|---|
| 189 | BUILD_CONFIGDIRS = libiberty | 
|---|
| 190 | BUILD_SUBDIR = . | 
|---|
| 191 |  | 
|---|
| 192 | # This is set by the configure script to the arguments to use when configuring | 
|---|
| 193 | # directories built for the target. | 
|---|
| 194 | TARGET_CONFIGARGS = | 
|---|
| 195 |  | 
|---|
| 196 | # This is set by the configure script to the arguments to use when configuring | 
|---|
| 197 | # directories built for the build system. | 
|---|
| 198 | BUILD_CONFIGARGS = | 
|---|
| 199 |  | 
|---|
| 200 | # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared | 
|---|
| 201 | # was used. | 
|---|
| 202 | SET_LIB_PATH = | 
|---|
| 203 |  | 
|---|
| 204 | # This is the name of the environment variable used for the path to | 
|---|
| 205 | # the libraries.  This may be changed by configure.in. | 
|---|
| 206 | RPATH_ENVVAR = LD_LIBRARY_PATH | 
|---|
| 207 |  | 
|---|
| 208 | # This is the list of directories that may be needed in RPATH_ENVVAR | 
|---|
| 209 | # so that programs built for the host machine work. | 
|---|
| 210 | HOST_LIB_PATH = $$r/bfd:$$r/opcodes | 
|---|
| 211 |  | 
|---|
| 212 | # This is the list of directories that may be needed in RPATH_ENVVAR | 
|---|
| 213 | # so that prorgams built for the target machine work. | 
|---|
| 214 | TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs: | 
|---|
| 215 |  | 
|---|
| 216 | # configure.in sets SET_LIB_PATH to this if --enable-shared was used. | 
|---|
| 217 | # Some platforms don't like blank entries, so we remove duplicate, | 
|---|
| 218 | # leading and trailing colons. | 
|---|
| 219 | REALLY_SET_LIB_PATH = \ | 
|---|
| 220 | $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); | 
|---|
| 221 |  | 
|---|
| 222 | ALL = all.normal | 
|---|
| 223 | INSTALL_TARGET = installdirs \ | 
|---|
| 224 | install-gcc \ | 
|---|
| 225 | $(INSTALL_MODULES) \ | 
|---|
| 226 | $(INSTALL_TARGET_MODULES) \ | 
|---|
| 227 | $(INSTALL_X11_MODULES) \ | 
|---|
| 228 | $(INSTALL_DOSREL) | 
|---|
| 229 |  | 
|---|
| 230 | INSTALL_TARGET_CROSS = installdirs \ | 
|---|
| 231 | install-gcc-cross \ | 
|---|
| 232 | $(INSTALL_MODULES) \ | 
|---|
| 233 | $(INSTALL_TARGET_MODULES) \ | 
|---|
| 234 | $(INSTALL_X11_MODULES) \ | 
|---|
| 235 | $(INSTALL_DOSREL) | 
|---|
| 236 |  | 
|---|
| 237 | # Should be substed by configure.in | 
|---|
| 238 | FLAGS_FOR_TARGET = | 
|---|
| 239 | CC_FOR_TARGET = | 
|---|
| 240 | CXX_FOR_TARGET = | 
|---|
| 241 | CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = | 
|---|
| 242 | GCJ_FOR_TARGET = | 
|---|
| 243 |  | 
|---|
| 244 | # If GCC_FOR_TARGET is not overriden on the command line, then this | 
|---|
| 245 | # variable is passed down to the gcc Makefile, where it is used to | 
|---|
| 246 | # build libgcc2.a.  We define it here so that it can itself be | 
|---|
| 247 | # overridden on the command line. | 
|---|
| 248 | GCC_FOR_TARGET = $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET) | 
|---|
| 249 |  | 
|---|
| 250 | AS_FOR_TARGET = ` \ | 
|---|
| 251 | if [ -f $$r/gas/as-new ] ; then \ | 
|---|
| 252 | echo $$r/gas/as-new ; \ | 
|---|
| 253 | elif [ -f $$r/gcc/xgcc ]; then \ | 
|---|
| 254 | $(CC_FOR_TARGET) -print-prog-name=as ; \ | 
|---|
| 255 | else \ | 
|---|
| 256 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ | 
|---|
| 257 | echo $(AS); \ | 
|---|
| 258 | else \ | 
|---|
| 259 | t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \ | 
|---|
| 260 | fi; \ | 
|---|
| 261 | fi` | 
|---|
| 262 |  | 
|---|
| 263 | LD_FOR_TARGET = ` \ | 
|---|
| 264 | if [ -f $$r/ld/ld-new ] ; then \ | 
|---|
| 265 | echo $$r/ld/ld-new ; \ | 
|---|
| 266 | elif [ -f $$r/gcc/xgcc ]; then \ | 
|---|
| 267 | $(CC_FOR_TARGET) -print-prog-name=ld ; \ | 
|---|
| 268 | else \ | 
|---|
| 269 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ | 
|---|
| 270 | echo $(LD); \ | 
|---|
| 271 | else \ | 
|---|
| 272 | t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \ | 
|---|
| 273 | fi; \ | 
|---|
| 274 | fi` | 
|---|
| 275 |  | 
|---|
| 276 | DLLTOOL_FOR_TARGET = ` \ | 
|---|
| 277 | if [ -f $$r/binutils/dlltool ] ; then \ | 
|---|
| 278 | echo $$r/binutils/dlltool ; \ | 
|---|
| 279 | else \ | 
|---|
| 280 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ | 
|---|
| 281 | echo $(DLLTOOL); \ | 
|---|
| 282 | else \ | 
|---|
| 283 | t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \ | 
|---|
| 284 | fi; \ | 
|---|
| 285 | fi` | 
|---|
| 286 |  | 
|---|
| 287 | WINDRES_FOR_TARGET = ` \ | 
|---|
| 288 | if [ -f $$r/binutils/windres ] ; then \ | 
|---|
| 289 | echo $$r/binutils/windres ; \ | 
|---|
| 290 | else \ | 
|---|
| 291 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ | 
|---|
| 292 | echo $(WINDRES); \ | 
|---|
| 293 | else \ | 
|---|
| 294 | t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \ | 
|---|
| 295 | fi; \ | 
|---|
| 296 | fi` | 
|---|
| 297 |  | 
|---|
| 298 | AR_FOR_TARGET = ` \ | 
|---|
| 299 | if [ -f $$r/binutils/ar ] ; then \ | 
|---|
| 300 | echo $$r/binutils/ar ; \ | 
|---|
| 301 | else \ | 
|---|
| 302 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ | 
|---|
| 303 | echo $(AR); \ | 
|---|
| 304 | else \ | 
|---|
| 305 | t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \ | 
|---|
| 306 | fi; \ | 
|---|
| 307 | fi` | 
|---|
| 308 |  | 
|---|
| 309 | RANLIB_FOR_TARGET = ` \ | 
|---|
| 310 | if [ -f $$r/binutils/ranlib ] ; then \ | 
|---|
| 311 | echo $$r/binutils/ranlib ; \ | 
|---|
| 312 | else \ | 
|---|
| 313 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ | 
|---|
| 314 | if [ x'$(RANLIB)' != x ]; then \ | 
|---|
| 315 | echo $(RANLIB); \ | 
|---|
| 316 | else \ | 
|---|
| 317 | echo ranlib; \ | 
|---|
| 318 | fi; \ | 
|---|
| 319 | else \ | 
|---|
| 320 | t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \ | 
|---|
| 321 | fi; \ | 
|---|
| 322 | fi` | 
|---|
| 323 |  | 
|---|
| 324 | NM_FOR_TARGET = ` \ | 
|---|
| 325 | if [ -f $$r/binutils/nm-new ] ; then \ | 
|---|
| 326 | echo $$r/binutils/nm-new ; \ | 
|---|
| 327 | elif [ -f $$r/gcc/xgcc ]; then \ | 
|---|
| 328 | $(CC_FOR_TARGET) -print-prog-name=nm ; \ | 
|---|
| 329 | else \ | 
|---|
| 330 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ | 
|---|
| 331 | echo $(NM); \ | 
|---|
| 332 | else \ | 
|---|
| 333 | t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \ | 
|---|
| 334 | fi; \ | 
|---|
| 335 | fi` | 
|---|
| 336 |  | 
|---|
| 337 | # The first rule in the file had better be this one.  Don't put any above it. | 
|---|
| 338 | # This lives here to allow makefile fragments to contain dependencies. | 
|---|
| 339 | all: all.normal | 
|---|
| 340 | .PHONY: all | 
|---|
| 341 |  | 
|---|
| 342 | # These can be overridden by config/mt-*. | 
|---|
| 343 | # The _TARGET_ is because they're specified in mt-foo. | 
|---|
| 344 | # The _HOST_ is because they're programs that run on the host. | 
|---|
| 345 | EXTRA_TARGET_HOST_ALL_MODULES = | 
|---|
| 346 | EXTRA_TARGET_HOST_INSTALL_MODULES = | 
|---|
| 347 | EXTRA_TARGET_HOST_CHECK_MODULES = | 
|---|
| 348 |  | 
|---|
| 349 | #### host and target specific makefile fragments come in here. | 
|---|
| 350 | ### | 
|---|
| 351 |  | 
|---|
| 352 | # Flags to pass down to all sub-makes. | 
|---|
| 353 | # Please keep these in alphabetical order. | 
|---|
| 354 | BASE_FLAGS_TO_PASS = \ | 
|---|
| 355 | "AR_FLAGS=$(AR_FLAGS)" \ | 
|---|
| 356 | "AR_FOR_TARGET=$(AR_FOR_TARGET)" \ | 
|---|
| 357 | "AS_FOR_TARGET=$(AS_FOR_TARGET)" \ | 
|---|
| 358 | "BISON=$(BISON)" \ | 
|---|
| 359 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ | 
|---|
| 360 | "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ | 
|---|
| 361 | "CFLAGS=$(CFLAGS)" \ | 
|---|
| 362 | "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ | 
|---|
| 363 | "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \ | 
|---|
| 364 | "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ | 
|---|
| 365 | "CXXFLAGS=$(CXXFLAGS)" \ | 
|---|
| 366 | "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \ | 
|---|
| 367 | "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \ | 
|---|
| 368 | "DESTDIR=$(DESTDIR)" \ | 
|---|
| 369 | "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \ | 
|---|
| 370 | "INSTALL=$(INSTALL)" \ | 
|---|
| 371 | "INSTALL_DATA=$(INSTALL_DATA)" \ | 
|---|
| 372 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | 
|---|
| 373 | "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ | 
|---|
| 374 | "LDFLAGS=$(LDFLAGS)" \ | 
|---|
| 375 | "LEX=$(LEX)" \ | 
|---|
| 376 | "LD_FOR_TARGET=$(LD_FOR_TARGET)" \ | 
|---|
| 377 | "LIBCFLAGS=$(LIBCFLAGS)" \ | 
|---|
| 378 | "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \ | 
|---|
| 379 | "LIBCXXFLAGS=$(LIBCXXFLAGS)" \ | 
|---|
| 380 | "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \ | 
|---|
| 381 | "M4=$(M4)" \ | 
|---|
| 382 | "MAKE=$(MAKE)" \ | 
|---|
| 383 | "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ | 
|---|
| 384 | "NM_FOR_TARGET=$(NM_FOR_TARGET)" \ | 
|---|
| 385 | "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \ | 
|---|
| 386 | "RPATH_ENVVAR=$(RPATH_ENVVAR)" \ | 
|---|
| 387 | "SHELL=$(SHELL)" \ | 
|---|
| 388 | "EXPECT=$(EXPECT)" \ | 
|---|
| 389 | "RUNTEST=$(RUNTEST)" \ | 
|---|
| 390 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ | 
|---|
| 391 | "TARGET_SUBDIR=$(TARGET_SUBDIR)" \ | 
|---|
| 392 | "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \ | 
|---|
| 393 | "YACC=$(YACC)" \ | 
|---|
| 394 | "bindir=$(bindir)" \ | 
|---|
| 395 | "datadir=$(datadir)" \ | 
|---|
| 396 | "exec_prefix=$(exec_prefix)" \ | 
|---|
| 397 | "includedir=$(includedir)" \ | 
|---|
| 398 | "infodir=$(infodir)" \ | 
|---|
| 399 | "libdir=$(libdir)" \ | 
|---|
| 400 | "libexecdir=$(libexecdir)" \ | 
|---|
| 401 | "lispdir=$(lispdir)" \ | 
|---|
| 402 | "libstdcxx_incdir=$(libstdcxx_incdir)" \ | 
|---|
| 403 | "libsubdir=$(libsubdir)" \ | 
|---|
| 404 | "localstatedir=$(localstatedir)" \ | 
|---|
| 405 | "mandir=$(mandir)" \ | 
|---|
| 406 | "oldincludedir=$(oldincludedir)" \ | 
|---|
| 407 | "prefix=$(prefix)" \ | 
|---|
| 408 | "sbindir=$(sbindir)" \ | 
|---|
| 409 | "sharedstatedir=$(sharedstatedir)" \ | 
|---|
| 410 | "sysconfdir=$(sysconfdir)" \ | 
|---|
| 411 | "tooldir=$(tooldir)" \ | 
|---|
| 412 | "build_tooldir=$(build_tooldir)" \ | 
|---|
| 413 | "gxx_include_dir=$(gxx_include_dir)" \ | 
|---|
| 414 | "gcc_version=$(gcc_version)" \ | 
|---|
| 415 | "gcc_version_trigger=$(gcc_version_trigger)" \ | 
|---|
| 416 | "target_alias=$(target_alias)" | 
|---|
| 417 |  | 
|---|
| 418 | # For any flags above that may contain shell code that varies from one | 
|---|
| 419 | # target library to another.  When doing recursive invocations of the | 
|---|
| 420 | # top-level Makefile, we don't want the outer make to evaluate them, | 
|---|
| 421 | # so we pass these variables down unchanged.  They must not contain | 
|---|
| 422 | # single nor double quotes. | 
|---|
| 423 | RECURSE_FLAGS = \ | 
|---|
| 424 | CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' | 
|---|
| 425 |  | 
|---|
| 426 | # Flags to pass down to most sub-makes, in which we're building with | 
|---|
| 427 | # the host environment. | 
|---|
| 428 | # If any variables are added here, they must be added to do-*, below. | 
|---|
| 429 | EXTRA_HOST_FLAGS = \ | 
|---|
| 430 | 'AR=$(AR)' \ | 
|---|
| 431 | 'AS=$(AS)' \ | 
|---|
| 432 | 'CC=$(CC)' \ | 
|---|
| 433 | 'CXX=$(CXX)' \ | 
|---|
| 434 | 'DLLTOOL=$(DLLTOOL)' \ | 
|---|
| 435 | 'LD=$(LD)' \ | 
|---|
| 436 | 'NM=$(NM)' \ | 
|---|
| 437 | "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \ | 
|---|
| 438 | 'WINDRES=$(WINDRES)' | 
|---|
| 439 |  | 
|---|
| 440 | FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) | 
|---|
| 441 |  | 
|---|
| 442 | # Flags that are concerned with the location of the X11 include files | 
|---|
| 443 | # and library files | 
|---|
| 444 | # | 
|---|
| 445 | # NOTE: until the top-level is getting the values via autoconf, it only | 
|---|
| 446 | # causes problems to have this top-level Makefile overriding the autoconf-set | 
|---|
| 447 | # values in child directories.  Only variables that don't conflict with | 
|---|
| 448 | # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now. | 
|---|
| 449 | # | 
|---|
| 450 | X11_FLAGS_TO_PASS = \ | 
|---|
| 451 | 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \ | 
|---|
| 452 | 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)' | 
|---|
| 453 |  | 
|---|
| 454 | # Flags to pass down to makes which are built with the target environment. | 
|---|
| 455 | # The double $ decreases the length of the command line; the variables | 
|---|
| 456 | # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. | 
|---|
| 457 | # If any variables are added here, they must be added to do-*, below. | 
|---|
| 458 | EXTRA_TARGET_FLAGS = \ | 
|---|
| 459 | 'AR=$$(AR_FOR_TARGET)' \ | 
|---|
| 460 | 'AS=$$(AS_FOR_TARGET)' \ | 
|---|
| 461 | 'CC=$$(CC_FOR_TARGET)' \ | 
|---|
| 462 | 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \ | 
|---|
| 463 | 'CXX=$$(CXX_FOR_TARGET)' \ | 
|---|
| 464 | 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \ | 
|---|
| 465 | 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ | 
|---|
| 466 | 'LD=$$(LD_FOR_TARGET)' \ | 
|---|
| 467 | 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \ | 
|---|
| 468 | 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \ | 
|---|
| 469 | 'NM=$$(NM_FOR_TARGET)' \ | 
|---|
| 470 | 'RANLIB=$$(RANLIB_FOR_TARGET)' \ | 
|---|
| 471 | 'WINDRES=$$(WINDRES_FOR_TARGET)' | 
|---|
| 472 |  | 
|---|
| 473 | TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) | 
|---|
| 474 |  | 
|---|
| 475 | # Flags to pass down to gcc.  gcc builds a library, libgcc.a, so it | 
|---|
| 476 | # unfortunately needs the native compiler and the target ar and | 
|---|
| 477 | # ranlib. | 
|---|
| 478 | # If any variables are added here, they must be added to do-*, below. | 
|---|
| 479 | # The HOST_* variables are a special case, which are used for the gcc | 
|---|
| 480 | # cross-building scheme. | 
|---|
| 481 | EXTRA_GCC_FLAGS = \ | 
|---|
| 482 | 'AR=$(AR)' \ | 
|---|
| 483 | 'AS=$(AS)' \ | 
|---|
| 484 | 'CC=$(CC)' \ | 
|---|
| 485 | 'CXX=$(CXX)' \ | 
|---|
| 486 | 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ | 
|---|
| 487 | 'HOST_CC=$(CC_FOR_BUILD)' \ | 
|---|
| 488 | 'HOST_PREFIX=$(HOST_PREFIX)' \ | 
|---|
| 489 | 'HOST_PREFIX_1=$(HOST_PREFIX_1)' \ | 
|---|
| 490 | 'NM=$(NM)' \ | 
|---|
| 491 | "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \ | 
|---|
| 492 | 'WINDRES=$$(WINDRES_FOR_TARGET)' \ | 
|---|
| 493 | "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \ | 
|---|
| 494 | "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ | 
|---|
| 495 | "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \ | 
|---|
| 496 | "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \ | 
|---|
| 497 | "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \ | 
|---|
| 498 | "`echo 'LIBGCC1_TEST=$(LIBGCC1_TEST)' | sed -e s/.*=$$/XFOO=/`" \ | 
|---|
| 499 | "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \ | 
|---|
| 500 | "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \ | 
|---|
| 501 | "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \ | 
|---|
| 502 | "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \ | 
|---|
| 503 | "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \ | 
|---|
| 504 | "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" | 
|---|
| 505 |  | 
|---|
| 506 | GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) | 
|---|
| 507 |  | 
|---|
| 508 | # This is a list of the targets for all of the modules which are compiled | 
|---|
| 509 | # using the build machine's native compiler.  Configure edits the second | 
|---|
| 510 | # macro for build!=host builds. | 
|---|
| 511 | ALL_BUILD_MODULES_LIST = \ | 
|---|
| 512 | all-build-libiberty | 
|---|
| 513 | ALL_BUILD_MODULES = | 
|---|
| 514 |  | 
|---|
| 515 | # This is a list of the configure targets for all of the modules which | 
|---|
| 516 | # are compiled using the native tools. | 
|---|
| 517 | CONFIGURE_BUILD_MODULES = \ | 
|---|
| 518 | configure-build-libiberty | 
|---|
| 519 |  | 
|---|
| 520 | # This is a list of the targets for all of the modules which are compiled | 
|---|
| 521 | # using $(FLAGS_TO_PASS). | 
|---|
| 522 | ALL_MODULES = \ | 
|---|
| 523 | all-apache \ | 
|---|
| 524 | all-ash \ | 
|---|
| 525 | all-autoconf \ | 
|---|
| 526 | all-automake \ | 
|---|
| 527 | all-bash \ | 
|---|
| 528 | all-bfd \ | 
|---|
| 529 | all-binutils \ | 
|---|
| 530 | all-bison \ | 
|---|
| 531 | all-byacc \ | 
|---|
| 532 | all-bzip2 \ | 
|---|
| 533 | all-cgen \ | 
|---|
| 534 | all-cvssrc \ | 
|---|
| 535 | all-db \ | 
|---|
| 536 | all-dejagnu \ | 
|---|
| 537 | all-diff \ | 
|---|
| 538 | all-dosutils \ | 
|---|
| 539 | all-etc \ | 
|---|
| 540 | all-fastjar \ | 
|---|
| 541 | all-fileutils \ | 
|---|
| 542 | all-findutils \ | 
|---|
| 543 | all-find \ | 
|---|
| 544 | all-flex \ | 
|---|
| 545 | all-gas \ | 
|---|
| 546 | all-gawk \ | 
|---|
| 547 | all-gettext \ | 
|---|
| 548 | all-gnuserv \ | 
|---|
| 549 | all-gprof \ | 
|---|
| 550 | all-grep \ | 
|---|
| 551 | all-grez \ | 
|---|
| 552 | all-gzip \ | 
|---|
| 553 | all-hello \ | 
|---|
| 554 | all-indent \ | 
|---|
| 555 | all-inet \ | 
|---|
| 556 | all-intl \ | 
|---|
| 557 | all-ispell \ | 
|---|
| 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-opcodes \ | 
|---|
| 567 | all-patch \ | 
|---|
| 568 | all-perl \ | 
|---|
| 569 | all-prms \ | 
|---|
| 570 | all-rcs \ | 
|---|
| 571 | all-readline \ | 
|---|
| 572 | all-release \ | 
|---|
| 573 | all-recode \ | 
|---|
| 574 | all-sed \ | 
|---|
| 575 | all-send-pr \ | 
|---|
| 576 | all-shellutils \ | 
|---|
| 577 | all-sid \ | 
|---|
| 578 | all-sim \ | 
|---|
| 579 | all-snavigator \ | 
|---|
| 580 | all-tar \ | 
|---|
| 581 | all-tcl \ | 
|---|
| 582 | all-tcl8.1 \ | 
|---|
| 583 | all-texinfo \ | 
|---|
| 584 | all-textutils \ | 
|---|
| 585 | all-tgas \ | 
|---|
| 586 | all-time \ | 
|---|
| 587 | all-uudecode \ | 
|---|
| 588 | all-wdiff \ | 
|---|
| 589 | all-zip \ | 
|---|
| 590 | all-zlib \ | 
|---|
| 591 | $(EXTRA_TARGET_HOST_ALL_MODULES) | 
|---|
| 592 |  | 
|---|
| 593 | # This is a list of the check targets for all of the modules which are | 
|---|
| 594 | # compiled using $(FLAGS_TO_PASS). | 
|---|
| 595 | # | 
|---|
| 596 | # The list is in two parts.  The first lists those tools which | 
|---|
| 597 | # are tested as part of the host's native tool-chain, and not | 
|---|
| 598 | # tested in a cross configuration. | 
|---|
| 599 | NATIVE_CHECK_MODULES = \ | 
|---|
| 600 | check-bison \ | 
|---|
| 601 | check-byacc \ | 
|---|
| 602 | check-fastjar \ | 
|---|
| 603 | check-flex \ | 
|---|
| 604 | check-zip | 
|---|
| 605 |  | 
|---|
| 606 | CROSS_CHECK_MODULES = \ | 
|---|
| 607 | check-apache \ | 
|---|
| 608 | check-ash \ | 
|---|
| 609 | check-autoconf \ | 
|---|
| 610 | check-automake \ | 
|---|
| 611 | check-bash \ | 
|---|
| 612 | check-bfd \ | 
|---|
| 613 | check-binutils \ | 
|---|
| 614 | check-bzip2 \ | 
|---|
| 615 | check-cgen \ | 
|---|
| 616 | check-cvssrc \ | 
|---|
| 617 | check-db \ | 
|---|
| 618 | check-dejagnu \ | 
|---|
| 619 | check-diff \ | 
|---|
| 620 | check-etc \ | 
|---|
| 621 | check-fileutils \ | 
|---|
| 622 | check-findutils \ | 
|---|
| 623 | check-find \ | 
|---|
| 624 | check-gas \ | 
|---|
| 625 | check-gawk \ | 
|---|
| 626 | check-gettext \ | 
|---|
| 627 | check-gnuserv \ | 
|---|
| 628 | check-gprof \ | 
|---|
| 629 | check-grep \ | 
|---|
| 630 | check-gzip \ | 
|---|
| 631 | check-hello \ | 
|---|
| 632 | check-indent \ | 
|---|
| 633 | check-inet \ | 
|---|
| 634 | check-intl \ | 
|---|
| 635 | check-ispell \ | 
|---|
| 636 | check-itcl \ | 
|---|
| 637 | check-ld \ | 
|---|
| 638 | check-libgui \ | 
|---|
| 639 | check-libiberty \ | 
|---|
| 640 | check-libtool \ | 
|---|
| 641 | check-m4 \ | 
|---|
| 642 | check-make \ | 
|---|
| 643 | check-mmcheckoc \ | 
|---|
| 644 | check-opcodes \ | 
|---|
| 645 | check-patch \ | 
|---|
| 646 | check-perl \ | 
|---|
| 647 | check-prms \ | 
|---|
| 648 | check-rcs \ | 
|---|
| 649 | check-readline \ | 
|---|
| 650 | check-recode \ | 
|---|
| 651 | check-sed \ | 
|---|
| 652 | check-send-pr \ | 
|---|
| 653 | check-shellutils \ | 
|---|
| 654 | check-snavigator \ | 
|---|
| 655 | check-sid \ | 
|---|
| 656 | check-sim \ | 
|---|
| 657 | check-tar \ | 
|---|
| 658 | check-tcl \ | 
|---|
| 659 | check-texinfo \ | 
|---|
| 660 | check-textutils \ | 
|---|
| 661 | check-tgas \ | 
|---|
| 662 | check-time \ | 
|---|
| 663 | check-uudecode \ | 
|---|
| 664 | check-wdiff \ | 
|---|
| 665 | $(EXTRA_TARGET_HOST_CHECK_MODULES) | 
|---|
| 666 |  | 
|---|
| 667 | CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES) | 
|---|
| 668 |  | 
|---|
| 669 | # This is a list of the install targets for all of the modules which are | 
|---|
| 670 | # compiled using $(FLAGS_TO_PASS). | 
|---|
| 671 | # We put install-opcodes before install-binutils because the installed | 
|---|
| 672 | # binutils might be on PATH, and they might need the shared opcodes | 
|---|
| 673 | # library. | 
|---|
| 674 | # We put install-tcl before install-itcl because itcl wants to run a | 
|---|
| 675 | # program on installation which uses the Tcl libraries. | 
|---|
| 676 | INSTALL_MODULES = \ | 
|---|
| 677 | install-apache \ | 
|---|
| 678 | install-ash \ | 
|---|
| 679 | install-autoconf \ | 
|---|
| 680 | install-automake \ | 
|---|
| 681 | install-bash \ | 
|---|
| 682 | install-bfd \ | 
|---|
| 683 | install-bzip2 \ | 
|---|
| 684 | install-opcodes \ | 
|---|
| 685 | install-binutils \ | 
|---|
| 686 | install-bison \ | 
|---|
| 687 | install-byacc \ | 
|---|
| 688 | install-cgen \ | 
|---|
| 689 | install-cvssrc \ | 
|---|
| 690 | install-db \ | 
|---|
| 691 | install-dejagnu \ | 
|---|
| 692 | install-diff \ | 
|---|
| 693 | install-dosutils \ | 
|---|
| 694 | install-etc \ | 
|---|
| 695 | install-fastjar \ | 
|---|
| 696 | install-fileutils \ | 
|---|
| 697 | install-findutils \ | 
|---|
| 698 | install-find \ | 
|---|
| 699 | install-flex \ | 
|---|
| 700 | install-gas \ | 
|---|
| 701 | install-gawk \ | 
|---|
| 702 | install-gettext \ | 
|---|
| 703 | install-gnuserv \ | 
|---|
| 704 | install-gprof \ | 
|---|
| 705 | install-grep \ | 
|---|
| 706 | install-grez \ | 
|---|
| 707 | install-gzip \ | 
|---|
| 708 | install-hello \ | 
|---|
| 709 | install-indent \ | 
|---|
| 710 | install-inet \ | 
|---|
| 711 | install-intl \ | 
|---|
| 712 | install-ispell \ | 
|---|
| 713 | install-tcl \ | 
|---|
| 714 | install-tcl8.1 \ | 
|---|
| 715 | install-itcl \ | 
|---|
| 716 | install-ld \ | 
|---|
| 717 | install-libgui \ | 
|---|
| 718 | install-libiberty \ | 
|---|
| 719 | install-libtool \ | 
|---|
| 720 | install-m4 \ | 
|---|
| 721 | install-make \ | 
|---|
| 722 | install-mmalloc \ | 
|---|
| 723 | install-patch \ | 
|---|
| 724 | install-perl \ | 
|---|
| 725 | install-prms \ | 
|---|
| 726 | install-rcs \ | 
|---|
| 727 | install-readline \ | 
|---|
| 728 | install-recode \ | 
|---|
| 729 | install-sed \ | 
|---|
| 730 | install-send-pr \ | 
|---|
| 731 | install-shellutils \ | 
|---|
| 732 | install-sid \ | 
|---|
| 733 | install-sim \ | 
|---|
| 734 | install-snavigator \ | 
|---|
| 735 | install-tar \ | 
|---|
| 736 | install-textutils \ | 
|---|
| 737 | install-tgas \ | 
|---|
| 738 | install-time \ | 
|---|
| 739 | install-uudecode \ | 
|---|
| 740 | install-wdiff \ | 
|---|
| 741 | install-zip \ | 
|---|
| 742 | $(EXTRA_TARGET_HOST_INSTALL_MODULES) | 
|---|
| 743 |  | 
|---|
| 744 | # This is a list of the targets for all of the modules which are compiled | 
|---|
| 745 | # using $(X11_FLAGS_TO_PASS). | 
|---|
| 746 | ALL_X11_MODULES = \ | 
|---|
| 747 | all-emacs \ | 
|---|
| 748 | all-emacs19 \ | 
|---|
| 749 | all-gdb \ | 
|---|
| 750 | all-expect \ | 
|---|
| 751 | all-gash \ | 
|---|
| 752 | all-guile \ | 
|---|
| 753 | all-tclX \ | 
|---|
| 754 | all-tk \ | 
|---|
| 755 | all-tk8.1 \ | 
|---|
| 756 | all-tix | 
|---|
| 757 |  | 
|---|
| 758 | # This is a list of the check targets for all of the modules which are | 
|---|
| 759 | # compiled using $(X11_FLAGS_TO_PASS). | 
|---|
| 760 | CHECK_X11_MODULES = \ | 
|---|
| 761 | check-emacs \ | 
|---|
| 762 | check-gdb \ | 
|---|
| 763 | check-guile \ | 
|---|
| 764 | check-expect \ | 
|---|
| 765 | check-gash \ | 
|---|
| 766 | check-tclX \ | 
|---|
| 767 | check-tk \ | 
|---|
| 768 | check-tix | 
|---|
| 769 |  | 
|---|
| 770 | # This is a list of the install targets for all the modules which are | 
|---|
| 771 | # compiled using $(X11_FLAGS_TO_PASS). | 
|---|
| 772 | INSTALL_X11_MODULES = \ | 
|---|
| 773 | install-emacs \ | 
|---|
| 774 | install-emacs19 \ | 
|---|
| 775 | install-gdb \ | 
|---|
| 776 | install-guile \ | 
|---|
| 777 | install-expect \ | 
|---|
| 778 | install-gash \ | 
|---|
| 779 | install-tclX \ | 
|---|
| 780 | install-tk \ | 
|---|
| 781 | install-tk8.1 \ | 
|---|
| 782 | install-tix | 
|---|
| 783 |  | 
|---|
| 784 | # This is a list of the targets for all of the modules which are compiled | 
|---|
| 785 | # using $(TARGET_FLAGS_TO_PASS). | 
|---|
| 786 | ALL_TARGET_MODULES = \ | 
|---|
| 787 | all-target-libstdc++-v3 \ | 
|---|
| 788 | all-target-librx \ | 
|---|
| 789 | all-target-newlib \ | 
|---|
| 790 | all-target-libf2c \ | 
|---|
| 791 | all-target-libobjc \ | 
|---|
| 792 | all-target-libtermcap \ | 
|---|
| 793 | all-target-winsup \ | 
|---|
| 794 | all-target-libgloss \ | 
|---|
| 795 | all-target-libiberty \ | 
|---|
| 796 | all-target-gperf \ | 
|---|
| 797 | all-target-examples \ | 
|---|
| 798 | all-target-libstub \ | 
|---|
| 799 | all-target-libffi \ | 
|---|
| 800 | all-target-libjava \ | 
|---|
| 801 | all-target-zlib \ | 
|---|
| 802 | all-target-boehm-gc \ | 
|---|
| 803 | all-target-qthreads \ | 
|---|
| 804 | all-target-bsp \ | 
|---|
| 805 | all-target-cygmon | 
|---|
| 806 |  | 
|---|
| 807 | # This is a list of the configure targets for all of the modules which | 
|---|
| 808 | # are compiled using the target tools. | 
|---|
| 809 | CONFIGURE_TARGET_MODULES = \ | 
|---|
| 810 | configure-target-libstdc++-v3 \ | 
|---|
| 811 | configure-target-librx \ | 
|---|
| 812 | configure-target-newlib \ | 
|---|
| 813 | configure-target-libf2c \ | 
|---|
| 814 | configure-target-libobjc \ | 
|---|
| 815 | configure-target-libtermcap \ | 
|---|
| 816 | configure-target-winsup \ | 
|---|
| 817 | configure-target-libgloss \ | 
|---|
| 818 | configure-target-libiberty \ | 
|---|
| 819 | configure-target-gperf \ | 
|---|
| 820 | configure-target-examples \ | 
|---|
| 821 | configure-target-libstub \ | 
|---|
| 822 | configure-target-libffi \ | 
|---|
| 823 | configure-target-libjava \ | 
|---|
| 824 | configure-target-zlib \ | 
|---|
| 825 | configure-target-boehm-gc \ | 
|---|
| 826 | configure-target-qthreads \ | 
|---|
| 827 | configure-target-bsp \ | 
|---|
| 828 | configure-target-cygmon | 
|---|
| 829 |  | 
|---|
| 830 | # This is a list of the check targets for all of the modules which are | 
|---|
| 831 | # compiled using $(TARGET_FLAGS_TO_PASS). | 
|---|
| 832 | CHECK_TARGET_MODULES = \ | 
|---|
| 833 | check-target-libstdc++-v3 \ | 
|---|
| 834 | check-target-newlib \ | 
|---|
| 835 | check-target-libf2c \ | 
|---|
| 836 | check-target-libobjc \ | 
|---|
| 837 | check-target-winsup \ | 
|---|
| 838 | check-target-libiberty \ | 
|---|
| 839 | check-target-libffi \ | 
|---|
| 840 | check-target-libjava \ | 
|---|
| 841 | check-target-zlib \ | 
|---|
| 842 | check-target-boehm-gc \ | 
|---|
| 843 | check-target-qthreads \ | 
|---|
| 844 | check-target-gperf | 
|---|
| 845 |  | 
|---|
| 846 | # This is a list of the install targets for all of the modules which are | 
|---|
| 847 | # compiled using $(TARGET_FLAGS_TO_PASS). | 
|---|
| 848 | INSTALL_TARGET_MODULES = \ | 
|---|
| 849 | install-target-libstdc++-v3 \ | 
|---|
| 850 | install-target-newlib \ | 
|---|
| 851 | install-target-libf2c \ | 
|---|
| 852 | install-target-libobjc \ | 
|---|
| 853 | install-target-libtermcap \ | 
|---|
| 854 | install-target-winsup \ | 
|---|
| 855 | install-target-libgloss \ | 
|---|
| 856 | install-target-libiberty \ | 
|---|
| 857 | install-target-bsp \ | 
|---|
| 858 | install-target-libjava \ | 
|---|
| 859 | install-target-zlib \ | 
|---|
| 860 | install-target-boehm-gc \ | 
|---|
| 861 | install-target-qthreads \ | 
|---|
| 862 | install-target-gperf | 
|---|
| 863 |  | 
|---|
| 864 | # This is a list of the targets for which we can do a clean-{target}. | 
|---|
| 865 | CLEAN_MODULES = \ | 
|---|
| 866 | clean-apache \ | 
|---|
| 867 | clean-ash \ | 
|---|
| 868 | clean-autoconf \ | 
|---|
| 869 | clean-automake \ | 
|---|
| 870 | clean-bash \ | 
|---|
| 871 | clean-bfd \ | 
|---|
| 872 | clean-binutils \ | 
|---|
| 873 | clean-bison \ | 
|---|
| 874 | clean-byacc \ | 
|---|
| 875 | clean-bzip2 \ | 
|---|
| 876 | clean-cgen \ | 
|---|
| 877 | clean-cvssrc \ | 
|---|
| 878 | clean-db \ | 
|---|
| 879 | clean-dejagnu \ | 
|---|
| 880 | clean-diff \ | 
|---|
| 881 | clean-dosutils \ | 
|---|
| 882 | clean-etc \ | 
|---|
| 883 | clean-fastjar \ | 
|---|
| 884 | clean-fileutils \ | 
|---|
| 885 | clean-findutils \ | 
|---|
| 886 | clean-find \ | 
|---|
| 887 | clean-flex \ | 
|---|
| 888 | clean-gas \ | 
|---|
| 889 | clean-gawk \ | 
|---|
| 890 | clean-gettext \ | 
|---|
| 891 | clean-gnuserv \ | 
|---|
| 892 | clean-gprof \ | 
|---|
| 893 | clean-grep \ | 
|---|
| 894 | clean-grez \ | 
|---|
| 895 | clean-gzip \ | 
|---|
| 896 | clean-hello \ | 
|---|
| 897 | clean-indent \ | 
|---|
| 898 | clean-inet \ | 
|---|
| 899 | clean-intl \ | 
|---|
| 900 | clean-ispell \ | 
|---|
| 901 | clean-itcl \ | 
|---|
| 902 | clean-ld \ | 
|---|
| 903 | clean-libgui \ | 
|---|
| 904 | clean-libiberty \ | 
|---|
| 905 | clean-libtool \ | 
|---|
| 906 | clean-m4 \ | 
|---|
| 907 | clean-make \ | 
|---|
| 908 | clean-mmalloc \ | 
|---|
| 909 | clean-opcodes \ | 
|---|
| 910 | clean-patch \ | 
|---|
| 911 | clean-perl \ | 
|---|
| 912 | clean-prms \ | 
|---|
| 913 | clean-rcs \ | 
|---|
| 914 | clean-readline \ | 
|---|
| 915 | clean-release \ | 
|---|
| 916 | clean-recode \ | 
|---|
| 917 | clean-sed \ | 
|---|
| 918 | clean-send-pr \ | 
|---|
| 919 | clean-shellutils \ | 
|---|
| 920 | clean-sid \ | 
|---|
| 921 | clean-sim \ | 
|---|
| 922 | clean-snavigator \ | 
|---|
| 923 | clean-tar \ | 
|---|
| 924 | clean-tcl \ | 
|---|
| 925 | clean-texinfo \ | 
|---|
| 926 | clean-textutils \ | 
|---|
| 927 | clean-tgas \ | 
|---|
| 928 | clean-time \ | 
|---|
| 929 | clean-uudecode \ | 
|---|
| 930 | clean-wdiff \ | 
|---|
| 931 | clean-zip \ | 
|---|
| 932 | clean-zlib | 
|---|
| 933 |  | 
|---|
| 934 | # All of the target modules that can be cleaned | 
|---|
| 935 | CLEAN_TARGET_MODULES = \ | 
|---|
| 936 | clean-target-libstdc++-v3 \ | 
|---|
| 937 | clean-target-librx \ | 
|---|
| 938 | clean-target-newlib \ | 
|---|
| 939 | clean-target-libf2c \ | 
|---|
| 940 | clean-target-libobjc \ | 
|---|
| 941 | clean-target-winsup \ | 
|---|
| 942 | clean-target-libgloss \ | 
|---|
| 943 | clean-target-libiberty \ | 
|---|
| 944 | clean-target-gperf \ | 
|---|
| 945 | clean-target-examples \ | 
|---|
| 946 | clean-target-libstub \ | 
|---|
| 947 | clean-target-libffi \ | 
|---|
| 948 | clean-target-libjava \ | 
|---|
| 949 | clean-target-zlib \ | 
|---|
| 950 | clean-target-boehm-gc \ | 
|---|
| 951 | clean-target-qthreads \ | 
|---|
| 952 | clean-target-bsp \ | 
|---|
| 953 | clean-target-cygmon | 
|---|
| 954 |  | 
|---|
| 955 | # All of the x11 modules that can be cleaned | 
|---|
| 956 | CLEAN_X11_MODULES = \ | 
|---|
| 957 | clean-emacs \ | 
|---|
| 958 | clean-emacs19 \ | 
|---|
| 959 | clean-gdb \ | 
|---|
| 960 | clean-expect \ | 
|---|
| 961 | clean-gash \ | 
|---|
| 962 | clean-guile \ | 
|---|
| 963 | clean-tclX \ | 
|---|
| 964 | clean-tk \ | 
|---|
| 965 | clean-tix | 
|---|
| 966 |  | 
|---|
| 967 | # The target built for a native build. | 
|---|
| 968 | .PHONY: all.normal | 
|---|
| 969 | all.normal: \ | 
|---|
| 970 | $(ALL_BUILD_MODULES) \ | 
|---|
| 971 | $(ALL_MODULES) \ | 
|---|
| 972 | $(ALL_X11_MODULES) \ | 
|---|
| 973 | $(ALL_TARGET_MODULES) \ | 
|---|
| 974 | all-gcc | 
|---|
| 975 |  | 
|---|
| 976 | # Do a target for all the subdirectories.  A ``make do-X'' will do a | 
|---|
| 977 | # ``make X'' in all subdirectories (because, in general, there is a | 
|---|
| 978 | # dependency (below) of X upon do-X, a ``make X'' will also do this, | 
|---|
| 979 | # but it may do additional work as well). | 
|---|
| 980 | # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once, | 
|---|
| 981 | # because it is so large that it can easily overflow the command line | 
|---|
| 982 | # length limit on some systems. | 
|---|
| 983 | DO_X = \ | 
|---|
| 984 | do-clean \ | 
|---|
| 985 | do-distclean \ | 
|---|
| 986 | do-dvi \ | 
|---|
| 987 | do-info \ | 
|---|
| 988 | do-install-info \ | 
|---|
| 989 | do-installcheck \ | 
|---|
| 990 | do-mostlyclean \ | 
|---|
| 991 | do-maintainer-clean \ | 
|---|
| 992 | do-TAGS | 
|---|
| 993 | .PHONY: $(DO_X) | 
|---|
| 994 | $(DO_X): | 
|---|
| 995 | @target=`echo $@ | sed -e 's/^do-//'`; \ | 
|---|
| 996 | r=`pwd`; export r; \ | 
|---|
| 997 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 998 | $(SET_LIB_PATH) \ | 
|---|
| 999 | for i in $(SUBDIRS) -dummy-; do \ | 
|---|
| 1000 | if [ -f ./$$i/Makefile ]; then \ | 
|---|
| 1001 | case $$i in \ | 
|---|
| 1002 | gcc) \ | 
|---|
| 1003 | for flag in $(EXTRA_GCC_FLAGS); do \ | 
|---|
| 1004 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | 
|---|
| 1005 | done; \ | 
|---|
| 1006 | ;; \ | 
|---|
| 1007 | *) \ | 
|---|
| 1008 | for flag in $(EXTRA_HOST_FLAGS); do \ | 
|---|
| 1009 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | 
|---|
| 1010 | done; \ | 
|---|
| 1011 | ;; \ | 
|---|
| 1012 | esac ; \ | 
|---|
| 1013 | if (cd ./$$i; \ | 
|---|
| 1014 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | 
|---|
| 1015 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | 
|---|
| 1016 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ | 
|---|
| 1017 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | 
|---|
| 1018 | $${target}); \ | 
|---|
| 1019 | then true; else exit 1; fi; \ | 
|---|
| 1020 | else true; fi; \ | 
|---|
| 1021 | done | 
|---|
| 1022 | @target=`echo $@ | sed -e 's/^do-//'`; \ | 
|---|
| 1023 | r=`pwd`; export r; \ | 
|---|
| 1024 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1025 | $(SET_LIB_PATH) \ | 
|---|
| 1026 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ | 
|---|
| 1027 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | 
|---|
| 1028 | for flag in $(EXTRA_TARGET_FLAGS); do \ | 
|---|
| 1029 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | 
|---|
| 1030 | done; \ | 
|---|
| 1031 | if (cd $(TARGET_SUBDIR)/$$i; \ | 
|---|
| 1032 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | 
|---|
| 1033 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | 
|---|
| 1034 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ | 
|---|
| 1035 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | 
|---|
| 1036 | $${target}); \ | 
|---|
| 1037 | then true; else exit 1; fi; \ | 
|---|
| 1038 | else true; fi; \ | 
|---|
| 1039 | done | 
|---|
| 1040 |  | 
|---|
| 1041 | # Here are the targets which correspond to the do-X targets. | 
|---|
| 1042 |  | 
|---|
| 1043 | .PHONY: info installcheck dvi install-info | 
|---|
| 1044 | .PHONY: clean distclean mostlyclean maintainer-clean realclean | 
|---|
| 1045 | .PHONY: local-clean local-distclean local-maintainer-clean | 
|---|
| 1046 | info: do-info | 
|---|
| 1047 | installcheck: do-installcheck | 
|---|
| 1048 | dvi: do-dvi | 
|---|
| 1049 |  | 
|---|
| 1050 | # Make sure makeinfo is built before we do a `make info'. | 
|---|
| 1051 | do-info: all-texinfo | 
|---|
| 1052 |  | 
|---|
| 1053 | install-info: do-install-info dir.info | 
|---|
| 1054 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1055 | if [ -f dir.info ] ; then \ | 
|---|
| 1056 | $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \ | 
|---|
| 1057 | else true ; fi | 
|---|
| 1058 |  | 
|---|
| 1059 | local-clean: | 
|---|
| 1060 | -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log | 
|---|
| 1061 |  | 
|---|
| 1062 | local-distclean: | 
|---|
| 1063 | -rm -f Makefile config.status config.cache mh-frag mt-frag | 
|---|
| 1064 | -if [ "$(TARGET_SUBDIR)" != "." ]; then \ | 
|---|
| 1065 | rm -rf $(TARGET_SUBDIR); \ | 
|---|
| 1066 | else true; fi | 
|---|
| 1067 | -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile | 
|---|
| 1068 | -rm -f texinfo/doc/Makefile texinfo/po/POTFILES | 
|---|
| 1069 | -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null | 
|---|
| 1070 | -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null | 
|---|
| 1071 | -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null | 
|---|
| 1072 |  | 
|---|
| 1073 | local-maintainer-clean: | 
|---|
| 1074 | @echo "This command is intended for maintainers to use;" | 
|---|
| 1075 | @echo "it deletes files that may require special tools to rebuild." | 
|---|
| 1076 |  | 
|---|
| 1077 | clean: do-clean local-clean | 
|---|
| 1078 | mostlyclean: do-mostlyclean local-clean | 
|---|
| 1079 | distclean: do-distclean local-clean local-distclean | 
|---|
| 1080 | maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean | 
|---|
| 1081 | maintainer-clean: local-distclean | 
|---|
| 1082 | realclean: maintainer-clean | 
|---|
| 1083 |  | 
|---|
| 1084 | # This rule is used to clean specific modules. | 
|---|
| 1085 | .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc | 
|---|
| 1086 | $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc: | 
|---|
| 1087 | @dir=`echo $@ | sed -e 's/clean-//'`; \ | 
|---|
| 1088 | if [ -f ./$${dir}/Makefile ] ; then \ | 
|---|
| 1089 | r=`pwd`; export r; \ | 
|---|
| 1090 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1091 | $(SET_LIB_PATH) \ | 
|---|
| 1092 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \ | 
|---|
| 1093 | else \ | 
|---|
| 1094 | true; \ | 
|---|
| 1095 | fi | 
|---|
| 1096 |  | 
|---|
| 1097 | .PHONY: $(CLEAN_TARGET_MODULES) | 
|---|
| 1098 | $(CLEAN_TARGET_MODULES): | 
|---|
| 1099 | @dir=`echo $@ | sed -e 's/clean-target-//'`; \ | 
|---|
| 1100 | rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \ | 
|---|
| 1101 | if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | 
|---|
| 1102 | r=`pwd`; export r; \ | 
|---|
| 1103 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1104 | $(SET_LIB_PATH) \ | 
|---|
| 1105 | (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \ | 
|---|
| 1106 | else \ | 
|---|
| 1107 | true; \ | 
|---|
| 1108 | fi | 
|---|
| 1109 |  | 
|---|
| 1110 | clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc | 
|---|
| 1111 | clean-target-libgcc: | 
|---|
| 1112 | test ! -d gcc/libgcc || \ | 
|---|
| 1113 | (cd gcc/libgcc && find . -type d -print) | \ | 
|---|
| 1114 | while read d; do rm -f gcc/$$d/libgcc.a || : ; done | 
|---|
| 1115 | -rm -rf gcc/libgcc | 
|---|
| 1116 |  | 
|---|
| 1117 | # Check target. | 
|---|
| 1118 |  | 
|---|
| 1119 | .PHONY: check do-check | 
|---|
| 1120 | check: | 
|---|
| 1121 | $(MAKE) do-check NOTPARALLEL=parallel-ok | 
|---|
| 1122 |  | 
|---|
| 1123 | do-check: $(CHECK_MODULES) \ | 
|---|
| 1124 | $(CHECK_TARGET_MODULES) \ | 
|---|
| 1125 | $(CHECK_X11_MODULES) \ | 
|---|
| 1126 | check-gcc | 
|---|
| 1127 |  | 
|---|
| 1128 | # Automated reporting of test results. | 
|---|
| 1129 |  | 
|---|
| 1130 | warning.log: build.log | 
|---|
| 1131 | $(srcdir)/contrib/warn_summary build.log > $@ | 
|---|
| 1132 |  | 
|---|
| 1133 | mail-report.log: | 
|---|
| 1134 | if test x'$(BOOT_CFLAGS)' != x''; then \ | 
|---|
| 1135 | BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ | 
|---|
| 1136 | fi; \ | 
|---|
| 1137 | $(srcdir)/contrib/test_summary -t >$@ | 
|---|
| 1138 | chmod +x $@ | 
|---|
| 1139 | echo If you really want to send e-mail, run ./$@ now | 
|---|
| 1140 |  | 
|---|
| 1141 | mail-report-with-warnings.log: warning.log | 
|---|
| 1142 | if test x'$(BOOT_CFLAGS)' != x''; then \ | 
|---|
| 1143 | BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ | 
|---|
| 1144 | fi; \ | 
|---|
| 1145 | $(srcdir)/contrib/test_summary -t -i warning.log >$@ | 
|---|
| 1146 | chmod +x $@ | 
|---|
| 1147 | echo If you really want to send e-mail, run ./$@ now | 
|---|
| 1148 |  | 
|---|
| 1149 | # Installation targets. | 
|---|
| 1150 |  | 
|---|
| 1151 | .PHONY: install install-cross uninstall source-vault binary-vault vault-install | 
|---|
| 1152 | install: $(INSTALL_TARGET) | 
|---|
| 1153 | install-cross: $(INSTALL_TARGET_CROSS) | 
|---|
| 1154 |  | 
|---|
| 1155 | uninstall: | 
|---|
| 1156 | @echo "the uninstall target is not supported in this tree" | 
|---|
| 1157 |  | 
|---|
| 1158 | source-vault: | 
|---|
| 1159 | $(MAKE) -f ./release/Build-A-Release \ | 
|---|
| 1160 | host=$(host_alias) source-vault | 
|---|
| 1161 |  | 
|---|
| 1162 | binary-vault: | 
|---|
| 1163 | $(MAKE) -f ./release/Build-A-Release \ | 
|---|
| 1164 | host=$(host_alias) target=$(target_alias) | 
|---|
| 1165 |  | 
|---|
| 1166 | vault-install: | 
|---|
| 1167 | @if [ -f ./release/vault-install ] ; then \ | 
|---|
| 1168 | ./release/vault-install $(host_alias) $(target_alias) ; \ | 
|---|
| 1169 | else \ | 
|---|
| 1170 | true ; \ | 
|---|
| 1171 | fi | 
|---|
| 1172 |  | 
|---|
| 1173 | .PHONY: install.all | 
|---|
| 1174 | install.all: install-no-fixedincludes | 
|---|
| 1175 | @if [ -f ./gcc/Makefile ] ; then \ | 
|---|
| 1176 | r=`pwd` ; export r ; \ | 
|---|
| 1177 | $(SET_LIB_PATH) \ | 
|---|
| 1178 | (cd ./gcc; \ | 
|---|
| 1179 | $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \ | 
|---|
| 1180 | else \ | 
|---|
| 1181 | true ; \ | 
|---|
| 1182 | fi | 
|---|
| 1183 |  | 
|---|
| 1184 | # inet-install is used because the I*Net wants DejaGNU installed but | 
|---|
| 1185 | # not built.  Similarly, gzip is built but not installed. | 
|---|
| 1186 | inet-install: | 
|---|
| 1187 | $(MAKE) INSTALL_MODULES="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install | 
|---|
| 1188 |  | 
|---|
| 1189 | # install-no-fixedincludes is used because Cygnus can not distribute | 
|---|
| 1190 | # the fixed header files. | 
|---|
| 1191 | .PHONY: install-no-fixedincludes | 
|---|
| 1192 | install-no-fixedincludes: \ | 
|---|
| 1193 | installdirs \ | 
|---|
| 1194 | $(INSTALL_MODULES) \ | 
|---|
| 1195 | $(INSTALL_TARGET_MODULES) \ | 
|---|
| 1196 | $(INSTALL_X11_MODULES) \ | 
|---|
| 1197 | gcc-no-fixedincludes | 
|---|
| 1198 |  | 
|---|
| 1199 | # Install the gcc headers files, but not the fixed include files, | 
|---|
| 1200 | # which Cygnus is not allowed to distribute.  This rule is very | 
|---|
| 1201 | # dependent on the workings of the gcc Makefile.in. | 
|---|
| 1202 | .PHONY: gcc-no-fixedincludes | 
|---|
| 1203 | gcc-no-fixedincludes: | 
|---|
| 1204 | @if [ -f ./gcc/Makefile ]; then \ | 
|---|
| 1205 | rm -rf gcc/tmp-include; \ | 
|---|
| 1206 | mv gcc/include gcc/tmp-include 2>/dev/null; \ | 
|---|
| 1207 | mkdir gcc/include; \ | 
|---|
| 1208 | cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \ | 
|---|
| 1209 | touch gcc/stmp-fixinc gcc/include/fixed; \ | 
|---|
| 1210 | rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \ | 
|---|
| 1211 | r=`pwd`; export r; \ | 
|---|
| 1212 | s=`cd $(srcdir); pwd` ; export s; \ | 
|---|
| 1213 | $(SET_LIB_PATH) \ | 
|---|
| 1214 | (cd ./gcc; \ | 
|---|
| 1215 | $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ | 
|---|
| 1216 | rm -rf gcc/include; \ | 
|---|
| 1217 | mv gcc/tmp-include gcc/include 2>/dev/null; \ | 
|---|
| 1218 | else true; fi | 
|---|
| 1219 |  | 
|---|
| 1220 | # This rule is used to build the modules which are built with the | 
|---|
| 1221 | # build machine's native compiler. | 
|---|
| 1222 | .PHONY: $(ALL_BUILD_MODULES) | 
|---|
| 1223 | $(ALL_BUILD_MODULES): | 
|---|
| 1224 | dir=`echo $@ | sed -e 's/all-build-//'`; \ | 
|---|
| 1225 | if [ -f ./$${dir}/Makefile ] ; then \ | 
|---|
| 1226 | r=`pwd`; export r; \ | 
|---|
| 1227 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1228 | (cd $(BUILD_SUBDIR)/$${dir} && $(MAKE) all); \ | 
|---|
| 1229 | else \ | 
|---|
| 1230 | true; \ | 
|---|
| 1231 | fi | 
|---|
| 1232 |  | 
|---|
| 1233 | # This rule is used to configure the modules which are built with the | 
|---|
| 1234 | # native tools. | 
|---|
| 1235 | .PHONY: $(CONFIGURE_BUILD_MODULES) | 
|---|
| 1236 | $(CONFIGURE_BUILD_MODULES): | 
|---|
| 1237 | @dir=`echo $@ | sed -e 's/configure-build-//'`; \ | 
|---|
| 1238 | if [ ! -d $(BUILD_SUBDIR) ]; then \ | 
|---|
| 1239 | true; \ | 
|---|
| 1240 | elif [ -f $(BUILD_SUBDIR)/$${dir}/Makefile ] ; then \ | 
|---|
| 1241 | true; \ | 
|---|
| 1242 | elif echo " $(BUILD_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \ | 
|---|
| 1243 | if [ -d $(srcdir)/$${dir} ]; then \ | 
|---|
| 1244 | [ -d $(BUILD_SUBDIR)/$${dir} ] || mkdir $(BUILD_SUBDIR)/$${dir};\ | 
|---|
| 1245 | r=`pwd`; export r; \ | 
|---|
| 1246 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1247 | AR="$(AR_FOR_BUILD)"; export AR; \ | 
|---|
| 1248 | AS="$(AS_FOR_BUILD)"; export AS; \ | 
|---|
| 1249 | CC="$(CC_FOR_BUILD)"; export CC; \ | 
|---|
| 1250 | CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \ | 
|---|
| 1251 | CXX="$(CXX_FOR_BUILD)"; export CXX; \ | 
|---|
| 1252 | CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \ | 
|---|
| 1253 | GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \ | 
|---|
| 1254 | DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \ | 
|---|
| 1255 | LD="$(LD_FOR_BUILD)"; export LD; \ | 
|---|
| 1256 | LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \ | 
|---|
| 1257 | NM="$(NM_FOR_BUILD)"; export NM; \ | 
|---|
| 1258 | RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \ | 
|---|
| 1259 | WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \ | 
|---|
| 1260 | echo Configuring in $(BUILD_SUBDIR)/$${dir}; \ | 
|---|
| 1261 | cd "$(BUILD_SUBDIR)/$${dir}" || exit 1; \ | 
|---|
| 1262 | case $(srcdir) in \ | 
|---|
| 1263 | /* | [A-Za-z]:[\\/]*) \ | 
|---|
| 1264 | topdir=$(srcdir) ;; \ | 
|---|
| 1265 | *) \ | 
|---|
| 1266 | case "$(BUILD_SUBDIR)" in \ | 
|---|
| 1267 | .) topdir="../$(srcdir)" ;; \ | 
|---|
| 1268 | *) topdir="../../$(srcdir)" ;; \ | 
|---|
| 1269 | esac ;; \ | 
|---|
| 1270 | esac; \ | 
|---|
| 1271 | if [ "$(srcdir)" = "." ] ; then \ | 
|---|
| 1272 | if [ "$(BUILD_SUBDIR)" != "." ] ; then \ | 
|---|
| 1273 | if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \ | 
|---|
| 1274 | if [ -f Makefile ]; then \ | 
|---|
| 1275 | if $(MAKE) distclean; then \ | 
|---|
| 1276 | true; \ | 
|---|
| 1277 | else \ | 
|---|
| 1278 | exit 1; \ | 
|---|
| 1279 | fi; \ | 
|---|
| 1280 | else \ | 
|---|
| 1281 | true; \ | 
|---|
| 1282 | fi; \ | 
|---|
| 1283 | else \ | 
|---|
| 1284 | exit 1; \ | 
|---|
| 1285 | fi; \ | 
|---|
| 1286 | else \ | 
|---|
| 1287 | true; \ | 
|---|
| 1288 | fi; \ | 
|---|
| 1289 | srcdiroption="--srcdir=."; \ | 
|---|
| 1290 | libsrcdir="."; \ | 
|---|
| 1291 | else \ | 
|---|
| 1292 | srcdiroption="--srcdir=$${topdir}/$${dir}"; \ | 
|---|
| 1293 | libsrcdir="$$s/$${dir}"; \ | 
|---|
| 1294 | fi; \ | 
|---|
| 1295 | if [ -f $${libsrcdir}/configure ] ; then \ | 
|---|
| 1296 | rm -f no-such-file skip-this-dir; \ | 
|---|
| 1297 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | 
|---|
| 1298 | $(BUILD_CONFIGARGS) $${srcdiroption} \ | 
|---|
| 1299 | --with-build-subdir="$(BUILD_SUBDIR)"; \ | 
|---|
| 1300 | else \ | 
|---|
| 1301 | rm -f no-such-file skip-this-dir; \ | 
|---|
| 1302 | CONFIG_SITE=no-such-file $(SHELL) $$s/configure \ | 
|---|
| 1303 | $(BUILD_CONFIGARGS) $${srcdiroption} \ | 
|---|
| 1304 | --with-build-subdir="$(BUILD_SUBDIR)"; \ | 
|---|
| 1305 | fi || exit 1; \ | 
|---|
| 1306 | if [ -f skip-this-dir ] ; then \ | 
|---|
| 1307 | sh skip-this-dir; \ | 
|---|
| 1308 | rm -f skip-this-dir; \ | 
|---|
| 1309 | cd ..; rmdir $${dir} || true; \ | 
|---|
| 1310 | else \ | 
|---|
| 1311 | true; \ | 
|---|
| 1312 | fi; \ | 
|---|
| 1313 | else \ | 
|---|
| 1314 | true; \ | 
|---|
| 1315 | fi; \ | 
|---|
| 1316 | else \ | 
|---|
| 1317 | true; \ | 
|---|
| 1318 | fi | 
|---|
| 1319 |  | 
|---|
| 1320 | # This rule is used to build the modules which use FLAGS_TO_PASS.  To | 
|---|
| 1321 | # build a target all-X means to cd to X and make all. | 
|---|
| 1322 | # | 
|---|
| 1323 | # all-gui, and all-libproc are handled specially because | 
|---|
| 1324 | # they are still experimental, and if they fail to build, that | 
|---|
| 1325 | # shouldn't stop "make all". | 
|---|
| 1326 | .PHONY: $(ALL_MODULES) all-gui all-libproc | 
|---|
| 1327 | $(ALL_MODULES) all-gui all-libproc: | 
|---|
| 1328 | @dir=`echo $@ | sed -e 's/all-//'`; \ | 
|---|
| 1329 | if [ -f ./$${dir}/Makefile ] ; then \ | 
|---|
| 1330 | r=`pwd`; export r; \ | 
|---|
| 1331 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1332 | $(SET_LIB_PATH) \ | 
|---|
| 1333 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \ | 
|---|
| 1334 | else \ | 
|---|
| 1335 | true; \ | 
|---|
| 1336 | fi | 
|---|
| 1337 |  | 
|---|
| 1338 | # These rules are used to check the modules which use FLAGS_TO_PASS. | 
|---|
| 1339 | # To build a target check-X means to cd to X and make check.  Some | 
|---|
| 1340 | # modules are only tested in a native toolchain. | 
|---|
| 1341 |  | 
|---|
| 1342 | .PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES) | 
|---|
| 1343 | $(NATIVE_CHECK_MODULES): | 
|---|
| 1344 | @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ | 
|---|
| 1345 | dir=`echo $@ | sed -e 's/check-//'`; \ | 
|---|
| 1346 | if [ -f ./$${dir}/Makefile ] ; then \ | 
|---|
| 1347 | r=`pwd`; export r; \ | 
|---|
| 1348 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1349 | $(SET_LIB_PATH) \ | 
|---|
| 1350 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \ | 
|---|
| 1351 | else \ | 
|---|
| 1352 | true; \ | 
|---|
| 1353 | fi; \ | 
|---|
| 1354 | fi | 
|---|
| 1355 |  | 
|---|
| 1356 | $(CROSS_CHECK_MODULES): | 
|---|
| 1357 | @dir=`echo $@ | sed -e 's/check-//'`; \ | 
|---|
| 1358 | if [ -f ./$${dir}/Makefile ] ; then \ | 
|---|
| 1359 | r=`pwd`; export r; \ | 
|---|
| 1360 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1361 | $(SET_LIB_PATH) \ | 
|---|
| 1362 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \ | 
|---|
| 1363 | else \ | 
|---|
| 1364 | true; \ | 
|---|
| 1365 | fi | 
|---|
| 1366 |  | 
|---|
| 1367 | # This rule is used to install the modules which use FLAGS_TO_PASS. | 
|---|
| 1368 | # To build a target install-X means to cd to X and make install. | 
|---|
| 1369 | .PHONY: $(INSTALL_MODULES) | 
|---|
| 1370 | $(INSTALL_MODULES): installdirs | 
|---|
| 1371 | @dir=`echo $@ | sed -e 's/install-//'`; \ | 
|---|
| 1372 | if [ -f ./$${dir}/Makefile ] ; then \ | 
|---|
| 1373 | r=`pwd`; export r; \ | 
|---|
| 1374 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1375 | $(SET_LIB_PATH) \ | 
|---|
| 1376 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \ | 
|---|
| 1377 | else \ | 
|---|
| 1378 | true; \ | 
|---|
| 1379 | fi | 
|---|
| 1380 |  | 
|---|
| 1381 | # This rule is used to configure the modules which are built with the | 
|---|
| 1382 | # target tools. | 
|---|
| 1383 | .PHONY: $(CONFIGURE_TARGET_MODULES) | 
|---|
| 1384 | $(CONFIGURE_TARGET_MODULES): | 
|---|
| 1385 | @dir=`echo $@ | sed -e 's/configure-target-//'`; \ | 
|---|
| 1386 | if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \ | 
|---|
| 1387 | r=`pwd`; export r; \ | 
|---|
| 1388 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \ | 
|---|
| 1389 | if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \ | 
|---|
| 1390 | if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \ | 
|---|
| 1391 | if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \ | 
|---|
| 1392 | rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \ | 
|---|
| 1393 | else \ | 
|---|
| 1394 | echo "Multilibs changed for $${dir}, reconfiguring"; \ | 
|---|
| 1395 | rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \ | 
|---|
| 1396 | mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \ | 
|---|
| 1397 | fi; \ | 
|---|
| 1398 | else \ | 
|---|
| 1399 | mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \ | 
|---|
| 1400 | fi; \ | 
|---|
| 1401 | fi; \ | 
|---|
| 1402 | fi; exit 0      # break command into two pieces | 
|---|
| 1403 | @dir=`echo $@ | sed -e 's/configure-target-//'`; \ | 
|---|
| 1404 | if [ ! -d $(TARGET_SUBDIR) ]; then \ | 
|---|
| 1405 | true; \ | 
|---|
| 1406 | elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | 
|---|
| 1407 | true; \ | 
|---|
| 1408 | elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \ | 
|---|
| 1409 | if [ -d $(srcdir)/$${dir} ]; then \ | 
|---|
| 1410 | [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\ | 
|---|
| 1411 | r=`pwd`; export r; \ | 
|---|
| 1412 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1413 | $(SET_LIB_PATH) \ | 
|---|
| 1414 | AR="$(AR_FOR_TARGET)"; export AR; \ | 
|---|
| 1415 | AS="$(AS_FOR_TARGET)"; export AS; \ | 
|---|
| 1416 | CC="$(CC_FOR_TARGET)"; export CC; \ | 
|---|
| 1417 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | 
|---|
| 1418 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | 
|---|
| 1419 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | 
|---|
| 1420 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | 
|---|
| 1421 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | 
|---|
| 1422 | LD="$(LD_FOR_TARGET)"; export LD; \ | 
|---|
| 1423 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | 
|---|
| 1424 | NM="$(NM_FOR_TARGET)"; export NM; \ | 
|---|
| 1425 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | 
|---|
| 1426 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | 
|---|
| 1427 | echo Configuring in $(TARGET_SUBDIR)/$${dir}; \ | 
|---|
| 1428 | cd "$(TARGET_SUBDIR)/$${dir}" || exit 1; \ | 
|---|
| 1429 | case $(srcdir) in \ | 
|---|
| 1430 | /* | [A-Za-z]:[\\/]*) \ | 
|---|
| 1431 | topdir=$(srcdir) ;; \ | 
|---|
| 1432 | *) \ | 
|---|
| 1433 | case "$(TARGET_SUBDIR)" in \ | 
|---|
| 1434 | .) topdir="../$(srcdir)" ;; \ | 
|---|
| 1435 | *) topdir="../../$(srcdir)" ;; \ | 
|---|
| 1436 | esac ;; \ | 
|---|
| 1437 | esac; \ | 
|---|
| 1438 | if [ "$(srcdir)" = "." ] ; then \ | 
|---|
| 1439 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | 
|---|
| 1440 | if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \ | 
|---|
| 1441 | if [ -f Makefile ]; then \ | 
|---|
| 1442 | if $(MAKE) distclean; then \ | 
|---|
| 1443 | true; \ | 
|---|
| 1444 | else \ | 
|---|
| 1445 | exit 1; \ | 
|---|
| 1446 | fi; \ | 
|---|
| 1447 | else \ | 
|---|
| 1448 | true; \ | 
|---|
| 1449 | fi; \ | 
|---|
| 1450 | else \ | 
|---|
| 1451 | exit 1; \ | 
|---|
| 1452 | fi; \ | 
|---|
| 1453 | else \ | 
|---|
| 1454 | true; \ | 
|---|
| 1455 | fi; \ | 
|---|
| 1456 | srcdiroption="--srcdir=."; \ | 
|---|
| 1457 | libsrcdir="."; \ | 
|---|
| 1458 | else \ | 
|---|
| 1459 | srcdiroption="--srcdir=$${topdir}/$${dir}"; \ | 
|---|
| 1460 | libsrcdir="$$s/$${dir}"; \ | 
|---|
| 1461 | fi; \ | 
|---|
| 1462 | if [ -f $${libsrcdir}/configure ] ; then \ | 
|---|
| 1463 | rm -f no-such-file skip-this-dir; \ | 
|---|
| 1464 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | 
|---|
| 1465 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | 
|---|
| 1466 | --with-target-subdir="$(TARGET_SUBDIR)"; \ | 
|---|
| 1467 | else \ | 
|---|
| 1468 | rm -f no-such-file skip-this-dir; \ | 
|---|
| 1469 | CONFIG_SITE=no-such-file $(SHELL) $$s/configure \ | 
|---|
| 1470 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | 
|---|
| 1471 | --with-target-subdir="$(TARGET_SUBDIR)"; \ | 
|---|
| 1472 | fi || exit 1; \ | 
|---|
| 1473 | if [ -f skip-this-dir ] ; then \ | 
|---|
| 1474 | sh skip-this-dir; \ | 
|---|
| 1475 | rm -f skip-this-dir; \ | 
|---|
| 1476 | cd ..; rmdir $${dir} || true; \ | 
|---|
| 1477 | else \ | 
|---|
| 1478 | true; \ | 
|---|
| 1479 | fi; \ | 
|---|
| 1480 | else \ | 
|---|
| 1481 | true; \ | 
|---|
| 1482 | fi; \ | 
|---|
| 1483 | else \ | 
|---|
| 1484 | true; \ | 
|---|
| 1485 | fi | 
|---|
| 1486 |  | 
|---|
| 1487 | # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS. | 
|---|
| 1488 | # To build a target all-X means to cd to X and make all. | 
|---|
| 1489 | .PHONY: $(ALL_TARGET_MODULES) | 
|---|
| 1490 | $(ALL_TARGET_MODULES): | 
|---|
| 1491 | @dir=`echo $@ | sed -e 's/all-target-//'`; \ | 
|---|
| 1492 | if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | 
|---|
| 1493 | r=`pwd`; export r; \ | 
|---|
| 1494 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1495 | $(SET_LIB_PATH) \ | 
|---|
| 1496 | (cd $(TARGET_SUBDIR)/$${dir}; \ | 
|---|
| 1497 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \ | 
|---|
| 1498 | else \ | 
|---|
| 1499 | true; \ | 
|---|
| 1500 | fi | 
|---|
| 1501 |  | 
|---|
| 1502 | # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS. | 
|---|
| 1503 | # To build a target install-X means to cd to X and make install. | 
|---|
| 1504 | .PHONY: $(CHECK_TARGET_MODULES) | 
|---|
| 1505 | $(CHECK_TARGET_MODULES): | 
|---|
| 1506 | @dir=`echo $@ | sed -e 's/check-target-//'`; \ | 
|---|
| 1507 | if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | 
|---|
| 1508 | r=`pwd`; export r; \ | 
|---|
| 1509 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1510 | $(SET_LIB_PATH) \ | 
|---|
| 1511 | (cd $(TARGET_SUBDIR)/$${dir}; \ | 
|---|
| 1512 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\ | 
|---|
| 1513 | else \ | 
|---|
| 1514 | true; \ | 
|---|
| 1515 | fi | 
|---|
| 1516 |  | 
|---|
| 1517 | # This rule is used to install the modules which use | 
|---|
| 1518 | # TARGET_FLAGS_TO_PASS.  To build a target install-X means to cd to X | 
|---|
| 1519 | # and make install. | 
|---|
| 1520 | .PHONY: $(INSTALL_TARGET_MODULES) | 
|---|
| 1521 | $(INSTALL_TARGET_MODULES): installdirs | 
|---|
| 1522 | @dir=`echo $@ | sed -e 's/install-target-//'`; \ | 
|---|
| 1523 | if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | 
|---|
| 1524 | r=`pwd`; export r; \ | 
|---|
| 1525 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1526 | $(SET_LIB_PATH) \ | 
|---|
| 1527 | (cd $(TARGET_SUBDIR)/$${dir}; \ | 
|---|
| 1528 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \ | 
|---|
| 1529 | else \ | 
|---|
| 1530 | true; \ | 
|---|
| 1531 | fi | 
|---|
| 1532 |  | 
|---|
| 1533 | # This rule is used to build the modules which use X11_FLAGS_TO_PASS. | 
|---|
| 1534 | # To build a target all-X means to cd to X and make all. | 
|---|
| 1535 | .PHONY: $(ALL_X11_MODULES) | 
|---|
| 1536 | $(ALL_X11_MODULES): | 
|---|
| 1537 | @dir=`echo $@ | sed -e 's/all-//'`; \ | 
|---|
| 1538 | if [ -f ./$${dir}/Makefile ] ; then \ | 
|---|
| 1539 | r=`pwd`; export r; \ | 
|---|
| 1540 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1541 | $(SET_LIB_PATH) \ | 
|---|
| 1542 | (cd $${dir}; \ | 
|---|
| 1543 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \ | 
|---|
| 1544 | else \ | 
|---|
| 1545 | true; \ | 
|---|
| 1546 | fi | 
|---|
| 1547 |  | 
|---|
| 1548 | # This rule is used to check the modules which use X11_FLAGS_TO_PASS. | 
|---|
| 1549 | # To build a target check-X means to cd to X and make all. | 
|---|
| 1550 | .PHONY: $(CHECK_X11_MODULES) | 
|---|
| 1551 | $(CHECK_X11_MODULES): | 
|---|
| 1552 | @dir=`echo $@ | sed -e 's/check-//'`; \ | 
|---|
| 1553 | if [ -f ./$${dir}/Makefile ] ; then \ | 
|---|
| 1554 | r=`pwd`; export r; \ | 
|---|
| 1555 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1556 | $(SET_LIB_PATH) \ | 
|---|
| 1557 | (cd $${dir}; \ | 
|---|
| 1558 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \ | 
|---|
| 1559 | else \ | 
|---|
| 1560 | true; \ | 
|---|
| 1561 | fi | 
|---|
| 1562 |  | 
|---|
| 1563 | # This rule is used to install the modules which use X11_FLAGS_TO_PASS. | 
|---|
| 1564 | # To build a target install-X means to cd to X and make install. | 
|---|
| 1565 | .PHONY: $(INSTALL_X11_MODULES) | 
|---|
| 1566 | $(INSTALL_X11_MODULES): installdirs | 
|---|
| 1567 | @dir=`echo $@ | sed -e 's/install-//'`; \ | 
|---|
| 1568 | if [ -f ./$${dir}/Makefile ] ; then \ | 
|---|
| 1569 | r=`pwd`; export r; \ | 
|---|
| 1570 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1571 | $(SET_LIB_PATH) \ | 
|---|
| 1572 | (cd $${dir}; \ | 
|---|
| 1573 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \ | 
|---|
| 1574 | else \ | 
|---|
| 1575 | true; \ | 
|---|
| 1576 | fi | 
|---|
| 1577 |  | 
|---|
| 1578 | # gcc is the only module which uses GCC_FLAGS_TO_PASS. | 
|---|
| 1579 | .PHONY: all-gcc | 
|---|
| 1580 | all-gcc: | 
|---|
| 1581 | @if [ -f ./gcc/Makefile ] ; then \ | 
|---|
| 1582 | r=`pwd`; export r; \ | 
|---|
| 1583 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1584 | $(SET_LIB_PATH) \ | 
|---|
| 1585 | (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \ | 
|---|
| 1586 | else \ | 
|---|
| 1587 | true; \ | 
|---|
| 1588 | fi | 
|---|
| 1589 |  | 
|---|
| 1590 | # Building GCC uses some tools for rebuilding "source" files | 
|---|
| 1591 | # like texinfo, bison/byacc, etc.  So we must depend on those. | 
|---|
| 1592 | # | 
|---|
| 1593 | # While building GCC, it may be necessary to run various target | 
|---|
| 1594 | # programs like the assembler, linker, etc.  So we depend on | 
|---|
| 1595 | # those too. | 
|---|
| 1596 | # | 
|---|
| 1597 | # In theory, on an SMP all those dependencies can be resolved | 
|---|
| 1598 | # in parallel. | 
|---|
| 1599 | # | 
|---|
| 1600 | .PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean | 
|---|
| 1601 | bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean: all-bootstrap | 
|---|
| 1602 | @r=`pwd`; export r; \ | 
|---|
| 1603 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1604 | $(SET_LIB_PATH) \ | 
|---|
| 1605 | echo "Bootstrapping the compiler"; \ | 
|---|
| 1606 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@ | 
|---|
| 1607 | @r=`pwd`; export r; \ | 
|---|
| 1608 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1609 | case "$@" in \ | 
|---|
| 1610 | *bootstrap4-lean ) \ | 
|---|
| 1611 | msg="Comparing stage3 and stage4 of the compiler"; \ | 
|---|
| 1612 | compare=compare3-lean ;; \ | 
|---|
| 1613 | *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \ | 
|---|
| 1614 | compare=compare3 ;; \ | 
|---|
| 1615 | *-lean )      msg="Comparing stage2 and stage3 of the compiler"; \ | 
|---|
| 1616 | compare=compare-lean ;; \ | 
|---|
| 1617 | * )           msg="Comparing stage2 and stage3 of the compiler"; \ | 
|---|
| 1618 | compare=compare ;; \ | 
|---|
| 1619 | esac; \ | 
|---|
| 1620 | $(SET_LIB_PATH) \ | 
|---|
| 1621 | echo "$$msg"; \ | 
|---|
| 1622 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare | 
|---|
| 1623 | @r=`pwd`; export r; \ | 
|---|
| 1624 | s=`cd $(srcdir); pwd` ; export s; \ | 
|---|
| 1625 | $(SET_LIB_PATH) \ | 
|---|
| 1626 | echo "Building runtime libraries"; \ | 
|---|
| 1627 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all | 
|---|
| 1628 |  | 
|---|
| 1629 | .PHONY: cross | 
|---|
| 1630 | cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld | 
|---|
| 1631 | @r=`pwd`; export r; \ | 
|---|
| 1632 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1633 | $(SET_LIB_PATH) \ | 
|---|
| 1634 | echo "Building the C and C++ compiler"; \ | 
|---|
| 1635 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" | 
|---|
| 1636 | @r=`pwd`; export r; \ | 
|---|
| 1637 | s=`cd $(srcdir); pwd` ; export s; \ | 
|---|
| 1638 | $(SET_LIB_PATH) \ | 
|---|
| 1639 | echo "Building runtime libraries"; \ | 
|---|
| 1640 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \ | 
|---|
| 1641 | LANGUAGES="c c++" all | 
|---|
| 1642 |  | 
|---|
| 1643 | .PHONY: check-gcc | 
|---|
| 1644 | check-gcc: | 
|---|
| 1645 | @if [ -f ./gcc/Makefile ] ; then \ | 
|---|
| 1646 | r=`pwd`; export r; \ | 
|---|
| 1647 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1648 | $(SET_LIB_PATH) \ | 
|---|
| 1649 | (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \ | 
|---|
| 1650 | else \ | 
|---|
| 1651 | true; \ | 
|---|
| 1652 | fi | 
|---|
| 1653 |  | 
|---|
| 1654 | .PHONY: check-c++ | 
|---|
| 1655 | check-c++: | 
|---|
| 1656 | @if [ -f ./gcc/Makefile ] ; then \ | 
|---|
| 1657 | r=`pwd`; export r; \ | 
|---|
| 1658 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1659 | $(SET_LIB_PATH) \ | 
|---|
| 1660 | (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \ | 
|---|
| 1661 | $(MAKE) check-target-libstdc++-v3; \ | 
|---|
| 1662 | else \ | 
|---|
| 1663 | true; \ | 
|---|
| 1664 | fi | 
|---|
| 1665 |  | 
|---|
| 1666 | .PHONY: install-gcc | 
|---|
| 1667 | install-gcc: | 
|---|
| 1668 | @if [ -f ./gcc/Makefile ] ; then \ | 
|---|
| 1669 | r=`pwd`; export r; \ | 
|---|
| 1670 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1671 | $(SET_LIB_PATH) \ | 
|---|
| 1672 | (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ | 
|---|
| 1673 | else \ | 
|---|
| 1674 | true; \ | 
|---|
| 1675 | fi | 
|---|
| 1676 |  | 
|---|
| 1677 | .PHONY: install-gcc-cross | 
|---|
| 1678 | install-gcc-cross: | 
|---|
| 1679 | @if [ -f ./gcc/Makefile ] ; then \ | 
|---|
| 1680 | r=`pwd`; export r; \ | 
|---|
| 1681 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1682 | $(SET_LIB_PATH) \ | 
|---|
| 1683 | (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" install); \ | 
|---|
| 1684 | else \ | 
|---|
| 1685 | true; \ | 
|---|
| 1686 | fi | 
|---|
| 1687 | # EXPERIMENTAL STUFF | 
|---|
| 1688 | # This rule is used to install the modules which use FLAGS_TO_PASS. | 
|---|
| 1689 | # To build a target install-X means to cd to X and make install. | 
|---|
| 1690 | .PHONY: install-dosrel | 
|---|
| 1691 | install-dosrel: installdirs info | 
|---|
| 1692 | @dir=`echo $@ | sed -e 's/install-//'`; \ | 
|---|
| 1693 | if [ -f ./$${dir}/Makefile ] ; then \ | 
|---|
| 1694 | r=`pwd`; export r; \ | 
|---|
| 1695 | s=`cd $(srcdir); pwd`; export s; \ | 
|---|
| 1696 | $(SET_LIB_PATH) \ | 
|---|
| 1697 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \ | 
|---|
| 1698 | else \ | 
|---|
| 1699 | true; \ | 
|---|
| 1700 | fi | 
|---|
| 1701 |  | 
|---|
| 1702 | install-dosrel-fake: | 
|---|
| 1703 |  | 
|---|
| 1704 | ALL_GCC = all-gcc | 
|---|
| 1705 | ALL_GCC_C = $(ALL_GCC) all-target-newlib all-target-libgloss | 
|---|
| 1706 | ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++-v3 | 
|---|
| 1707 |  | 
|---|
| 1708 | # This is a list of inter-dependencies among modules. | 
|---|
| 1709 | all-apache: | 
|---|
| 1710 | all-ash: | 
|---|
| 1711 | all-autoconf: all-m4 all-texinfo | 
|---|
| 1712 | all-automake: all-m4 all-texinfo | 
|---|
| 1713 | all-bash: | 
|---|
| 1714 | all-bfd: all-libiberty all-intl | 
|---|
| 1715 | all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl | 
|---|
| 1716 | all-bison: all-texinfo | 
|---|
| 1717 | configure-target-boehm-gc: $(ALL_GCC_C) configure-target-qthreads | 
|---|
| 1718 | all-target-boehm-gc: configure-target-boehm-gc | 
|---|
| 1719 | configure-target-bsp: $(ALL_GCC_C) | 
|---|
| 1720 | all-target-bsp: configure-target-bsp | 
|---|
| 1721 | all-byacc: | 
|---|
| 1722 | all-bzip2: | 
|---|
| 1723 | all-cgen: all-libiberty | 
|---|
| 1724 | all-cvssrc: | 
|---|
| 1725 | configure-target-cygmon: $(ALL_GCC_C) | 
|---|
| 1726 | all-target-cygmon: configure-target-cygmon all-target-libiberty all-target-libstub all-target-bsp | 
|---|
| 1727 | all-db: | 
|---|
| 1728 | all-dejagnu: all-tcl all-expect all-tk | 
|---|
| 1729 | all-diff: all-libiberty | 
|---|
| 1730 | all-emacs: | 
|---|
| 1731 | all-emacs19: all-bison all-byacc | 
|---|
| 1732 | all-etc: | 
|---|
| 1733 | configure-target-examples: $(ALL_GCC_C) | 
|---|
| 1734 | all-target-examples: configure-target-examples | 
|---|
| 1735 | all-expect: all-tcl all-tk | 
|---|
| 1736 | all-fileutils: all-libiberty | 
|---|
| 1737 | all-findutils: | 
|---|
| 1738 | all-find: | 
|---|
| 1739 | all-flex: all-libiberty all-bison all-byacc | 
|---|
| 1740 | all-gas: all-libiberty all-opcodes all-bfd all-intl | 
|---|
| 1741 | all-gash: all-tcl | 
|---|
| 1742 | all-gawk: | 
|---|
| 1743 | all-gcc: all-bison all-byacc all-binutils all-gas all-ld all-zlib | 
|---|
| 1744 | all-bootstrap: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib | 
|---|
| 1745 | GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui | 
|---|
| 1746 | all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK) | 
|---|
| 1747 | all-gettext: | 
|---|
| 1748 | all-gnuserv: | 
|---|
| 1749 | configure-target-gperf: $(ALL_GCC_CXX) | 
|---|
| 1750 | all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++-v3 | 
|---|
| 1751 | all-gprof: all-libiberty all-bfd all-opcodes all-intl | 
|---|
| 1752 | all-grep: all-libiberty | 
|---|
| 1753 | all-grez: all-libiberty all-bfd all-opcodes | 
|---|
| 1754 | all-gui: all-gdb all-libproc all-target-librx | 
|---|
| 1755 | all-guile: | 
|---|
| 1756 | all-gzip: all-libiberty | 
|---|
| 1757 | all-hello: all-libiberty | 
|---|
| 1758 | all-indent: | 
|---|
| 1759 | all-inet: all-tcl all-send-pr all-perl | 
|---|
| 1760 | all-intl: | 
|---|
| 1761 | all-ispell: all-emacs19 | 
|---|
| 1762 | all-itcl: all-tcl all-tk all-tcl8.1 all-tk8.1 | 
|---|
| 1763 | all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl | 
|---|
| 1764 | configure-target-libgloss: $(ALL_GCC) | 
|---|
| 1765 | all-target-libgloss: configure-target-libgloss configure-target-newlib | 
|---|
| 1766 | all-libgui: all-tcl all-tk all-tcl8.1 all-tk8.1 all-itcl | 
|---|
| 1767 | all-libiberty: | 
|---|
| 1768 |  | 
|---|
| 1769 | all-build-libiberty: configure-build-libiberty | 
|---|
| 1770 |  | 
|---|
| 1771 | configure-target-libffi: $(ALL_GCC_C) | 
|---|
| 1772 | all-target-libffi: configure-target-libffi | 
|---|
| 1773 | configure-target-libjava: $(ALL_GCC_C) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi | 
|---|
| 1774 | all-target-libjava: configure-target-libjava all-fastjar all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi | 
|---|
| 1775 | configure-target-librx: $(ALL_GCC_C) | 
|---|
| 1776 | all-target-librx: configure-target-librx | 
|---|
| 1777 | configure-target-libstdc++-v3: $(ALL_GCC_C) | 
|---|
| 1778 | all-target-libstdc++-v3: configure-target-libstdc++-v3 all-target-libiberty | 
|---|
| 1779 | configure-target-libstub: $(ALL_GCC_C) | 
|---|
| 1780 | all-target-libstub: configure-target-libstub | 
|---|
| 1781 | all-libtool: | 
|---|
| 1782 | configure-target-libf2c: $(ALL_GCC_C) | 
|---|
| 1783 | all-target-libf2c: configure-target-libf2c all-target-libiberty | 
|---|
| 1784 | configure-target-libobjc: $(ALL_GCC_C) | 
|---|
| 1785 | all-target-libobjc: configure-target-libobjc all-target-libiberty | 
|---|
| 1786 | all-m4: all-libiberty all-texinfo | 
|---|
| 1787 | all-make: all-libiberty | 
|---|
| 1788 | all-mmalloc: | 
|---|
| 1789 | configure-target-newlib: $(ALL_GCC) | 
|---|
| 1790 | all-target-newlib: configure-target-newlib | 
|---|
| 1791 | configure-target-libtermcap: $(ALL_GCC_C) | 
|---|
| 1792 | all-target-libtermcap: configure-target-libtermcap | 
|---|
| 1793 | all-opcodes: all-bfd all-libiberty all-cgen | 
|---|
| 1794 | all-patch: all-libiberty | 
|---|
| 1795 | all-perl: | 
|---|
| 1796 | all-prms: all-libiberty | 
|---|
| 1797 | configure-target-qthreads: $(ALL_GCC_C) | 
|---|
| 1798 | all-target-qthreads: configure-target-qthreads | 
|---|
| 1799 | all-rcs: | 
|---|
| 1800 | all-readline: | 
|---|
| 1801 | all-recode: all-libiberty | 
|---|
| 1802 | all-sed: all-libiberty | 
|---|
| 1803 | all-send-pr: all-prms | 
|---|
| 1804 | all-shellutils: | 
|---|
| 1805 | all-sid: all-tcl all-tk | 
|---|
| 1806 | all-sim: all-libiberty all-bfd all-opcodes all-readline all-cgen | 
|---|
| 1807 | all-snavigator: all-tcl all-tk all-itcl all-db all-grep all-libgui | 
|---|
| 1808 | all-tar: all-libiberty | 
|---|
| 1809 | all-tcl: | 
|---|
| 1810 | all-tcl8.1: | 
|---|
| 1811 | all-tclX: all-tcl all-tk | 
|---|
| 1812 | all-tk: all-tcl | 
|---|
| 1813 | all-tk8.1: all-tcl8.1 | 
|---|
| 1814 | all-texinfo: all-libiberty | 
|---|
| 1815 | all-textutils: | 
|---|
| 1816 | all-tgas: all-libiberty all-bfd all-opcodes | 
|---|
| 1817 | all-time: | 
|---|
| 1818 | all-tix: all-tcl all-tk all-tcl8.1 all-tk8.1 | 
|---|
| 1819 | all-wdiff: | 
|---|
| 1820 | configure-target-winsup: $(ALL_GCC_C) | 
|---|
| 1821 | all-target-winsup: all-target-libiberty all-target-libtermcap configure-target-winsup | 
|---|
| 1822 | all-uudecode: all-libiberty | 
|---|
| 1823 | all-zip: | 
|---|
| 1824 | all-zlib: | 
|---|
| 1825 | configure-target-zlib: $(ALL_GCC_C) | 
|---|
| 1826 | all-target-zlib: configure-target-zlib | 
|---|
| 1827 | all-fastjar: all-zlib all-libiberty | 
|---|
| 1828 | configure-target-fastjar: configure-target-zlib | 
|---|
| 1829 | all-target-fastjar: configure-target-fastjar all-target-zlib all-target-libiberty | 
|---|
| 1830 | configure-target-libiberty: $(ALL_GCC_C) | 
|---|
| 1831 | all-target-libiberty: configure-target-libiberty | 
|---|
| 1832 | all-target: $(ALL_TARGET_MODULES) | 
|---|
| 1833 | install-target: $(INSTALL_TARGET_MODULES) | 
|---|
| 1834 | install-gdb: install-tcl install-tk install-itcl install-tix install-libgui | 
|---|
| 1835 | install-sid: install-tcl install-tk | 
|---|
| 1836 | ### other supporting targets | 
|---|
| 1837 |  | 
|---|
| 1838 | MAKEDIRS= \ | 
|---|
| 1839 | $(DESTDIR)$(prefix) \ | 
|---|
| 1840 | $(DESTDIR)$(exec_prefix) | 
|---|
| 1841 | .PHONY: installdirs | 
|---|
| 1842 | installdirs: mkinstalldirs | 
|---|
| 1843 | $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS) | 
|---|
| 1844 |  | 
|---|
| 1845 | dir.info: do-install-info | 
|---|
| 1846 | if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \ | 
|---|
| 1847 | $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \ | 
|---|
| 1848 | mv -f dir.info.new dir.info ; \ | 
|---|
| 1849 | else true ; \ | 
|---|
| 1850 | fi | 
|---|
| 1851 |  | 
|---|
| 1852 | dist: | 
|---|
| 1853 | @echo "Building a full distribution of this tree isn't done" | 
|---|
| 1854 | @echo "via 'make dist'.  Check out the etc/ subdirectory" | 
|---|
| 1855 |  | 
|---|
| 1856 | etags tags: TAGS | 
|---|
| 1857 |  | 
|---|
| 1858 | # Right now this just builds TAGS in each subdirectory.  emacs19 has the | 
|---|
| 1859 | # ability to use several tags files at once, so there is probably no need | 
|---|
| 1860 | # to combine them into one big TAGS file (like CVS 1.3 does).  We could | 
|---|
| 1861 | # (if we felt like it) have this Makefile write a piece of elisp which | 
|---|
| 1862 | # the user could load to tell emacs19 where all the TAGS files we just | 
|---|
| 1863 | # built are. | 
|---|
| 1864 | TAGS: do-TAGS | 
|---|
| 1865 |  | 
|---|
| 1866 | # with the gnu make, this is done automatically. | 
|---|
| 1867 |  | 
|---|
| 1868 | Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger) | 
|---|
| 1869 | $(SHELL) ./config.status | 
|---|
| 1870 |  | 
|---|
| 1871 | # | 
|---|
| 1872 | # Support for building net releases | 
|---|
| 1873 |  | 
|---|
| 1874 | # Files in devo used in any net release. | 
|---|
| 1875 | # ChangeLog omitted because it may refer to files which are not in this | 
|---|
| 1876 | # distribution (perhaps it would be better to include it anyway). | 
|---|
| 1877 | DEVO_SUPPORT= README Makefile.in configure configure.in \ | 
|---|
| 1878 | config.guess config.if config.sub config move-if-change \ | 
|---|
| 1879 | mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \ | 
|---|
| 1880 | COPYING COPYING.LIB install-sh config-ml.in symlink-tree \ | 
|---|
| 1881 | mkinstalldirs ltconfig ltmain.sh missing ylwrap \ | 
|---|
| 1882 | libtool.m4 gettext.m4 ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh | 
|---|
| 1883 |  | 
|---|
| 1884 | # Files in devo/etc used in any net release. | 
|---|
| 1885 | # ChangeLog omitted because it may refer to files which are not in this | 
|---|
| 1886 | # distribution (perhaps it would be better to include it anyway). | 
|---|
| 1887 | ETC_SUPPORT= Makefile.in configure configure.in standards.texi \ | 
|---|
| 1888 | make-stds.texi standards.info* | 
|---|
| 1889 |  | 
|---|
| 1890 | # When you use `make setup-dirs' or `make taz' you should always redefine | 
|---|
| 1891 | # this macro. | 
|---|
| 1892 | SUPPORT_FILES = list-of-support-files-for-tool-in-question | 
|---|
| 1893 |  | 
|---|
| 1894 | # NOTE: No double quotes in the below.  It is used within shell script | 
|---|
| 1895 | # as VER="$(VER)" | 
|---|
| 1896 | VER = ` if grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \ | 
|---|
| 1897 | sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \ | 
|---|
| 1898 | else \ | 
|---|
| 1899 | sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \ | 
|---|
| 1900 | fi` | 
|---|
| 1901 | PACKAGE = $(TOOL) | 
|---|
| 1902 |  | 
|---|
| 1903 | .PHONY: taz | 
|---|
| 1904 | taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex | 
|---|
| 1905 | $(MAKE) -f Makefile.in do-proto-toplev \ | 
|---|
| 1906 | TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ | 
|---|
| 1907 | MD5PROG="$(MD5PROG)" \ | 
|---|
| 1908 | SUPPORT_FILES="$(SUPPORT_FILES)" | 
|---|
| 1909 | $(MAKE) -f Makefile.in do-md5sum \ | 
|---|
| 1910 | TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ | 
|---|
| 1911 | MD5PROG="$(MD5PROG)" \ | 
|---|
| 1912 | SUPPORT_FILES="$(SUPPORT_FILES)" | 
|---|
| 1913 | $(MAKE) -f Makefile.in do-tar-bz2 \ | 
|---|
| 1914 | TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ | 
|---|
| 1915 | MD5PROG="$(MD5PROG)" \ | 
|---|
| 1916 | SUPPORT_FILES="$(SUPPORT_FILES)" | 
|---|
| 1917 |  | 
|---|
| 1918 | .PHONY: gdb-taz | 
|---|
| 1919 | gdb-taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex | 
|---|
| 1920 | $(MAKE) -f Makefile.in do-proto-toplev \ | 
|---|
| 1921 | TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ | 
|---|
| 1922 | MD5PROG="$(MD5PROG)" \ | 
|---|
| 1923 | SUPPORT_FILES="$(SUPPORT_FILES)" | 
|---|
| 1924 | $(MAKE) -f Makefile.in do-md5sum \ | 
|---|
| 1925 | TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ | 
|---|
| 1926 | MD5PROG="$(MD5PROG)" \ | 
|---|
| 1927 | SUPPORT_FILES="$(SUPPORT_FILES)" | 
|---|
| 1928 | $(MAKE) -f Makefile.in do-djunpack \ | 
|---|
| 1929 | TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ | 
|---|
| 1930 | MD5PROG="$(MD5PROG)" \ | 
|---|
| 1931 | SUPPORT_FILES="$(SUPPORT_FILES)" | 
|---|
| 1932 | $(MAKE) -f Makefile.in do-tar-bz2 \ | 
|---|
| 1933 | TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ | 
|---|
| 1934 | MD5PROG="$(MD5PROG)" \ | 
|---|
| 1935 | SUPPORT_FILES="$(SUPPORT_FILES)" | 
|---|
| 1936 |  | 
|---|
| 1937 | .PHONY: do-proto-toplev | 
|---|
| 1938 | do-proto-toplev: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex | 
|---|
| 1939 | echo "==> Making $(PACKAGE)-$(VER)/" | 
|---|
| 1940 | # Take out texinfo from a few places. | 
|---|
| 1941 | sed -e '/^all\.normal: /s/\all-texinfo //' \ | 
|---|
| 1942 | -e '/^      install-texinfo /d' \ | 
|---|
| 1943 | <Makefile.in >tmp | 
|---|
| 1944 | mv -f tmp Makefile.in | 
|---|
| 1945 | # | 
|---|
| 1946 | ./configure sun4 | 
|---|
| 1947 | [ -z "$(CONFIGURE_TARGET_MODULES)" ] \ | 
|---|
| 1948 | || $(MAKE) $(CONFIGURE_TARGET_MODULES) \ | 
|---|
| 1949 | ALL_GCC="" ALL_GCC_C="" ALL_GCC_CXX="" \ | 
|---|
| 1950 | CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)" | 
|---|
| 1951 | # Make links, and run "make diststuff" or "make info" when needed. | 
|---|
| 1952 | rm -rf proto-toplev ; mkdir proto-toplev | 
|---|
| 1953 | set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \ | 
|---|
| 1954 | for d in $$dirs ; do \ | 
|---|
| 1955 | if [ -d $$d ]; then \ | 
|---|
| 1956 | if [ ! -f $$d/Makefile ] ; then true ; \ | 
|---|
| 1957 | elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \ | 
|---|
| 1958 | (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \ | 
|---|
| 1959 | elif grep '^info:' $$d/Makefile >/dev/null ; then \ | 
|---|
| 1960 | (cd $$d ; $(MAKE) info ) || exit 1 ; \ | 
|---|
| 1961 | fi ; \ | 
|---|
| 1962 | if [ -d $$d/proto-$$d.dir ]; then \ | 
|---|
| 1963 | ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \ | 
|---|
| 1964 | else \ | 
|---|
| 1965 | ln -s ../$$d proto-toplev/$$d ; \ | 
|---|
| 1966 | fi ; \ | 
|---|
| 1967 | else ln -s ../$$d proto-toplev/$$d ; fi ; \ | 
|---|
| 1968 | done | 
|---|
| 1969 | cd etc && $(MAKE) info | 
|---|
| 1970 | $(MAKE) distclean | 
|---|
| 1971 | # | 
|---|
| 1972 | mkdir proto-toplev/etc | 
|---|
| 1973 | (cd proto-toplev/etc; \ | 
|---|
| 1974 | for i in $(ETC_SUPPORT); do \ | 
|---|
| 1975 | ln -s ../../etc/$$i . ; \ | 
|---|
| 1976 | done) | 
|---|
| 1977 | # | 
|---|
| 1978 | # Take out texinfo from configurable dirs | 
|---|
| 1979 | rm proto-toplev/configure.in | 
|---|
| 1980 | sed -e '/^host_tools=/s/texinfo //' \ | 
|---|
| 1981 | <configure.in >proto-toplev/configure.in | 
|---|
| 1982 | # | 
|---|
| 1983 | mkdir proto-toplev/texinfo | 
|---|
| 1984 | ln -s ../../texinfo/texinfo.tex         proto-toplev/texinfo/ | 
|---|
| 1985 | if test -r texinfo/util/tex3patch ; then \ | 
|---|
| 1986 | mkdir proto-toplev/texinfo/util && \ | 
|---|
| 1987 | ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \ | 
|---|
| 1988 | else true; fi | 
|---|
| 1989 | chmod -R og=u . || chmod og=u `find . -print` | 
|---|
| 1990 | # | 
|---|
| 1991 | -rm -f $(PACKAGE)-$(VER) | 
|---|
| 1992 | ln -s proto-toplev $(PACKAGE)-$(VER) | 
|---|
| 1993 |  | 
|---|
| 1994 | .PHONY: do-tar-bz2 | 
|---|
| 1995 | do-tar-bz2: | 
|---|
| 1996 | echo "==> Making $(PACKAGE)-$(VER).tar.bz2" | 
|---|
| 1997 | -rm -f $(PACKAGE)-$(VER).tar.bz2 | 
|---|
| 1998 | find $(PACKAGE)-$(VER) -follow -name CVS -prune -o -type f -print \ | 
|---|
| 1999 | | tar cTfh - $(PACKAGE)-$(VER).tar | 
|---|
| 2000 | $(BZIPPROG) -v -9 $(PACKAGE)-$(VER).tar | 
|---|
| 2001 |  | 
|---|
| 2002 | .PHONY: do-md5sum | 
|---|
| 2003 | do-md5sum: | 
|---|
| 2004 | echo "==> Adding md5 checksum to top-level directory" | 
|---|
| 2005 | cd proto-toplev && find * -follow -name CVS -prune -o -type f -print \ | 
|---|
| 2006 | | xargs $(MD5PROG) > ../md5.sum | 
|---|
| 2007 | mv md5.sum proto-toplev | 
|---|
| 2008 |  | 
|---|
| 2009 | .PHONY: do-djunpack | 
|---|
| 2010 | do-djunpack: | 
|---|
| 2011 | echo "==> Adding updated djunpack.bat to top-level directory" | 
|---|
| 2012 | echo - 's /gdb-[0-9\.]*/gdb-'"$(VER)"'/' | 
|---|
| 2013 | sed < djunpack.bat > djunpack.new \ | 
|---|
| 2014 | -e 's/gdb-[0-9][0-9\.]*/gdb-'"$(VER)"'/' | 
|---|
| 2015 | mv djunpack.new djunpack.bat | 
|---|
| 2016 | -rm -f proto-toplev/djunpack.bat | 
|---|
| 2017 | ln -s ../djunpack.bat proto-toplev/djunpack.bat | 
|---|
| 2018 |  | 
|---|
| 2019 | TEXINFO_SUPPORT= texinfo/texinfo.tex | 
|---|
| 2020 | DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT) | 
|---|
| 2021 |  | 
|---|
| 2022 | .PHONY: gas.tar.bz2 | 
|---|
| 2023 | GAS_SUPPORT_DIRS= bfd include libiberty opcodes intl setup.com makefile.vms mkdep | 
|---|
| 2024 | gas.tar.bz2: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas | 
|---|
| 2025 | $(MAKE) -f Makefile.in taz TOOL=gas \ | 
|---|
| 2026 | MD5PROG="$(MD5PROG)" \ | 
|---|
| 2027 | SUPPORT_FILES="$(GAS_SUPPORT_DIRS)" | 
|---|
| 2028 |  | 
|---|
| 2029 | # The FSF "binutils" release includes gprof and ld. | 
|---|
| 2030 | .PHONY: binutils.tar.bz2 | 
|---|
| 2031 | BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof intl setup.com makefile.vms mkdep | 
|---|
| 2032 | binutils.tar.bz2: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils | 
|---|
| 2033 | $(MAKE) -f Makefile.in taz TOOL=binutils \ | 
|---|
| 2034 | MD5PROG="$(MD5PROG)" \ | 
|---|
| 2035 | SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS)" | 
|---|
| 2036 |  | 
|---|
| 2037 | .PHONY: gas+binutils.tar.bz2 | 
|---|
| 2038 | GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof | 
|---|
| 2039 | gas+binutils.tar.bz2: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas | 
|---|
| 2040 | $(MAKE) -f Makefile.in taz TOOL=gas \ | 
|---|
| 2041 | MD5PROG="$(MD5PROG)" \ | 
|---|
| 2042 | SUPPORT_FILES="$(GASB_SUPPORT_DIRS)" | 
|---|
| 2043 |  | 
|---|
| 2044 | GNATS_SUPPORT_DIRS=include libiberty send-pr | 
|---|
| 2045 | gnats.tar.bz2: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats | 
|---|
| 2046 | $(MAKE) -f  Makefile.in taz TOOL=gnats \ | 
|---|
| 2047 | MD5PROG="$(MD5PROG)" \ | 
|---|
| 2048 | SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)" | 
|---|
| 2049 |  | 
|---|
| 2050 | .PHONY: gdb.tar.bz2 | 
|---|
| 2051 | GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils intl | 
|---|
| 2052 | gdb.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb | 
|---|
| 2053 | $(MAKE) -f Makefile.in gdb-taz TOOL=gdb \ | 
|---|
| 2054 | MD5PROG="$(MD5PROG)" \ | 
|---|
| 2055 | SUPPORT_FILES="$(GDB_SUPPORT_DIRS)" | 
|---|
| 2056 |  | 
|---|
| 2057 | .PHONY: dejagnu.tar.bz2 | 
|---|
| 2058 | DEJAGNU_SUPPORT_DIRS=  tcl expect libiberty | 
|---|
| 2059 | dejagnu.tar.bz2: $(DIST_SUPPORT) $(DEJAGNU_SUPPORT_DIRS) dejagnu | 
|---|
| 2060 | $(MAKE) -f Makefile.in taz TOOL=dejagnu \ | 
|---|
| 2061 | MD5PROG="$(MD5PROG)" \ | 
|---|
| 2062 | SUPPORT_FILES="$(DEJAGNU_SUPPORT_DIRS)" | 
|---|
| 2063 |  | 
|---|
| 2064 | .PHONY: gdb+dejagnu.tar.bz2 | 
|---|
| 2065 | GDBD_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl expect dejagnu | 
|---|
| 2066 | gdb+dejagnu.tar.bz2: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb | 
|---|
| 2067 | $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=gdb+dejagnu \ | 
|---|
| 2068 | MD5PROG="$(MD5PROG)" \ | 
|---|
| 2069 | SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)" | 
|---|
| 2070 |  | 
|---|
| 2071 | .PHONY: insight.tar.bz2 | 
|---|
| 2072 | INSIGHT_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl tk itcl tix libgui | 
|---|
| 2073 | insight.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb | 
|---|
| 2074 | $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=insight \ | 
|---|
| 2075 | MD5PROG="$(MD5PROG)" \ | 
|---|
| 2076 | SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)" | 
|---|
| 2077 |  | 
|---|
| 2078 | .PHONY: insight+dejagnu.tar.bz2 | 
|---|
| 2079 | INSIGHTD_SUPPORT_DIRS= $(INSIGHT_SUPPORT_DIRS) expect dejagnu | 
|---|
| 2080 | insight+dejagnu.tar.bz2: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb | 
|---|
| 2081 | $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE="insight+dejagnu" \ | 
|---|
| 2082 | MD5PROG="$(MD5PROG)" \ | 
|---|
| 2083 | SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)" | 
|---|
| 2084 |  | 
|---|
| 2085 | .PHONY: newlib.tar.bz2 | 
|---|
| 2086 | NEWLIB_SUPPORT_DIRS=libgloss | 
|---|
| 2087 | # taz configures for the sun4 target which won't configure newlib. | 
|---|
| 2088 | # We need newlib configured so that the .info files are made. | 
|---|
| 2089 | # Unfortunately, it is not enough to just configure newlib separately: | 
|---|
| 2090 | # taz will build the .info files but since SUBDIRS won't contain newlib, | 
|---|
| 2091 | # distclean won't be run (leaving Makefile, config.status, and the tmp files | 
|---|
| 2092 | # used in building the .info files, eg: *.def, *.ref). | 
|---|
| 2093 | # The problem isn't solvable however without a lot of extra work because | 
|---|
| 2094 | # target libraries are built in subdir $(target_alias) which gets nuked during | 
|---|
| 2095 | # the make distclean.  For now punt on the issue of shipping newlib info files | 
|---|
| 2096 | # with newlib net releases and wait for a day when some native target (sun4?) | 
|---|
| 2097 | # supports newlib (if only minimally). | 
|---|
| 2098 | newlib.tar.bz2: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib | 
|---|
| 2099 | $(MAKE) -f Makefile.in taz TOOL=newlib \ | 
|---|
| 2100 | MD5PROG="$(MD5PROG)" \ | 
|---|
| 2101 | SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \ | 
|---|
| 2102 | DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib | 
|---|
| 2103 |  | 
|---|
| 2104 | .NOEXPORT: | 
|---|
| 2105 | MAKEOVERRIDES= | 
|---|
| 2106 |  | 
|---|
| 2107 | # end of Makefile.in | 
|---|