Ignore:
Timestamp:
Apr 28, 2004, 6:58:06 AM (21 years ago)
Author:
bird
Message:

#1040: Joined the GCC 3.3.3 with the trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gcc/Makefile.in

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1393 r1394  
     1
     2# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
    13#
    24# Makefile for directory with subdirs to build.
    35#   Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
    4 #   1999, 2000, 2001 Free Software Foundation
     6#   1999, 2000, 2001, 2002 Free Software Foundation
    57#
    68# This file is free software; you can redistribute it and/or modify
     
    2527$(NOTPARALLEL):
    2628
    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 =
     29srcdir = @srcdir@
     30
     31prefix = @prefix@
     32exec_prefix = @exec_prefix@
     33
     34bindir = @bindir@
     35sbindir = @sbindir@
     36libexecdir = @libexecdir@
     37datadir = @datadir@
     38sysconfdir = @sysconfdir@
     39sharedstatedir = @sharedstatedir@
     40localstatedir = @localstatedir@
     41libdir = @libdir@
     42includedir = @includedir@
     43oldincludedir = @oldincludedir@
     44infodir = @infodir@
     45mandir = @mandir@
     46gxx_include_dir=@gxx_include_dir@
     47
     48tooldir = @tooldir@
     49build_tooldir = @build_tooldir@
     50
     51program_transform_name = @program_transform_name@
    5052
    5153man1dir = $(mandir)/man1
     
    5860man8dir = $(mandir)/man8
    5961man9dir = $(mandir)/man9
    60 infodir = $(prefix)/info
    61 includedir = $(prefix)/include
    6262# Directory in which the compiler finds executables, libraries, etc.
    6363libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
    6464GDB_NLM_DEPS =
    6565
    66 SHELL = /bin/sh
     66SHELL = @config_shell@
     67
     68# pwd command to use.  Allow user to override default by setting PWDCMD in
     69# the environment to account for automounters.  The make variable must not
     70# be called PWDCMD, otherwise the value set here is passed to make
     71# subprocesses and overrides the setting from the user's environment.
     72# Don't use PWD since it is a common shell environment variable and we
     73# don't want to corrupt it.
     74PWD_COMMAND = $${PWDCMD-pwd}
    6775
    6876# INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
     
    8593# here so that they can be overridden by Makefile fragments.
    8694HOST_CC = $(CC_FOR_BUILD)
    87 HOST_PREFIX =
    88 HOST_PREFIX_1 = loser-
     95BUILD_PREFIX =
     96BUILD_PREFIX_1 = loser-
    8997
    9098# These flag values are normally overridden by the configure script.
     
    119127LD = ld
    120128
    121 BZIPPROG = bzip2
    122 MD5PROG = md5sum
    123 
    124129# These values are substituted by configure.
    125 DEFAULT_YACC = yacc
    126 DEFAULT_LEX = lex
    127 DEFAULT_M4 = m4
     130DEFAULT_YACC = @DEFAULT_YACC@
     131DEFAULT_LEX = @DEFAULT_LEX@
     132DEFAULT_M4 = @DEFAULT_M4@
    128133
    129134BISON = `if [ -f $$r/bison/bison ] ; then \
     
    149154        else echo ${DEFAULT_M4} ; fi`
    150155
    151 # For an installed makeinfo, we require it to be from texinfo 4 or
     156# For an installed makeinfo, we require it to be from texinfo 4.2 or
    152157# higher, else we use the "missing" dummy.
    153158MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
    154159        then echo $$r/texinfo/makeinfo/makeinfo ; \
    155160        else if (makeinfo --version \
    156           | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
     161          | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
    157162        then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
    158163
     
    160165# sub-makes.  It lets flags be given on the command line while still
    161166# using the makeinfo from the object tree.
    162 MAKEINFOFLAGS =
     167# (Default to avoid splitting info files.)
     168MAKEINFOFLAGS = --no-split
    163169
    164170EXPECT = `if [ -f $$r/expect/expect ] ; \
     
    176182CXX_FOR_BUILD = $(CXX)
    177183
    178 SUBDIRS = "this is set via configure, don't edit this"
    179 OTHERS =
     184SUBDIRS = @configdirs@
    180185
    181186# This is set by the configure script to the list of directories which
    182187# should be built using the target tools.
    183 TARGET_CONFIGDIRS = libiberty libgloss $(SPECIAL_LIBS) newlib librx winsup opcodes bsp libstub cygmon libf2c libobjc
     188TARGET_CONFIGDIRS = @target_configdirs@
    184189
    185190# Target libraries are put under this directory:
    186191# Changed by configure to $(target_alias) if cross.
    187 TARGET_SUBDIR = .
     192TARGET_SUBDIR = @target_subdir@
    188193
    189194BUILD_CONFIGDIRS = libiberty
    190 BUILD_SUBDIR = .
     195BUILD_SUBDIR = @build_subdir@
    191196
    192197# This is set by the configure script to the arguments to use when configuring
    193198# directories built for the target.
    194 TARGET_CONFIGARGS =
     199TARGET_CONFIGARGS = @target_configargs@
    195200
    196201# This is set by the configure script to the arguments to use when configuring
    197202# directories built for the build system.
    198 BUILD_CONFIGARGS =
     203BUILD_CONFIGARGS = @build_configargs@
    199204
    200205# This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
    201206# was used.
    202 SET_LIB_PATH =
     207SET_LIB_PATH = @SET_LIB_PATH@
    203208
    204209# This is the name of the environment variable used for the path to
    205210# the libraries.  This may be changed by configure.in.
    206 RPATH_ENVVAR = LD_LIBRARY_PATH
     211RPATH_ENVVAR = @RPATH_ENVVAR@
    207212
    208213# This is the list of directories that may be needed in RPATH_ENVVAR
     
    236241
    237242# 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 =
     243FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
     244CC_FOR_TARGET = @CC_FOR_TARGET@
     245CXX_FOR_TARGET = @CXX_FOR_TARGET@
     246CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
     247GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
    243248
    244249# If GCC_FOR_TARGET is not overriden on the command line, then this
     
    246251# build libgcc2.a.  We define it here so that it can itself be
    247252# overridden on the command line.
    248 GCC_FOR_TARGET = $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
     253GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
    249254
    250255AS_FOR_TARGET = ` \
     
    486491        'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
    487492        'HOST_CC=$(CC_FOR_BUILD)' \
    488         'HOST_PREFIX=$(HOST_PREFIX)' \
    489         'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
     493        'BUILD_PREFIX=$(BUILD_PREFIX)' \
     494        'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
    490495        'NM=$(NM)' \
    491496        "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
     
    496501        "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
    497502        "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
    498         "`echo 'LIBGCC1_TEST=$(LIBGCC1_TEST)' | sed -e s/.*=$$/XFOO=/`" \
    499503        "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
    500504        "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
     
    511515ALL_BUILD_MODULES_LIST = \
    512516        all-build-libiberty
    513 ALL_BUILD_MODULES =
     517ALL_BUILD_MODULES = @all_build_modules@
    514518
    515519# This is a list of the configure targets for all of the modules which
     
    521525# using $(FLAGS_TO_PASS).
    522526ALL_MODULES = \
    523         all-apache \
    524527        all-ash \
    525528        all-autoconf \
     
    527530        all-bash \
    528531        all-bfd \
     532        all-opcodes \
    529533        all-binutils \
    530534        all-bison \
    531535        all-byacc \
    532536        all-bzip2 \
    533         all-cgen \
    534         all-cvssrc \
    535537        all-db \
    536538        all-dejagnu \
     
    549551        all-gprof \
    550552        all-grep \
    551         all-grez \
    552553        all-gzip \
    553554        all-hello \
    554555        all-indent \
    555         all-inet \
    556556        all-intl \
    557         all-ispell \
     557        all-tcl \
    558558        all-itcl \
    559559        all-ld \
     
    564564        all-make \
    565565        all-mmalloc \
    566         all-opcodes \
    567566        all-patch \
    568567        all-perl \
     
    579578        all-snavigator \
    580579        all-tar \
    581         all-tcl \
    582         all-tcl8.1 \
    583580        all-texinfo \
    584581        all-textutils \
    585         all-tgas \
    586582        all-time \
    587583        all-uudecode \
     
    605601
    606602CROSS_CHECK_MODULES = \
    607         check-apache \
    608603        check-ash \
    609604        check-autoconf \
     
    611606        check-bash \
    612607        check-bfd \
     608        check-opcodes \
    613609        check-binutils \
    614610        check-bzip2 \
    615         check-cgen \
    616         check-cvssrc \
    617611        check-db \
    618612        check-dejagnu \
     
    631625        check-hello \
    632626        check-indent \
    633         check-inet \
    634627        check-intl \
    635         check-ispell \
     628        check-tcl \
    636629        check-itcl \
    637630        check-ld \
     
    641634        check-m4 \
    642635        check-make \
    643         check-mmcheckoc \
    644         check-opcodes \
    645636        check-patch \
    646637        check-perl \
     
    652643        check-send-pr \
    653644        check-shellutils \
    654         check-snavigator \
    655645        check-sid \
    656646        check-sim \
     647        check-snavigator \
    657648        check-tar \
    658         check-tcl \
    659649        check-texinfo \
    660650        check-textutils \
    661         check-tgas \
    662651        check-time \
    663652        check-uudecode \
     
    669658# This is a list of the install targets for all of the modules which are
    670659# 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.
    676660INSTALL_MODULES = \
    677         install-apache \
    678661        install-ash \
    679662        install-autoconf \
     
    681664        install-bash \
    682665        install-bfd \
    683         install-bzip2 \
    684666        install-opcodes \
    685667        install-binutils \
    686668        install-bison \
    687669        install-byacc \
    688         install-cgen \
    689         install-cvssrc \
     670        install-bzip2 \
    690671        install-db \
    691672        install-dejagnu \
     
    704685        install-gprof \
    705686        install-grep \
    706         install-grez \
    707687        install-gzip \
    708688        install-hello \
    709689        install-indent \
    710         install-inet \
    711690        install-intl \
    712         install-ispell \
    713691        install-tcl \
    714         install-tcl8.1 \
    715692        install-itcl \
    716693        install-ld \
     
    735712        install-tar \
    736713        install-textutils \
    737         install-tgas \
    738714        install-time \
    739715        install-uudecode \
     
    745721# using $(X11_FLAGS_TO_PASS).
    746722ALL_X11_MODULES = \
    747         all-emacs \
    748         all-emacs19 \
    749723        all-gdb \
    750724        all-expect \
    751         all-gash \
    752725        all-guile \
    753726        all-tclX \
    754727        all-tk \
    755         all-tk8.1 \
    756728        all-tix
    757729
     
    759731# compiled using $(X11_FLAGS_TO_PASS).
    760732CHECK_X11_MODULES = \
    761         check-emacs \
    762733        check-gdb \
    763734        check-guile \
    764735        check-expect \
    765         check-gash \
    766736        check-tclX \
    767737        check-tk \
     
    771741# compiled using $(X11_FLAGS_TO_PASS).
    772742INSTALL_X11_MODULES = \
    773         install-emacs \
    774         install-emacs19 \
    775743        install-gdb \
    776744        install-guile \
    777745        install-expect \
    778         install-gash \
    779746        install-tclX \
    780747        install-tk \
    781         install-tk8.1 \
    782748        install-tix
    783749
     
    786752ALL_TARGET_MODULES = \
    787753        all-target-libstdc++-v3 \
    788         all-target-librx \
    789754        all-target-newlib \
    790755        all-target-libf2c \
     
    796761        all-target-gperf \
    797762        all-target-examples \
    798         all-target-libstub \
    799763        all-target-libffi \
    800764        all-target-libjava \
     
    802766        all-target-boehm-gc \
    803767        all-target-qthreads \
    804         all-target-bsp \
    805         all-target-cygmon
     768        all-target-rda
    806769
    807770# This is a list of the configure targets for all of the modules which
     
    809772CONFIGURE_TARGET_MODULES = \
    810773        configure-target-libstdc++-v3 \
    811         configure-target-librx \
    812774        configure-target-newlib \
    813775        configure-target-libf2c \
     
    819781        configure-target-gperf \
    820782        configure-target-examples \
    821         configure-target-libstub \
    822783        configure-target-libffi \
    823784        configure-target-libjava \
     
    825786        configure-target-boehm-gc \
    826787        configure-target-qthreads \
    827         configure-target-bsp \
    828         configure-target-cygmon
     788        configure-target-rda
    829789
    830790# This is a list of the check targets for all of the modules which are
     
    837797        check-target-winsup \
    838798        check-target-libiberty \
     799        check-target-gperf \
    839800        check-target-libffi \
    840801        check-target-libjava \
     
    842803        check-target-boehm-gc \
    843804        check-target-qthreads \
    844         check-target-gperf
     805        check-target-rda
    845806
    846807# This is a list of the install targets for all of the modules which are
     
    855816        install-target-libgloss \
    856817        install-target-libiberty \
    857         install-target-bsp \
     818        install-target-gperf \
     819        install-target-libffi \
    858820        install-target-libjava \
    859821        install-target-zlib \
    860822        install-target-boehm-gc \
    861823        install-target-qthreads \
    862         install-target-gperf
     824        install-target-rda
    863825
    864826# This is a list of the targets for which we can do a clean-{target}.
    865827CLEAN_MODULES = \
    866         clean-apache \
    867828        clean-ash \
    868829        clean-autoconf \
     
    870831        clean-bash \
    871832        clean-bfd \
     833        clean-opcodes \
    872834        clean-binutils \
    873835        clean-bison \
    874836        clean-byacc \
    875837        clean-bzip2 \
    876         clean-cgen \
    877         clean-cvssrc \
    878838        clean-db \
    879839        clean-dejagnu \
     
    892852        clean-gprof \
    893853        clean-grep \
    894         clean-grez \
    895854        clean-gzip \
    896855        clean-hello \
    897856        clean-indent \
    898         clean-inet \
    899857        clean-intl \
    900         clean-ispell \
     858        clean-tcl \
    901859        clean-itcl \
    902860        clean-ld \
     
    907865        clean-make \
    908866        clean-mmalloc \
    909         clean-opcodes \
    910867        clean-patch \
    911868        clean-perl \
     
    922879        clean-snavigator \
    923880        clean-tar \
    924         clean-tcl \
    925881        clean-texinfo \
    926882        clean-textutils \
    927         clean-tgas \
    928883        clean-time \
    929884        clean-uudecode \
     
    935890CLEAN_TARGET_MODULES = \
    936891        clean-target-libstdc++-v3 \
    937         clean-target-librx \
    938892        clean-target-newlib \
    939893        clean-target-libf2c \
     
    944898        clean-target-gperf \
    945899        clean-target-examples \
    946         clean-target-libstub \
    947900        clean-target-libffi \
    948901        clean-target-libjava \
     
    950903        clean-target-boehm-gc \
    951904        clean-target-qthreads \
    952         clean-target-bsp \
    953         clean-target-cygmon
     905        clean-target-rda
    954906
    955907# All of the x11 modules that can be cleaned
    956908CLEAN_X11_MODULES = \
    957         clean-emacs \
    958         clean-emacs19 \
    959909        clean-gdb \
    960910        clean-expect \
    961         clean-gash \
    962911        clean-guile \
    963912        clean-tclX \
     
    994943$(DO_X):
    995944        @target=`echo $@ | sed -e 's/^do-//'`; \
    996         r=`pwd`; export r; \
    997         s=`cd $(srcdir); pwd`; export s; \
     945        r=`${PWD_COMMAND}`; export r; \
     946        s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    998947        $(SET_LIB_PATH) \
    999948        for i in $(SUBDIRS) -dummy-; do \
     
    1021970        done
    1022971        @target=`echo $@ | sed -e 's/^do-//'`; \
    1023         r=`pwd`; export r; \
    1024         s=`cd $(srcdir); pwd`; export s; \
     972        r=`${PWD_COMMAND}`; export r; \
     973        s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    1025974        $(SET_LIB_PATH) \
    1026975        for i in $(TARGET_CONFIGDIRS) -dummy-; do \
     
    10521001
    10531002install-info: do-install-info dir.info
    1054         s=`cd $(srcdir); pwd`; export s; \
     1003        s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    10551004        if [ -f dir.info ] ; then \
    10561005          $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
     
    10871036        @dir=`echo $@ | sed -e 's/clean-//'`; \
    10881037        if [ -f ./$${dir}/Makefile ] ; then \
    1089           r=`pwd`; export r; \
    1090           s=`cd $(srcdir); pwd`; export s; \
     1038          r=`${PWD_COMMAND}`; export r; \
     1039          s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    10911040          $(SET_LIB_PATH) \
    10921041          (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
     
    11001049        rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
    11011050        if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
    1102           r=`pwd`; export r; \
    1103           s=`cd $(srcdir); pwd`; export s; \
     1051          r=`${PWD_COMMAND}`; export r; \
     1052          s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    11041053          $(SET_LIB_PATH) \
    11051054          (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
     
    11741123install.all: install-no-fixedincludes
    11751124        @if [ -f ./gcc/Makefile ] ; then \
    1176                 r=`pwd` ; export r ; \
     1125                r=`${PWD_COMMAND}` ; export r ; \
    11771126                $(SET_LIB_PATH) \
    11781127                (cd ./gcc; \
     
    11811130                true ; \
    11821131        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
    11881132
    11891133# install-no-fixedincludes is used because Cygnus can not distribute
     
    12091153          touch gcc/stmp-fixinc gcc/include/fixed; \
    12101154          rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
    1211           r=`pwd`; export r; \
    1212           s=`cd $(srcdir); pwd` ; export s; \
     1155          r=`${PWD_COMMAND}`; export r; \
     1156          s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
    12131157          $(SET_LIB_PATH) \
    12141158          (cd ./gcc; \
     
    12241168        dir=`echo $@ | sed -e 's/all-build-//'`; \
    12251169        if [ -f ./$${dir}/Makefile ] ; then \
    1226           r=`pwd`; export r; \
    1227           s=`cd $(srcdir); pwd`; export s; \
     1170          r=`${PWD_COMMAND}`; export r; \
     1171          s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    12281172          (cd $(BUILD_SUBDIR)/$${dir} && $(MAKE) all); \
    12291173        else \
     
    12431187          if [ -d $(srcdir)/$${dir} ]; then \
    12441188            [ -d $(BUILD_SUBDIR)/$${dir} ] || mkdir $(BUILD_SUBDIR)/$${dir};\
    1245             r=`pwd`; export r; \
    1246             s=`cd $(srcdir); pwd`; export s; \
     1189            r=`${PWD_COMMAND}`; export r; \
     1190            s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    12471191            AR="$(AR_FOR_BUILD)"; export AR; \
    12481192            AS="$(AS_FOR_BUILD)"; export AS; \
     
    13201264# This rule is used to build the modules which use FLAGS_TO_PASS.  To
    13211265# 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:
     1266.PHONY: $(ALL_MODULES)
     1267$(ALL_MODULES):
    13281268        @dir=`echo $@ | sed -e 's/all-//'`; \
    13291269        if [ -f ./$${dir}/Makefile ] ; then \
    1330           r=`pwd`; export r; \
    1331           s=`cd $(srcdir); pwd`; export s; \
     1270          r=`${PWD_COMMAND}`; export r; \
     1271          s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    13321272          $(SET_LIB_PATH) \
    13331273          (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
     
    13451285          dir=`echo $@ | sed -e 's/check-//'`; \
    13461286          if [ -f ./$${dir}/Makefile ] ; then \
    1347             r=`pwd`; export r; \
    1348             s=`cd $(srcdir); pwd`; export s; \
     1287            r=`${PWD_COMMAND}`; export r; \
     1288            s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    13491289            $(SET_LIB_PATH) \
    13501290            (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
     
    13571297        @dir=`echo $@ | sed -e 's/check-//'`; \
    13581298        if [ -f ./$${dir}/Makefile ] ; then \
    1359           r=`pwd`; export r; \
    1360           s=`cd $(srcdir); pwd`; export s; \
     1299          r=`${PWD_COMMAND}`; export r; \
     1300          s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    13611301          $(SET_LIB_PATH) \
    13621302          (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
     
    13711311        @dir=`echo $@ | sed -e 's/install-//'`; \
    13721312        if [ -f ./$${dir}/Makefile ] ; then \
    1373           r=`pwd`; export r; \
    1374           s=`cd $(srcdir); pwd`; export s; \
     1313          r=`${PWD_COMMAND}`; export r; \
     1314          s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    13751315          $(SET_LIB_PATH) \
    13761316          (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
     
    13851325        @dir=`echo $@ | sed -e 's/configure-target-//'`; \
    13861326        if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
    1387           r=`pwd`; export r; \
     1327          r=`${PWD_COMMAND}`; export r; \
    13881328          $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
    13891329          if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \
     
    14091349          if [ -d $(srcdir)/$${dir} ]; then \
    14101350            [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
    1411             r=`pwd`; export r; \
    1412             s=`cd $(srcdir); pwd`; export s; \
     1351            r=`${PWD_COMMAND}`; export r; \
     1352            s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    14131353            $(SET_LIB_PATH) \
    14141354            AR="$(AR_FOR_TARGET)"; export AR; \
     
    14911431        @dir=`echo $@ | sed -e 's/all-target-//'`; \
    14921432        if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
    1493           r=`pwd`; export r; \
    1494           s=`cd $(srcdir); pwd`; export s; \
     1433          r=`${PWD_COMMAND}`; export r; \
     1434          s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    14951435          $(SET_LIB_PATH) \
    14961436          (cd $(TARGET_SUBDIR)/$${dir}; \
     
    15061446        @dir=`echo $@ | sed -e 's/check-target-//'`; \
    15071447        if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
    1508           r=`pwd`; export r; \
    1509           s=`cd $(srcdir); pwd`; export s; \
     1448          r=`${PWD_COMMAND}`; export r; \
     1449          s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    15101450          $(SET_LIB_PATH) \
    15111451          (cd $(TARGET_SUBDIR)/$${dir}; \
     
    15221462        @dir=`echo $@ | sed -e 's/install-target-//'`; \
    15231463        if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
    1524           r=`pwd`; export r; \
    1525           s=`cd $(srcdir); pwd`; export s; \
     1464          r=`${PWD_COMMAND}`; export r; \
     1465          s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    15261466          $(SET_LIB_PATH) \
    15271467          (cd $(TARGET_SUBDIR)/$${dir}; \
     
    15371477        @dir=`echo $@ | sed -e 's/all-//'`; \
    15381478        if [ -f ./$${dir}/Makefile ] ; then \
    1539           r=`pwd`; export r; \
    1540           s=`cd $(srcdir); pwd`; export s; \
     1479          r=`${PWD_COMMAND}`; export r; \
     1480          s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    15411481          $(SET_LIB_PATH) \
    15421482          (cd $${dir}; \
     
    15521492        @dir=`echo $@ | sed -e 's/check-//'`; \
    15531493        if [ -f ./$${dir}/Makefile ] ; then \
    1554           r=`pwd`; export r; \
    1555           s=`cd $(srcdir); pwd`; export s; \
     1494          r=`${PWD_COMMAND}`; export r; \
     1495          s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    15561496          $(SET_LIB_PATH) \
    15571497          (cd $${dir}; \
     
    15671507        @dir=`echo $@ | sed -e 's/install-//'`; \
    15681508        if [ -f ./$${dir}/Makefile ] ; then \
    1569           r=`pwd`; export r; \
    1570           s=`cd $(srcdir); pwd`; export s; \
     1509          r=`${PWD_COMMAND}`; export r; \
     1510          s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    15711511          $(SET_LIB_PATH) \
    15721512          (cd $${dir}; \
     
    15801520all-gcc:
    15811521        @if [ -f ./gcc/Makefile ] ; then \
    1582           r=`pwd`; export r; \
    1583           s=`cd $(srcdir); pwd`; export s; \
     1522          r=`${PWD_COMMAND}`; export r; \
     1523          s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    15841524          $(SET_LIB_PATH) \
    15851525          (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
     
    15981538# in parallel.
    15991539#
    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; \
     1540.PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
     1541bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap: all-bootstrap
     1542        @r=`${PWD_COMMAND}`; export r; \
     1543        s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    16041544        $(SET_LIB_PATH) \
    16051545        echo "Bootstrapping the compiler"; \
    16061546        cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
    1607         @r=`pwd`; export r; \
    1608         s=`cd $(srcdir); pwd`; export s; \
     1547        @r=`${PWD_COMMAND}`; export r; \
     1548        s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    16091549        case "$@" in \
    16101550          *bootstrap4-lean ) \
     
    16211561        echo "$$msg"; \
    16221562        cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
    1623         @r=`pwd`; export r; \
    1624         s=`cd $(srcdir); pwd` ; export s; \
     1563        @r=`${PWD_COMMAND}`; export r; \
     1564        s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
    16251565        $(SET_LIB_PATH) \
    16261566        echo "Building runtime libraries"; \
     
    16291569.PHONY: cross
    16301570cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
    1631         @r=`pwd`; export r; \
    1632         s=`cd $(srcdir); pwd`; export s; \
     1571        @r=`${PWD_COMMAND}`; export r; \
     1572        s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    16331573        $(SET_LIB_PATH) \
    16341574        echo "Building the C and C++ compiler"; \
    16351575        cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
    1636         @r=`pwd`; export r; \
    1637         s=`cd $(srcdir); pwd` ; export s; \
     1576        @r=`${PWD_COMMAND}`; export r; \
     1577        s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
    16381578        $(SET_LIB_PATH) \
    16391579        echo "Building runtime libraries"; \
     
    16441584check-gcc:
    16451585        @if [ -f ./gcc/Makefile ] ; then \
    1646           r=`pwd`; export r; \
    1647           s=`cd $(srcdir); pwd`; export s; \
     1586          r=`${PWD_COMMAND}`; export r; \
     1587          s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    16481588          $(SET_LIB_PATH) \
    16491589          (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
     
    16521592        fi
    16531593
     1594.PHONY: check-gcc-c++
     1595check-gcc-c++:
     1596        @if [ -f ./gcc/Makefile ] ; then \
     1597          r=`${PWD_COMMAND}`; export r; \
     1598          s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
     1599          $(SET_LIB_PATH) \
     1600          (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
     1601        else \
     1602          true; \
     1603        fi
     1604
    16541605.PHONY: check-c++
    16551606check-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
     1607        $(MAKE) check-target-libstdc++-v3 check-gcc-c++ NOTPARALLEL=parallel-ok
    16651608
    16661609.PHONY: install-gcc
    16671610install-gcc:
    16681611        @if [ -f ./gcc/Makefile ] ; then \
    1669           r=`pwd`; export r; \
    1670           s=`cd $(srcdir); pwd`; export s; \
     1612          r=`${PWD_COMMAND}`; export r; \
     1613          s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    16711614          $(SET_LIB_PATH) \
    16721615          (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
     
    16781621install-gcc-cross:
    16791622        @if [ -f ./gcc/Makefile ] ; then \
    1680           r=`pwd`; export r; \
    1681           s=`cd $(srcdir); pwd`; export s; \
     1623          r=`${PWD_COMMAND}`; export r; \
     1624          s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    16821625          $(SET_LIB_PATH) \
    16831626          (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" install); \
     
    16921635        @dir=`echo $@ | sed -e 's/install-//'`; \
    16931636        if [ -f ./$${dir}/Makefile ] ; then \
    1694           r=`pwd`; export r; \
    1695           s=`cd $(srcdir); pwd`; export s; \
     1637          r=`${PWD_COMMAND}`; export r; \
     1638          s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
    16961639          $(SET_LIB_PATH) \
    16971640          (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
     
    17071650
    17081651# This is a list of inter-dependencies among modules.
    1709 all-apache:
    17101652all-ash:
    17111653all-autoconf: all-m4 all-texinfo
     
    17161658all-bison: all-texinfo
    17171659configure-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
    17211660all-byacc:
    17221661all-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
    17271662all-db:
    17281663all-dejagnu: all-tcl all-expect all-tk
    17291664all-diff: all-libiberty
    1730 all-emacs:
    1731 all-emacs19: all-bison all-byacc
    17321665all-etc:
    17331666configure-target-examples: $(ALL_GCC_C)
    1734 all-target-examples: configure-target-examples
    17351667all-expect: all-tcl all-tk
    17361668all-fileutils: all-libiberty
     
    17391671all-flex: all-libiberty all-bison all-byacc
    17401672all-gas: all-libiberty all-opcodes all-bfd all-intl
    1741 all-gash: all-tcl
    17421673all-gawk:
    17431674all-gcc: all-bison all-byacc all-binutils all-gas all-ld all-zlib
    17441675all-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
     1676GDB_TK = @GDB_TK@
    17461677all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
    17471678all-gettext:
    17481679all-gnuserv:
    17491680configure-target-gperf: $(ALL_GCC_CXX)
    1750 all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++-v3
     1681all-target-gperf: all-target-libiberty all-target-libstdc++-v3
    17511682all-gprof: all-libiberty all-bfd all-opcodes all-intl
    17521683all-grep: all-libiberty
    1753 all-grez: all-libiberty all-bfd all-opcodes
    1754 all-gui: all-gdb all-libproc all-target-librx
    17551684all-guile:
    17561685all-gzip: all-libiberty
    17571686all-hello: all-libiberty
    17581687all-indent:
    1759 all-inet: all-tcl all-send-pr all-perl
    17601688all-intl:
    1761 all-ispell: all-emacs19
    1762 all-itcl: all-tcl all-tk all-tcl8.1 all-tk8.1
     1689all-itcl: all-tcl all-tk
    17631690all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
    17641691configure-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
     1692all-target-libgloss: configure-target-newlib
     1693all-libgui: all-tcl all-tk all-itcl
    17671694all-libiberty:
    17681695
    17691696all-build-libiberty: configure-build-libiberty
    17701697
    1771 configure-target-libffi: $(ALL_GCC_C)
    1772 all-target-libffi: configure-target-libffi
     1698configure-target-libffi: $(ALL_GCC_C)
    17731699configure-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
     1700all-target-libjava: all-fastjar all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi
    17771701configure-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
     1702all-target-libstdc++-v3: all-target-libiberty
    17811703all-libtool:
    17821704configure-target-libf2c: $(ALL_GCC_C)
    1783 all-target-libf2c: configure-target-libf2c all-target-libiberty
     1705all-target-libf2c: all-target-libiberty
    17841706configure-target-libobjc: $(ALL_GCC_C)
    1785 all-target-libobjc: configure-target-libobjc all-target-libiberty
     1707all-target-libobjc: all-target-libiberty
    17861708all-m4: all-libiberty all-texinfo
    17871709all-make: all-libiberty
    17881710all-mmalloc:
    17891711configure-target-newlib: $(ALL_GCC)
    1790 all-target-newlib: configure-target-newlib
    17911712configure-target-libtermcap: $(ALL_GCC_C)
    1792 all-target-libtermcap: configure-target-libtermcap
    1793 all-opcodes: all-bfd all-libiberty all-cgen
     1713all-opcodes: all-bfd all-libiberty
    17941714all-patch: all-libiberty
    17951715all-perl:
    17961716all-prms: all-libiberty
    17971717configure-target-qthreads: $(ALL_GCC_C)
    1798 all-target-qthreads: configure-target-qthreads
    17991718all-rcs:
    18001719all-readline:
     
    18041723all-shellutils:
    18051724all-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
     1725all-sim: all-libiberty all-bfd all-opcodes all-readline
     1726all-snavigator: all-tcl all-tk all-itcl all-tix all-db all-grep all-libgui
    18081727all-tar: all-libiberty
    18091728all-tcl:
    1810 all-tcl8.1:
    18111729all-tclX: all-tcl all-tk
    18121730all-tk: all-tcl
    1813 all-tk8.1: all-tcl8.1
    18141731all-texinfo: all-libiberty
    18151732all-textutils:
    1816 all-tgas: all-libiberty all-bfd all-opcodes
    18171733all-time:
    1818 all-tix: all-tcl all-tk all-tcl8.1 all-tk8.1
     1734all-tix: all-tcl all-tk
    18191735all-wdiff:
     1736configure-target-rda: $(ALL_GCC_C)
    18201737configure-target-winsup: $(ALL_GCC_C)
    1821 all-target-winsup: all-target-libiberty all-target-libtermcap configure-target-winsup
     1738all-target-winsup: all-target-libiberty all-target-libtermcap
    18221739all-uudecode: all-libiberty
    18231740all-zip:
    18241741all-zlib:
    18251742configure-target-zlib: $(ALL_GCC_C)
    1826 all-target-zlib: configure-target-zlib
    18271743all-fastjar: all-zlib all-libiberty
    18281744configure-target-fastjar: configure-target-zlib
    18291745all-target-fastjar: configure-target-fastjar all-target-zlib all-target-libiberty
    18301746configure-target-libiberty: $(ALL_GCC_C)
    1831 all-target-libiberty: configure-target-libiberty
     1747configure-target: $(CONFIGURE_TARGET_MODULES)
    18321748all-target: $(ALL_TARGET_MODULES)
    18331749install-target: $(INSTALL_TARGET_MODULES)
    18341750install-gdb: install-tcl install-tk install-itcl install-tix install-libgui
    18351751install-sid: install-tcl install-tk
     1752
     1753# We put install-opcodes before install-binutils because the installed
     1754# binutils might be on PATH, and they might need the shared opcodes
     1755# library.
     1756install-binutils: install-opcodes
     1757
     1758# We put install-tcl before install-itcl because itcl wants to run a
     1759# program on installation which uses the Tcl libraries.
     1760install-itcl: install-tcl
     1761
     1762
     1763# Dependencies of all-target-foo on configure-target-foo.
     1764all-target-libstdc++-v3: configure-target-libstdc++-v3
     1765all-target-newlib: configure-target-newlib
     1766all-target-libf2c: configure-target-libf2c
     1767all-target-libobjc: configure-target-libobjc
     1768all-target-libtermcap: configure-target-libtermcap
     1769all-target-winsup: configure-target-winsup
     1770all-target-libgloss: configure-target-libgloss
     1771all-target-libiberty: configure-target-libiberty
     1772all-target-gperf: configure-target-gperf
     1773all-target-examples: configure-target-examples
     1774all-target-libffi: configure-target-libffi
     1775all-target-libjava: configure-target-libjava
     1776all-target-zlib: configure-target-zlib
     1777all-target-boehm-gc: configure-target-boehm-gc
     1778all-target-qthreads: configure-target-qthreads
     1779all-target-rda: configure-target-rda
     1780
     1781
    18361782### other supporting targets
    18371783
     
    18641810TAGS: do-TAGS
    18651811
     1812# Rebuilding Makefile.in, using autogen.
     1813$(srcdir)/Makefile.in: # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
     1814        cd $(srcdir) && autogen Makefile.def
     1815
    18661816# with the gnu make, this is done automatically.
    18671817
     
    18701820
    18711821#
    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_SUPPORT_DIRS= bfd include libiberty opcodes setup.com makefile.vms mkdep
    2025 gas.tar.bz2: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
    2026         $(MAKE) -f Makefile.in taz TOOL=gas \
    2027                 MD5PROG="$(MD5PROG)" \
    2028                 SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
    2029 
    2030 # The FSF "binutils" release includes gprof and ld.
    2031 .PHONY: binutils.tar.bz2
    2032 #BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof intl setup.com makefile.vms mkdep
    2033 BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof setup.com makefile.vms mkdep
    2034 binutils.tar.bz2: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
    2035         $(MAKE) -f Makefile.in taz TOOL=binutils \
    2036                 MD5PROG="$(MD5PROG)" \
    2037                 SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS)"
    2038 
    2039 .PHONY: gas+binutils.tar.bz2
    2040 GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
    2041 gas+binutils.tar.bz2: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
    2042         $(MAKE) -f Makefile.in taz TOOL=gas \
    2043                 MD5PROG="$(MD5PROG)" \
    2044                 SUPPORT_FILES="$(GASB_SUPPORT_DIRS)"
    2045 
    2046 GNATS_SUPPORT_DIRS=include libiberty send-pr
    2047 gnats.tar.bz2: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
    2048         $(MAKE) -f  Makefile.in taz TOOL=gnats \
    2049                 MD5PROG="$(MD5PROG)" \
    2050                 SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
    2051 
    2052 .PHONY: gdb.tar.bz2
    2053 #GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils intl
    2054 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils
    2055 gdb.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
    2056         $(MAKE) -f Makefile.in gdb-taz TOOL=gdb \
    2057                 MD5PROG="$(MD5PROG)" \
    2058                 SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
    2059 
    2060 .PHONY: dejagnu.tar.bz2
    2061 DEJAGNU_SUPPORT_DIRS=  tcl expect libiberty
    2062 dejagnu.tar.bz2: $(DIST_SUPPORT) $(DEJAGNU_SUPPORT_DIRS) dejagnu
    2063         $(MAKE) -f Makefile.in taz TOOL=dejagnu \
    2064                 MD5PROG="$(MD5PROG)" \
    2065                 SUPPORT_FILES="$(DEJAGNU_SUPPORT_DIRS)"
    2066 
    2067 .PHONY: gdb+dejagnu.tar.bz2
    2068 GDBD_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl expect dejagnu
    2069 gdb+dejagnu.tar.bz2: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb
    2070         $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=gdb+dejagnu \
    2071                 MD5PROG="$(MD5PROG)" \
    2072                 SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)"
    2073 
    2074 .PHONY: insight.tar.bz2
    2075 INSIGHT_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl tk itcl tix libgui
    2076 insight.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
    2077         $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=insight \
    2078                 MD5PROG="$(MD5PROG)" \
    2079                 SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)"
    2080 
    2081 .PHONY: insight+dejagnu.tar.bz2
    2082 INSIGHTD_SUPPORT_DIRS= $(INSIGHT_SUPPORT_DIRS) expect dejagnu
    2083 insight+dejagnu.tar.bz2: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb
    2084         $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE="insight+dejagnu" \
    2085                 MD5PROG="$(MD5PROG)" \
    2086                 SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)"
    2087 
    2088 .PHONY: newlib.tar.bz2
    2089 NEWLIB_SUPPORT_DIRS=libgloss
    2090 # taz configures for the sun4 target which won't configure newlib.
    2091 # We need newlib configured so that the .info files are made.
    2092 # Unfortunately, it is not enough to just configure newlib separately:
    2093 # taz will build the .info files but since SUBDIRS won't contain newlib,
    2094 # distclean won't be run (leaving Makefile, config.status, and the tmp files
    2095 # used in building the .info files, eg: *.def, *.ref).
    2096 # The problem isn't solvable however without a lot of extra work because
    2097 # target libraries are built in subdir $(target_alias) which gets nuked during
    2098 # the make distclean.  For now punt on the issue of shipping newlib info files
    2099 # with newlib net releases and wait for a day when some native target (sun4?)
    2100 # supports newlib (if only minimally).
    2101 newlib.tar.bz2: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
    2102         $(MAKE) -f Makefile.in taz TOOL=newlib \
    2103                 MD5PROG="$(MD5PROG)" \
    2104                 SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
    2105                 DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
    21061822
    21071823.NOEXPORT:
Note: See TracChangeset for help on using the changeset viewer.