1#! /usr/bin/autogen 2AutoGen definitions Makefile.tpl; 3 4// Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'. 5// This file was originally written by Nathanael Nerode. 6// 7// Copyright 2002, 2003 Free Software Foundation 8// 9// This file is free software; you can redistribute it and/or modify 10// it under the terms of the GNU General Public License as published by 11// the Free Software Foundation; either version 2 of the License, or 12// (at your option) any later version. 13// 14// This program is distributed in the hope that it will be useful, 15// but WITHOUT ANY WARRANTY; without even the implied warranty of 16// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17// GNU General Public License for more details. 18// 19// You should have received a copy of the GNU General Public License 20// along with this program; if not, write to the Free Software 21// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 23 24// "missing" indicates that that module doesn't supply 25// that recursive target in its Makefile. 26 27build_modules= { module= libiberty; }; 28build_modules= { module= bison; }; 29build_modules= { module= byacc; }; 30build_modules= { module= flex; }; 31build_modules= { module= m4; }; 32build_modules= { module= texinfo; }; 33build_modules= { module= fixincludes; 34 extra_configure_args='--target=$(target)'; }; 35 36host_modules= { module= ash; }; 37host_modules= { module= autoconf; }; 38host_modules= { module= automake; }; 39host_modules= { module= bash; }; 40host_modules= { module= bfd; bootstrap=true; }; 41host_modules= { module= opcodes; bootstrap=true; }; 42host_modules= { module= binutils; bootstrap=true; }; 43host_modules= { module= bison; no_check_cross= true; }; 44host_modules= { module= byacc; no_check_cross= true; }; 45host_modules= { module= bzip2; }; 46host_modules= { module= dejagnu; }; 47host_modules= { module= diff; }; 48host_modules= { module= dosutils; no_check= true; }; 49host_modules= { module= etc; }; 50host_modules= { module= fastjar; no_check_cross= true; }; 51host_modules= { module= fileutils; }; 52host_modules= { module= findutils; }; 53host_modules= { module= find; }; 54host_modules= { module= flex; no_check_cross= true; }; 55host_modules= { module= gas; bootstrap=true; }; 56host_modules= { module= gcc; bootstrap=true; 57 target="`if [ -f gcc/stage_last ]; then echo quickstrap ; else echo all; fi`"; 58 extra_make_flags="$(EXTRA_GCC_FLAGS)"; }; 59host_modules= { module= gawk; }; 60host_modules= { module= gettext; }; 61host_modules= { module= gnuserv; }; 62host_modules= { module= gprof; }; 63host_modules= { module= gzip; }; 64host_modules= { module= hello; }; 65host_modules= { module= indent; }; 66host_modules= { module= intl; bootstrap=true; }; 67host_modules= { module= tcl; 68 missing=mostlyclean; }; 69host_modules= { module= itcl; }; 70host_modules= { module= ld; bootstrap=true; }; 71host_modules= { module= libcpp; bootstrap=true; }; 72host_modules= { module= libgui; }; 73host_modules= { module= libiberty; bootstrap=true; }; 74host_modules= { module= libtool; }; 75host_modules= { module= m4; }; 76host_modules= { module= make; }; 77host_modules= { module= mmalloc; no_check=true; }; 78host_modules= { module= patch; }; 79host_modules= { module= perl; }; 80host_modules= { module= prms; }; 81host_modules= { module= rcs; }; 82host_modules= { module= readline; }; 83host_modules= { module= release; no_install= true; no_check= true; }; 84host_modules= { module= recode; }; 85host_modules= { module= sed; }; 86host_modules= { module= send-pr; }; 87host_modules= { module= shellutils; }; 88host_modules= { module= sid; }; 89host_modules= { module= sim; }; 90host_modules= { module= tar; }; 91host_modules= { module= texinfo; no_install= true; }; 92host_modules= { module= textutils; }; 93host_modules= { module= time; }; 94host_modules= { module= uudecode; }; 95host_modules= { module= wdiff; }; 96host_modules= { module= zip; no_check_cross=true; }; 97host_modules= { module= zlib; no_install=true; no_check=true; bootstrap=true; }; 98host_modules= { module= gdb; extra_make_flags="$(X11_FLAGS_TO_PASS)"; }; 99host_modules= { module= expect; extra_make_flags="$(X11_FLAGS_TO_PASS)"; }; 100host_modules= { module= guile; extra_make_flags="$(X11_FLAGS_TO_PASS)"; }; 101host_modules= { module= tk; extra_make_flags="$(X11_FLAGS_TO_PASS)"; }; 102host_modules= { module= libtermcap; no_check=true; 103 missing=mostlyclean; 104 missing=clean; 105 missing=distclean; 106 missing=maintainer-clean; }; 107host_modules= { module= utils; no_check=true; }; 108 109target_modules = { module= libstdc++-v3; raw_cxx=true; }; 110target_modules = { module= libmudflap; }; 111target_modules = { module= newlib; }; 112target_modules = { module= libgfortran; }; 113target_modules = { module= libobjc; }; 114target_modules = { module= libtermcap; no_check=true; stage=true; 115 missing=mostlyclean; 116 missing=clean; 117 missing=distclean; 118 missing=maintainer-clean; }; 119target_modules = { module= winsup; }; 120target_modules = { module= libgloss; no_check=true; }; 121target_modules = { module= libiberty; }; 122target_modules = { module= gperf; }; 123target_modules = { module= examples; no_check=true; no_install=true; }; 124target_modules = { module= libffi; }; 125target_modules = { module= libjava; raw_cxx=true; }; 126target_modules = { module= zlib; stage=true; }; 127target_modules = { module= boehm-gc; }; 128target_modules = { module= qthreads; }; 129target_modules = { module= rda; }; 130target_modules = { module= libada; }; 131 132// These are (some of) the make targets to be done in each subdirectory. 133// Not all; these are the ones which don't have special options. 134// "depend" indicates that a target depends on another target uniformly 135// for each subdirectory. There can be several such lines per target. 136recursive_targets = { make_target= info; 137 depend=configure; }; 138recursive_targets = { make_target= dvi; 139 depend=configure; }; 140recursive_targets = { make_target= TAGS; 141 depend=configure; }; 142recursive_targets = { make_target= install-info; 143 depend=configure; 144 depend=info; }; 145recursive_targets = { make_target= installcheck; 146 depend=configure; }; 147recursive_targets = { make_target= mostlyclean; }; 148recursive_targets = { make_target= clean; }; 149recursive_targets = { make_target= distclean; }; 150recursive_targets = { make_target= maintainer-clean; }; 151 152// Flags which need to be passed down. 153 154// Directories etc. 155flags_to_pass = { flag= DESTDIR ; }; 156flags_to_pass = { flag= RPATH_ENVVAR ; }; 157flags_to_pass = { flag= TARGET_SUBDIR ; }; 158flags_to_pass = { flag= bindir ; }; 159flags_to_pass = { flag= datadir ; }; 160flags_to_pass = { flag= exec_prefix ; }; 161flags_to_pass = { flag= includedir ; }; 162flags_to_pass = { flag= infodir ; }; 163flags_to_pass = { flag= libdir ; }; 164flags_to_pass = { flag= libexecdir ; }; 165flags_to_pass = { flag= lispdir ; }; 166flags_to_pass = { flag= libstdcxx_incdir ; }; 167flags_to_pass = { flag= libsubdir ; }; 168flags_to_pass = { flag= localstatedir ; }; 169flags_to_pass = { flag= mandir ; }; 170flags_to_pass = { flag= oldincludedir ; }; 171flags_to_pass = { flag= prefix ; }; 172flags_to_pass = { flag= sbindir ; }; 173flags_to_pass = { flag= sharedstatedir ; }; 174flags_to_pass = { flag= sysconfdir ; }; 175flags_to_pass = { flag= tooldir ; }; 176flags_to_pass = { flag= build_tooldir ; }; 177flags_to_pass = { flag= gxx_include_dir ; }; 178flags_to_pass = { flag= gcc_version ; }; 179flags_to_pass = { flag= gcc_version_trigger ; }; 180flags_to_pass = { flag= target_alias ; }; 181 182// Build tools 183flags_to_pass = { flag= BISON ; }; 184flags_to_pass = { flag= CC_FOR_BUILD ; }; 185flags_to_pass = { flag= CXX_FOR_BUILD ; }; 186flags_to_pass = { flag= EXPECT ; }; 187flags_to_pass = { flag= FLEX ; }; 188flags_to_pass = { flag= INSTALL ; }; 189flags_to_pass = { flag= INSTALL_DATA ; }; 190flags_to_pass = { flag= INSTALL_PROGRAM ; }; 191flags_to_pass = { flag= INSTALL_SCRIPT ; }; 192flags_to_pass = { flag= LEX ; }; 193flags_to_pass = { flag= M4 ; }; 194flags_to_pass = { flag= MAKE ; }; 195flags_to_pass = { flag= RUNTEST ; }; 196flags_to_pass = { flag= RUNTESTFLAGS ; }; 197flags_to_pass = { flag= SHELL ; }; 198flags_to_pass = { flag= YACC ; }; 199 200// Host tools 201flags_to_pass = { flag= AR_FLAGS ; }; 202flags_to_pass = { flag= CFLAGS ; }; 203flags_to_pass = { flag= CXXFLAGS ; }; 204flags_to_pass = { flag= LDFLAGS ; }; 205flags_to_pass = { flag= LIBCFLAGS ; }; 206flags_to_pass = { flag= LIBCXXFLAGS ; }; 207 208// Target tools 209flags_to_pass = { flag= AR_FOR_TARGET ; }; 210flags_to_pass = { flag= AS_FOR_TARGET ; }; 211flags_to_pass = { flag= CC_FOR_TARGET ; }; 212flags_to_pass = { flag= CFLAGS_FOR_TARGET ; }; 213flags_to_pass = { flag= CXX_FOR_TARGET ; }; 214flags_to_pass = { flag= CXXFLAGS_FOR_TARGET ; }; 215flags_to_pass = { flag= DLLTOOL_FOR_TARGET ; }; 216flags_to_pass = { flag= GCJ_FOR_TARGET ; }; 217flags_to_pass = { flag= GFORTRAN_FOR_TARGET ; }; 218flags_to_pass = { flag= LD_FOR_TARGET ; }; 219flags_to_pass = { flag= LIBCFLAGS_FOR_TARGET ; }; 220flags_to_pass = { flag= LIBCXXFLAGS_FOR_TARGET ; }; 221flags_to_pass = { flag= NM_FOR_TARGET ; }; 222flags_to_pass = { flag= RANLIB_FOR_TARGET ; }; 223flags_to_pass = { flag= WINDRES_FOR_TARGET ; }; 224 225// Inter-module dependencies 226 227// Build modules 228dependencies = { module=all-build-bison; on=all-build-texinfo; }; 229dependencies = { module=all-build-byacc; on=all-build-texinfo; }; 230dependencies = { module=all-build-flex; on=all-build-texinfo; }; 231dependencies = { module=all-build-flex; on=all-build-bison; }; 232dependencies = { module=all-build-flex; on=all-build-byacc; }; 233dependencies = { module=all-build-flex; on=all-build-m4; }; 234dependencies = { module=all-build-libiberty; on=all-build-texinfo; }; 235dependencies = { module=all-build-m4; on=all-build-texinfo; }; 236dependencies = { module=all-build-fixincludes; on=all-build-libiberty; }; 237 238// Host modules specific to gcc. 239dependencies = { module=configure-gcc; on=configure-intl; }; 240dependencies = { module=configure-gcc; on=configure-binutils; }; 241dependencies = { module=configure-gcc; on=configure-gas; }; 242dependencies = { module=configure-gcc; on=configure-ld; }; 243dependencies = { module=all-gcc; on=all-libiberty; hard=true; }; 244dependencies = { module=all-gcc; on=all-intl; }; 245dependencies = { module=all-gcc; on=all-build-texinfo; }; 246dependencies = { module=all-gcc; on=all-build-bison; }; 247dependencies = { module=all-gcc; on=all-build-byacc; }; 248dependencies = { module=all-gcc; on=all-build-flex; }; 249dependencies = { module=all-gcc; on=all-build-libiberty; }; 250dependencies = { module=all-gcc; on=all-build-fixincludes; }; 251dependencies = { module=all-gcc; on=all-binutils; }; 252dependencies = { module=all-gcc; on=all-gas; }; 253dependencies = { module=all-gcc; on=all-ld; }; 254dependencies = { module=all-gcc; on=all-zlib; }; 255dependencies = { module=all-gcc; on=all-libcpp; hard=true; }; 256dependencies = { module=all-gcc; on=all-build-libiberty; }; 257 258dependencies = { module=configure-libcpp; on=configure-libiberty; hard=true; }; 259dependencies = { module=configure-libcpp; on=configure-intl; }; 260dependencies = { module=all-libcpp; on=all-libiberty; hard=true; }; 261dependencies = { module=all-libcpp; on=all-intl; }; 262 263// Host modules specific to gdb. 264dependencies = { module=configure-gdb; on=configure-itcl; }; 265dependencies = { module=configure-gdb; on=configure-tcl; }; 266dependencies = { module=configure-gdb; on=configure-tk; }; 267dependencies = { module=configure-gdb; on=configure-sim; }; 268dependencies = { module=all-gdb; on=all-libiberty; }; 269dependencies = { module=all-gdb; on=all-opcodes; }; 270dependencies = { module=all-gdb; on=all-bfd; }; 271dependencies = { module=all-gdb; on=all-readline; }; 272dependencies = { module=all-gdb; on=all-build-bison; }; 273dependencies = { module=all-gdb; on=all-build-byacc; }; 274dependencies = { module=all-gdb; on=all-sim; }; 275dependencies = { module=install-gdb; on=install-tcl; }; 276dependencies = { module=install-gdb; on=install-tk; }; 277dependencies = { module=install-gdb; on=install-itcl; }; 278dependencies = { module=install-gdb; on=install-libgui; }; 279 280dependencies = { module=configure-libgui; on=configure-tcl; }; 281dependencies = { module=configure-libgui; on=configure-tk; }; 282dependencies = { module=all-libgui; on=all-tcl; }; 283dependencies = { module=all-libgui; on=all-tk; }; 284dependencies = { module=all-libgui; on=all-itcl; }; 285 286// Host modules specific to binutils. 287dependencies = { module=configure-bfd; on=configure-libiberty; hard=true; }; 288dependencies = { module=all-bfd; on=all-libiberty; }; 289dependencies = { module=all-bfd; on=all-intl; }; 290 291dependencies = { module=all-binutils; on=all-libiberty; }; 292dependencies = { module=all-binutils; on=all-opcodes; }; 293dependencies = { module=all-binutils; on=all-bfd; }; 294dependencies = { module=all-binutils; on=all-build-flex; }; 295dependencies = { module=all-binutils; on=all-build-bison; }; 296dependencies = { module=all-binutils; on=all-build-byacc; }; 297dependencies = { module=all-binutils; on=all-intl; }; 298 299// We put install-opcodes before install-binutils because the installed 300// binutils might be on PATH, and they might need the shared opcodes 301// library. 302dependencies = { module=install-binutils; on=install-opcodes; }; 303 304// libopcodes depends on libbfd 305dependencies = { module=install-opcodes; on=install-bfd; }; 306 307dependencies = { module=all-gas; on=all-libiberty; }; 308dependencies = { module=all-gas; on=all-opcodes; }; 309dependencies = { module=all-gas; on=all-bfd; }; 310dependencies = { module=all-gas; on=all-intl; }; 311dependencies = { module=all-gprof; on=all-libiberty; }; 312dependencies = { module=all-gprof; on=all-bfd; }; 313dependencies = { module=all-gprof; on=all-opcodes; }; 314dependencies = { module=all-gprof; on=all-intl; }; 315dependencies = { module=all-ld; on=all-libiberty; }; 316dependencies = { module=all-ld; on=all-bfd; }; 317dependencies = { module=all-ld; on=all-opcodes; }; 318dependencies = { module=all-ld; on=all-build-bison; }; 319dependencies = { module=all-ld; on=all-build-byacc; }; 320dependencies = { module=all-ld; on=all-build-flex; }; 321dependencies = { module=all-ld; on=all-intl; }; 322 323dependencies = { module=all-opcodes; on=all-bfd; }; 324dependencies = { module=all-opcodes; on=all-libiberty; }; 325 326// Other host modules in the 'src' repository. 327dependencies = { module=all-dejagnu; on=all-tcl; }; 328dependencies = { module=all-dejagnu; on=all-expect; }; 329dependencies = { module=all-dejagnu; on=all-tk; }; 330dependencies = { module=configure-expect; on=configure-tcl; }; 331dependencies = { module=configure-expect; on=configure-tk; }; 332dependencies = { module=all-expect; on=all-tcl; }; 333dependencies = { module=all-expect; on=all-tk; }; 334 335// We put install-tcl before install-itcl because itcl wants to run a 336// program on installation which uses the Tcl libraries. 337dependencies = { module=configure-itcl; on=configure-tcl; }; 338dependencies = { module=configure-itcl; on=configure-tk; }; 339dependencies = { module=all-itcl; on=all-tcl; }; 340dependencies = { module=all-itcl; on=all-tk; }; 341dependencies = { module=install-itcl; on=install-tcl; }; 342 343dependencies = { module=configure-tk; on=configure-tcl; }; 344dependencies = { module=all-tk; on=all-tcl; }; 345 346dependencies = { module=all-sid; on=all-libiberty; }; 347dependencies = { module=all-sid; on=all-bfd; }; 348dependencies = { module=all-sid; on=all-opcodes; }; 349dependencies = { module=all-sid; on=all-tcl; }; 350dependencies = { module=all-sid; on=all-tk; }; 351dependencies = { module=install-sid; on=install-tcl; }; 352dependencies = { module=install-sid; on=install-tk; }; 353 354dependencies = { module=all-sim; on=all-libiberty; }; 355dependencies = { module=all-sim; on=all-bfd; }; 356dependencies = { module=all-sim; on=all-opcodes; }; 357dependencies = { module=all-sim; on=all-readline; }; 358dependencies = { module=all-sim; on=configure-gdb; }; 359 360// Other host modules. 361dependencies = { module=all-fastjar; on=all-zlib; }; 362dependencies = { module=all-fastjar; on=all-build-texinfo; }; 363dependencies = { module=all-fastjar; on=all-libiberty; }; 364 365// Warning, these are not well tested. 366dependencies = { module=all-autoconf; on=all-m4; }; 367dependencies = { module=all-autoconf; on=all-build-texinfo; }; 368dependencies = { module=all-automake; on=all-m4; }; 369dependencies = { module=all-automake; on=all-build-texinfo; }; 370dependencies = { module=all-automake; on=all-autoconf; }; 371dependencies = { module=all-bison; on=all-intl; }; 372dependencies = { module=all-bison; on=all-build-texinfo; }; 373dependencies = { module=all-diff; on=all-intl; }; 374dependencies = { module=all-diff; on=all-build-texinfo; }; 375dependencies = { module=all-fileutils; on=all-intl; }; 376dependencies = { module=all-fileutils; on=all-build-texinfo; }; 377dependencies = { module=all-flex; on=all-build-bison; }; 378dependencies = { module=all-flex; on=all-build-byacc; }; 379dependencies = { module=all-flex; on=all-intl; }; 380dependencies = { module=all-flex; on=all-m4; }; 381dependencies = { module=all-flex; on=all-build-texinfo; }; 382dependencies = { module=all-gzip; on=all-intl; }; 383dependencies = { module=all-gzip; on=all-zlib; }; 384dependencies = { module=all-gzip; on=all-build-texinfo; }; 385dependencies = { module=all-hello; on=all-intl; }; 386dependencies = { module=all-hello; on=all-build-texinfo; }; 387dependencies = { module=all-m4; on=all-intl; }; 388dependencies = { module=all-m4; on=all-build-texinfo; }; 389dependencies = { module=all-make; on=all-intl; }; 390dependencies = { module=all-make; on=all-build-texinfo; }; 391dependencies = { module=all-patch; on=all-build-texinfo; }; 392dependencies = { module=all-make; on=all-build-texinfo; }; 393dependencies = { module=all-prms; on=all-libiberty; }; 394dependencies = { module=all-recode; on=all-build-texinfo; }; 395dependencies = { module=all-sed; on=all-build-texinfo; }; 396dependencies = { module=all-send-pr; on=all-prms; }; 397dependencies = { module=all-tar; on=all-build-texinfo; }; 398dependencies = { module=all-uudecode; on=all-build-texinfo; }; 399 400// Target modules. These can also have dependencies on the language 401// environment (e.g. on libstdc++). 402lang_env_dependencies = { module=boehm-gc; }; 403lang_env_dependencies = { module=gperf; cxx=true; }; 404lang_env_dependencies = { module=libada; }; 405lang_env_dependencies = { module=libgfortran; }; 406lang_env_dependencies = { module=libffi; }; 407lang_env_dependencies = { module=libjava; cxx=true; }; 408lang_env_dependencies = { module=libobjc; }; 409lang_env_dependencies = { module=libstdc++-v3; }; 410lang_env_dependencies = { module=zlib; }; 411 412dependencies = { module=configure-target-boehm-gc; on=configure-target-qthreads; }; 413dependencies = { module=configure-target-fastjar; on=configure-target-zlib; }; 414dependencies = { module=all-target-fastjar; on=all-target-zlib; }; 415dependencies = { module=all-target-fastjar; on=all-target-libiberty; }; 416dependencies = { module=configure-target-libjava; on=configure-target-zlib; }; 417dependencies = { module=configure-target-libjava; on=configure-target-boehm-gc; }; 418dependencies = { module=configure-target-libjava; on=configure-target-qthreads; }; 419dependencies = { module=configure-target-libjava; on=configure-target-libffi; }; 420dependencies = { module=all-target-libjava; on=all-fastjar; }; 421dependencies = { module=all-target-libjava; on=all-target-zlib; }; 422dependencies = { module=all-target-libjava; on=all-target-boehm-gc; }; 423dependencies = { module=all-target-libjava; on=all-target-qthreads; }; 424dependencies = { module=all-target-libjava; on=all-target-libffi; }; 425dependencies = { module=all-target-libobjc; on=all-target-libiberty; }; 426dependencies = { module=all-target-libstdc++-v3; on=all-target-libiberty; }; 427 428// Target modules in the 'src' repository. 429lang_env_dependencies = { module=examples; }; 430lang_env_dependencies = { module=libtermcap; }; 431lang_env_dependencies = { module=rda; }; 432lang_env_dependencies = { module=winsup; }; 433lang_env_dependencies = { module=qthreads; }; 434 435dependencies = { module=all-target-libgloss; on=configure-target-newlib; }; 436dependencies = { module=all-target-winsup; on=all-target-libiberty; }; 437dependencies = { module=all-target-winsup; on=all-target-libtermcap; }; 438 439// Toplevel bootstrap 440bootstrap_stage = { 441 id=1 ; 442 stage_configure_flags='--disable-intermodule \ 443 --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"' ; 444 stage_make_flags='CFLAGS="$(STAGE1_CFLAGS)"' ; }; 445bootstrap_stage = { 446 id=2 ; prev=1 ; 447 bootstrap_target=bootstrap2 ; 448 stage_configure_flags="@stage2_werror_flag@" ; 449 stage_make_flags="" ; }; 450bootstrap_stage = { 451 id=3 ; prev=2 ; lean=1 ; 452 compare_target=compare ; 453 bootstrap_target=bootstrap ; 454 cleanstrap_target=cleanstrap ; 455 stage_configure_flags="@stage2_werror_flag@" ; 456 stage_make_flags="" ; }; 457bootstrap_stage = { 458 id=4 ; prev=3 ; lean=2 ; 459 compare_target=compare3 ; 460 bootstrap_target=bootstrap4 ; 461 stage_configure_flags="@stage2_werror_flag@" ; 462 stage_make_flags="" ; }; 463bootstrap_stage = { 464 id=profile ; prev=1 ; 465 stage_configure_flags="@stage2_werror_flag@" ; 466 stage_make_flags='CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"' ; }; 467bootstrap_stage = { 468 id=feedback ; prev=1 ; 469 stage_configure_flags="@stage2_werror_flag@" ; 470 stage_make_flags='CFLAGS="$(BOOT_CFLAGS) -fprofile-use"' ; }; 471