Annotation of gcc/Makefile.in, revision 1.1.1.6

1.1       root        1: # Makefile for GNU C compiler.
1.1.1.5   root        2: #   Copyright (C) 1987, 88, 90, 91, 92, 1993 Free Software Foundation, Inc.
1.1       root        3: 
                      4: #This file is part of GNU CC.
                      5: 
                      6: #GNU CC 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, or (at your option)
                      9: #any later version.
                     10: 
                     11: #GNU CC 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 GNU CC; see the file COPYING.  If not, write to
                     18: #the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
                     19: 
                     20: # The targets for external use include:
                     21: # all, doc, proto, install, install-cross, install-cross-rest,
1.1.1.2   root       22: # uninstall, TAGS, mostlyclean, clean, distclean, realclean,
1.1       root       23: # stage1, stage2, stage3, stage4.
                     24: 
1.1.1.2   root       25: # Suppress smart makes who think they know how to automake Yacc files
                     26: .y.c:
                     27: 
1.1       root       28: # Variables that exist for you to override.
                     29: # See below for how to change them for certain systems.
                     30: 
                     31: # Selection of languages to be made.
                     32: LANGUAGES = c c++ objective-c proto
                     33: 
                     34: ALLOCA =
1.1.1.4   root       35: ALLOCA_FLAGS =
                     36: ALLOCA_FINISH = true
1.1       root       37: 
                     38: # Various ways of specifying flags for compilations:  
                     39: # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
                     40: # BOOT_CFLAGS is the value of CFLAGS to pass
                     41: # to the stage2 and stage3 compilations
                     42: # XCFLAGS is used for most compilations but not when using the GCC just built.
                     43: XCFLAGS =
                     44: CFLAGS = -g
                     45: BOOT_CFLAGS = -O $(CFLAGS)
                     46: # These exists to be overridden by the x-* and t-* files, respectively.
                     47: X_CFLAGS =
                     48: T_CFLAGS =
                     49: 
                     50: X_CPPFLAGS =
                     51: T_CPPFLAGS =
                     52: 
                     53: CC = cc
                     54: BISON = bison
                     55: BISONFLAGS =
                     56: AR = ar
                     57: OLDAR_FLAGS = qc
                     58: AR_FLAGS = rc
                     59: SHELL = /bin/sh
                     60: # on sysV, define this as cp.
                     61: INSTALL = install -c
                     62: # These permit overriding just for certain files.
                     63: INSTALL_PROGRAM = $(INSTALL)
                     64: INSTALL_DATA = $(INSTALL)
                     65: SYMLINK = ln -s
1.1.1.5   root       66: MAKEINFO = makeinfo
                     67: TEXI2DVI = texi2dvi
1.1       root       68: 
                     69: # Define this as & to perform parallel make on a Sequent.
                     70: # Note that this has some bugs, and it seems currently necessary 
                     71: # to compile all the gen* files first by hand to avoid erroneous results.
                     72: P =
                     73: 
                     74: # How to invoke ranlib.
                     75: RANLIB = ranlib
                     76: # Test to use to see whether ranlib exists on the system.
                     77: RANLIB_TEST = [ -f /usr/bin/ranlib -o -f /bin/ranlib ]
                     78: 
                     79: # Compiler to use for compiling libgcc1.a.
                     80: # OLDCC should not be the GNU C compiler,
                     81: # since that would compile typical libgcc1.a functions such as mulsi3
                     82: # into infinite recursions.
                     83: OLDCC = cc
                     84: 
                     85: # CFLAGS for use with OLDCC, for compiling libgcc1.a.
                     86: # NOTE: -O does not work on some Unix systems!
                     87: CCLIBFLAGS = -O
                     88: 
1.1.1.2   root       89: # Version of ar to use when compiling libgcc1.a.
1.1       root       90: OLDAR = ar
                     91: 
1.1.1.5   root       92: # Target to use when installing include directory.  Either
                     93: # install-headers-tar or install-headers-cpio.
                     94: INSTALL_HEADERS_DIR = install-headers-tar
                     95: 
1.1.1.4   root       96: # The GCC to use for compiling libgcc2.a, enquire, and cross-test.
                     97: # Usually the one we just built.
1.1       root       98: # Don't use this as a dependency--use $(GCC_PASSES) or $(GCC_PARTS).
1.1.1.4   root       99: GCC_FOR_TARGET = ./xgcc -B./
1.1       root      100: 
                    101: # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
                    102: # It omits XCFLAGS, and specifies -B./.
1.1.1.4   root      103: # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
1.1.1.5   root      104: GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS)
1.1       root      105: 
                    106: # Special flags for compiling enquire.
                    107: # We disable optimization to make floating point more reliable.
1.1.1.4   root      108: ENQUIRE_CFLAGS = -DNO_MEM -DNO_STDDEF -DNO_LONG_DOUBLE_IO -O0
1.1       root      109: ENQUIRE_LDFLAGS = $(LDFLAGS)
                    110: 
                    111: # Tools to use when building a cross-compiler.
                    112: # These are used because `configure' appends `cross-make'
                    113: # to the makefile when making a cross-compiler.
                    114: 
                    115: TARGET_TOOLPREFIX = $(tooldir)/bin/
                    116: AR_FOR_TARGET = $(TARGET_TOOLPREFIX)ar
                    117: AR_FOR_TARGET_FLAGS = rc
                    118: RANLIB_FOR_TARGET = $(TARGET_TOOLPREFIX)ranlib
                    119: RANLIB_TEST_FOR_TARGET = [ -f $(TARGET_TOOLPREFIX)ranlib ]
                    120: 
1.1.1.4   root      121: # Dir to search for system headers.  Overridden by cross-make.
                    122: SYSTEM_HEADER_DIR = /usr/include
                    123: 
1.1.1.6 ! root      124: # Control whether to run fixproto.
        !           125: STMP_FIXPROTO = stmp-fixproto
        !           126: 
1.1.1.3   root      127: # There may be a premade insn-attrtab.c for this machine.
                    128: # (You could rebuild it with genattrtab as usual, but it takes a long time.)
                    129: # PREMADE_ATTRTAB is the file name of the file to use.
                    130: # PREMADE_ATTRTAB_MD is the md file it corresponds to.
                    131: PREMADE_ATTRTAB_MD = Makefile  # Guaranteed not to cmp equal to md.
                    132: PREMADE_ATTRTAB = 
                    133: 
1.1       root      134: target= ... `configure' substitutes actual target name here.
                    135: xmake_file= ... `configure' substitutes actual x- file name here.
                    136: tmake_file= ... `configure' substitutes actual t- file name here.
1.1.1.4   root      137: version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
1.1.1.6 ! root      138: mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
1.1       root      139: 
                    140: # Directory where sources are, from where we are.
                    141: srcdir = .
                    142: # Common prefix for installation directories.
                    143: # NOTE: This directory must exist when you start installation.
                    144: prefix = /usr/local
1.1.1.5   root      145: # Directory in which to put localized header files. On the systems with
                    146: # gcc as the native cc, `local_prefix' may not be `prefix' which is
                    147: # `/usr'.
                    148: # NOTE: local_prefix *should not* default from prefix.
                    149: local_prefix = /usr/local
1.1.1.2   root      150: # Directory in which to put host dependent programs and libraries
                    151: exec_prefix = $(prefix)
1.1       root      152: # Directory in which to put the executable for the command `gcc'
1.1.1.2   root      153: bindir = $(exec_prefix)/bin
1.1       root      154: # Directory in which to put the directories used by the compiler.
1.1.1.2   root      155: libdir = $(exec_prefix)/lib
1.1       root      156: # Directory in which the compiler finds executables, libraries, etc.
1.1.1.2   root      157: libsubdir = $(libdir)/gcc-lib/$(target)/$(version)
1.1.1.5   root      158: # Directory to search for site-specific includes.
                    159: includedir = $(local_prefix)/include
1.1.1.4   root      160: # assertdir is overridden in cross-make.
1.1.1.5   root      161: # (But this currently agrees with what is in cross-make.)
                    162: assertdir = $(tooldir)/include
                    163: # where the info files go
                    164: infodir = $(prefix)/info
1.1       root      165: # Extension (if any) to put in installed man-page filename.
                    166: manext = .1
                    167: # Directory in which to put man pages.
                    168: mandir = $(prefix)/man/man1
                    169: # Directory in which to find other cross-compilation tools and headers.
                    170: # Used in install-cross.
1.1.1.5   root      171: tooldir = $(exec_prefix)/$(target)
1.1.1.4   root      172: # Dir for temp files.
                    173: tmpdir = /tmp
1.1       root      174: 
                    175: # Additional system libraries to link with.
                    176: CLIB=
                    177: 
                    178: # Change this to a null string if obstacks are installed in the
                    179: # system library.
                    180: OBSTACK=obstack.o
                    181: 
1.1.1.6 ! root      182: # Specify the rule for actually making libgcc.a,
        !           183: LIBGCC = libgcc.a
        !           184: # and the rule for installing it.
        !           185: INSTALL_LIBGCC = install-libgcc
        !           186: 
1.1       root      187: # Specify the rule for actually making libgcc1.a.
1.1.1.2   root      188: # The value may be empty; that means to do absolutely nothing
                    189: # with or for libgcc1.a.
1.1       root      190: LIBGCC1 = libgcc1.a
                    191: 
1.1.1.6 ! root      192: # Specify the rule for making libgcc1.a for a cross-compiler.
        !           193: # The default rule assumes that libgcc1.a is supplied by the user.
        !           194: CROSS_LIBGCC1 = libgcc1.cross
        !           195: 
1.1       root      196: # Specify the rule for actually making libgcc2.a.
                    197: LIBGCC2 = libgcc2.a
                    198: 
                    199: # Options to use when compiling libgcc2.a.
                    200: # -g1 causes output of debug info only for file-scope entities.
                    201: # we use this here because that should be enough, and also
                    202: # so that -g1 will be tested.
1.1.1.5   root      203: LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) -g1
                    204: 
                    205: # Additional options to use when compiling libgcc2.a.
                    206: # Some targets override this to -Iinclude
                    207: LIBGCC2_INCLUDES =
                    208: 
                    209: # Things which must be built before building libgcc2.a.
                    210: # Some targets override this to stmp-int-hdrs
                    211: LIBGCC2_DEPS =
1.1       root      212: 
1.1.1.6 ! root      213: # Enquire target (This is a variable so that a target can choose not to
        !           214: # build it.)
        !           215: ENQUIRE = enquire
        !           216: 
        !           217: # Cross-test target (must also be overridable for a target)
        !           218: CROSS_TEST = cross-test
        !           219: 
1.1       root      220: # List of extra executables that should be compiled for this target machine
                    221: # that are used for compiling from source code to object code.
                    222: # The rules for compiling them should be in the t-* file for the machine.
                    223: EXTRA_PASSES =
                    224: 
1.1.1.2   root      225: # Like EXTRA_PASSES, but these are used when linking.
                    226: EXTRA_PROGRAMS = 
                    227: 
                    228: # List of extra object files that should be compiled for this target machine.
1.1       root      229: # The rules for compiling them should be in the t-* file for the machine.
                    230: EXTRA_PARTS =
                    231: 
                    232: # List of extra object files that should be compiled and linked with
                    233: # compiler proper (cc1, cc1obj, cc1plus).
                    234: EXTRA_OBJS =
                    235: 
1.1.1.3   root      236: # List of additional header files to install.
                    237: # Often this is edited directly by `configure'.
                    238: EXTRA_HEADERS =
                    239: 
                    240: # Set this to `ld' to enable use of collect2.
                    241: # USE_COLLECT2 =
                    242: # It is convenient for configure to add the assignment at the beginning,
                    243: # so don't override it here.
                    244: 
1.1       root      245: # List of extra C and assembler files to add to libgcc1.a.
                    246: # Assembler files should have names ending in `.asm'.
                    247: LIB1FUNCS_EXTRA = 
                    248: 
                    249: # List of extra C and assembler files to add to libgcc2.a.
                    250: # Assembler files should have names ending in `.asm'.
                    251: LIB2FUNCS_EXTRA = 
                    252: 
1.1.1.5   root      253: # Default float.h source to use for cross-compiler.
                    254: CROSS_FLOAT_H=float.h-cross
                    255: 
1.1       root      256: # Program to convert libraries.
                    257: LIBCONVERT = 
                    258: 
                    259: # Control whether header files are installed.
                    260: INSTALL_HEADERS=install-headers
                    261: 
1.1.1.5   root      262: # Options for tar when copying trees.  So HPUX can override it.
                    263: TAROUTOPTS = xpBf
                    264: 
1.1       root      265: # Select which version of fixincludes to use (I.E. regular versus SVR4)
1.1.1.5   root      266: # This value is overridden directly by configure.
1.1       root      267: FIXINCLUDES=fixincludes
                    268: 
1.1.1.4   root      269: # Additional directories of header files to run fixincludes on.
1.1.1.5   root      270: # These should be directories searched automatically by default
                    271: # just as /usr/include is.
                    272: # *Do not* use this for directories that happen to contain 
                    273: # header files, but are not searched automatically by default.
1.1.1.4   root      274: # On most systems, this is empty.
                    275: OTHER_FIXINCLUDES_DIRS=
                    276: 
                    277: # List of things which should already be built whenever we try to use xgcc
1.1       root      278: # to compile anything (without linking).
1.1.1.4   root      279: GCC_PASSES=xgcc cc1 cpp $(EXTRA_PASSES)
1.1       root      280: 
1.1.1.4   root      281: # List of things which should already be built whenever we try to use xgcc
1.1       root      282: # to link anything.
1.1.1.6 ! root      283: GCC_PARTS=$(GCC_PASSES) $(LIBGCC) $(EXTRA_PROGRAMS) $(USE_COLLECT2) $(EXTRA_PARTS)
1.1       root      284: 
                    285: # Directory to link to, when using the target `maketest'.
                    286: DIR = ../gcc
                    287: 
1.1.1.6 ! root      288: # Guaranteed to not exist when not passing md through cpp.
        !           289: MD_FILE = md-cpp-not-used
        !           290: 
1.1       root      291: # Flags to use when cross-building GCC.
                    292: # Prefix to apply to names of object files when using them
                    293: # to run on the machine we are compiling on.
                    294: HOST_PREFIX=
                    295: # Prefix to apply to names of object files when compiling them
                    296: # to run on the machine we are compiling on.
                    297: # The default for this variable is chosen to keep these rules 
                    298: # out of the way of the other rules for compiling the same source files.
                    299: HOST_PREFIX_1=loser-
                    300: HOST_CC=$(CC)
                    301: HOST_CFLAGS=$(ALL_CFLAGS)
                    302: HOST_CLIB=$(CLIB)
                    303: HOST_LDFLAGS=$(LDFLAGS)
                    304: HOST_CPPFLAGS=$(ALL_CPPFLAGS)
                    305: HOST_ALLOCA=$(ALLOCA)
                    306: HOST_MALLOC=$(MALLOC)
                    307: HOST_OBSTACK=$(OBSTACK)
                    308: 
                    309: # Choose the real default target.
                    310: ALL=all.internal
                    311: 
                    312: # Choose the real install target.
1.1.1.5   root      313: INSTALL_TARGET=install-normal
                    314: 
                    315: # Source for float.h.  Overridden by cross-make.
                    316: FLOAT_H=float.h-nat
1.1       root      317: 
                    318: # End of variables for you to override.
                    319: 
                    320: # Definition of `all' is here so that new rules inserted by sed
                    321: # do not specify the default target.
                    322: # The real definition is under `all.internal' (for native compilers)
                    323: # or `all.cross' (for cross compilers).
1.1.1.2   root      324: all: all.indirect
1.1       root      325: 
1.1.1.3   root      326: # This tells GNU Make version 3 not to put all variables in the environment.
                    327: .NOEXPORT:
                    328: 
1.1       root      329: # sed inserts variable overrides after the following line.
1.1.1.4   root      330: ####target overrides
                    331: ####host overrides
                    332: ####cross overrides
                    333: ####build overrides
1.1       root      334: 
                    335: # Now figure out from those variables how to compile and link.
                    336: 
1.1.1.2   root      337: all.indirect: $(ALL)
                    338: 
1.1.1.4   root      339: # IN_GCC tells obstack.h to use gstddef.h.
                    340: INTERNAL_CFLAGS = $(CROSS) -DIN_GCC
1.1       root      341: 
                    342: # This is the variable actually used when we compile.
                    343: ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) $(XCFLAGS)
                    344: 
                    345: # Likewise.
                    346: ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
                    347: 
                    348: # Even if ALLOCA is set, don't use it if compiling with GCC.
1.1.1.2   root      349: USE_ALLOCA= ` case "${CC}" in "${OLDCC}") echo ${ALLOCA} ;; esac `
                    350: USE_HOST_ALLOCA= ` case "${HOST_CC}"@"${HOST_ALLOCA}" in "${OLDCC}"@?*) echo ${HOST_PREFIX}${HOST_ALLOCA} ;; esac `
                    351: USE_HOST_MALLOC= ` case "${HOST_MALLOC}" in ?*) echo ${HOST_PREFIX}${HOST_MALLOC} ;; esac `
                    352: USE_HOST_OBSTACK= ` case "${HOST_OBSTACK}" in ?*) echo ${HOST_PREFIX}${HOST_OBSTACK} ;; esac `
1.1       root      353: 
                    354: # Dependency on obstack, alloca, malloc or whatever library facilities
                    355: # are not installed in the system libraries.
                    356: # We don't use USE_ALLOCA because backquote expansion doesn't work in deps.
                    357: LIBDEPS= $(OBSTACK) $(ALLOCA) $(MALLOC)
                    358: 
                    359: # Likewise, for use in the tools that must run on this machine
                    360: # even if we are cross-building GCC.
                    361: # We don't use USE_ALLOCA because backquote expansion doesn't work in deps.
                    362: HOST_LIBDEPS= $(HOST_PREFIX)$(HOST_OBSTACK) $(HOST_PREFIX)$(HOST_ALLOCA) $(HOST_PREFIX)$(HOST_MALLOC)
                    363: 
                    364: # How to link with both our special library facilities
                    365: # and the system's installed libraries.
                    366: LIBS = $(OBSTACK) $(USE_ALLOCA) $(MALLOC) $(CLIB)
                    367: 
                    368: # Likewise, for use in the tools that must run on this machine
                    369: # even if we are cross-building GCC.
                    370: HOST_LIBS = $(USE_HOST_OBSTACK) $(USE_HOST_ALLOCA) $(USE_HOST_MALLOC)  \
                    371:            $(HOST_CLIB)
                    372: 
                    373: HOST_RTL = $(HOST_PREFIX)rtl.o
                    374: HOST_RTLANAL = $(HOST_PREFIX)rtlanal.o
1.1.1.3   root      375: HOST_PRINT = $(HOST_PREFIX)print-rtl.o
1.1       root      376: 
                    377: # Specify the directories to be searched for header files.
                    378: # Both . and srcdir are used, in that order,
                    379: # so that tm.h and config.h will be found in the compilation
                    380: # subdirectory rather than in the source directory.
                    381: INCLUDES = -I. -I$(srcdir) -I$(srcdir)/config
                    382: SUBDIR_INCLUDES = -I.. -I../$(srcdir) -I../$(srcdir)/config
                    383: 
                    384: # Always use -I$(srcdir)/config when compiling.
                    385: .c.o:
                    386:        $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
                    387: 
                    388: # This tells GNU make version 3 not to export all the variables
                    389: # defined in this file into the environment.
                    390: .NOEXPORT:
                    391: 
                    392: # Lists of files for various purposes.
                    393: 
                    394: # A list of all the language-specific executables.
                    395: COMPILERS = cc1 cc1plus cc1obj
                    396: 
                    397: # Language-specific object files for C.
1.1.1.5   root      398: C_OBJS = c-parse.o c-lang.o c-lex.o c-pragma.o \
                    399:    c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-iterate.o
1.1       root      400: 
1.1.1.5   root      401: # Language-specific object files for Objective C.
                    402: OBJC_OBJS = objc-parse.o objc-act.o c-lex.o c-pragma.o \
                    403:    c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-iterate.o
1.1       root      404: 
                    405: # Language-specific object files for C++.
                    406: CPLUS_OBJS = cp-parse.o cp-decl.o cp-decl2.o \
                    407:    cp-typeck.o cp-type2.o cp-tree.o cp-ptree.o \
                    408:    cp-cvt.o cp-search.o cp-lex.o cp-gc.o cp-call.o \
                    409:    cp-class.o cp-init.o cp-method.o cp-except.o \
                    410:    cp-expr.o cp-pt.o cp-edsel.o cp-xref.o \
1.1.1.6 ! root      411:    $(CPLUS_INPUT) cp-spew.o c-common.o cp-error.o cp-errfn.o
        !           412: 
        !           413: # Files specific to the C interpreter bytecode compiler(s).
        !           414: BC_OBJS = bc-emit.o bc-optab.o
1.1       root      415: 
                    416: # Language-independent object files.
                    417: OBJS = toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o \
                    418:  function.o stmt.o expr.o calls.o expmed.o explow.o optabs.o varasm.o \
1.1.1.5   root      419:  rtl.o print-rtl.o rtlanal.o emit-rtl.o real.o \
1.1.1.2   root      420:  dbxout.o sdbout.o dwarfout.o xcoffout.o \
1.1       root      421:  integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o \
1.1.1.4   root      422:  regclass.o local-alloc.o global.o reload.o reload1.o caller-save.o \
1.1       root      423:  insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o \
1.1.1.5   root      424:  insn-opinit.o insn-recog.o insn-extract.o insn-output.o insn-emit.o \
                    425:  insn-attrtab.o aux-output.o getpwd.o convert.o $(EXTRA_OBJS)
1.1       root      426: 
                    427: # GEN files are listed separately, so they can be built before doing parallel
                    428: #  makes for cc1 or cc1plus.  Otherwise sequent parallel make attempts to load
                    429: #  them before rtl.o is compiled.
                    430: GEN= genemit genoutput genrecog genextract genflags gencodes genconfig genpeep
                    431: 
                    432: # Files to be copied away after each stage in building.
                    433: STAGESTUFF = *.o insn-flags.h insn-config.h insn-codes.h \
                    434:  insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \
1.1.1.5   root      435:  insn-attr.h insn-attrtab.c insn-opinit.c \
1.1       root      436:  stamp-flags stamp-config stamp-codes \
                    437:  stamp-output stamp-recog stamp-emit stamp-extract stamp-peep \
1.1.1.5   root      438:  stamp-attr stamp-attrtab stamp-opinit stamp-proto \
1.1       root      439:  genemit genoutput genrecog genextract genflags gencodes genconfig genpeep \
1.1.1.5   root      440:  genattrtab genattr genopinit \
1.1.1.6 ! root      441:  bc-arity.h bc-opcode.h bc-opname.h \
        !           442:  stamp-bcarity stamp-bcopcode stamp-bcopname \
        !           443:  bi-arity bi-opcode bi-opname \
        !           444:  $(GCC_PASSES) $(EXTRA_PARTS) $(EXTRA_PROGRAMS) gcc-cross cccp g++ g++-cross \
1.1.1.3   root      445:  cc1plus cc1obj enquire protoize unprotoize specs collect2 $(USE_COLLECT2)
1.1       root      446: 
                    447: # Members of libgcc1.a.
                    448: LIB1FUNCS = _mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 \
                    449:    _lshrsi3 _lshlsi3 _ashrsi3 _ashlsi3 \
                    450:    _divdf3 _muldf3 _negdf2 _adddf3 _subdf3 \
                    451:    _fixdfsi _fixsfsi _floatsidf _floatsisf _truncdfsf2 _extendsfdf2 \
                    452:    _addsf3 _negsf2 _subsf3 _mulsf3 _divsf3 \
                    453:    _eqdf2 _nedf2 _gtdf2 _gedf2 _ltdf2 _ledf2 \
                    454:    _eqsf2 _nesf2 _gtsf2 _gesf2 _ltsf2 _lesf2
                    455: 
                    456: # Library members defined in libgcc2.c.
                    457: LIB2FUNCS = _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 \
1.1.1.5   root      458:      _lshrdi3 _lshldi3 _ashldi3 _ashrdi3 _ffsdi2 \
1.1.1.4   root      459:     _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf \
1.1       root      460:     _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi \
1.1.1.5   root      461:     _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi \
1.1.1.6 ! root      462:     _fixtfdi _fixunstfdi _floatditf \
1.1.1.5   root      463:     __gcc_bcmp _varargs _eprintf _op_new _new_handler _op_delete \
1.1.1.4   root      464:     _bb _shtab _clear_cache _trampoline __main _exit _ctors
1.1       root      465: 
                    466: # Header files that are made available under the same name
1.1.1.4   root      467: # to programs compiled with GCC.
1.1.1.6 ! root      468: USER_H = va-alpha.h va-h8300.h va-i860.h va-i960.h va-mips.h va-m88k.h \
1.1.1.5   root      469:     va-pa.h va-pyr.h va-sparc.h va-clipper.h va-spur.h proto.h $(EXTRA_HEADERS)
1.1       root      470: 
                    471: # The files that "belong" in CONFIG_H are deliberately omitted
                    472: # because having them there would not be useful in actual practice.
                    473: # All they would do is cause complete recompilation every time
                    474: # one of the machine description files is edited.
                    475: # That may or may not be what one wants to do.
                    476: # If it is, rm *.o is an easy way to do it.
                    477: # CONFIG_H = config.h tm.h
                    478: CONFIG_H =
                    479: RTL_H = rtl.h rtl.def machmode.h machmode.def
                    480: TREE_H = tree.h real.h tree.def machmode.h machmode.def
                    481: CPLUS_TREE_H = $(TREE_H) cp-tree.h cp-tree.def
1.1.1.6 ! root      482: BYTECODE_H = bytecode.h bc-emit.h bc-optab.h
1.1       root      483: 
                    484: # Avoid a lot of time thinking about remaking Makefile.in and *.def.
                    485: .SUFFIXES: .in .def
                    486: 
1.1.1.3   root      487: Makefile: $(srcdir)/Makefile.in $(srcdir)/configure $(srcdir)/version.c \
1.1       root      488:    $(srcdir)/config/$(xmake_file) $(srcdir)/config/$(tmake_file)
                    489:        sh config.status
                    490: 
                    491: all.internal: start.encap rest.encap
                    492: # This is what to compile if making a cross-compiler.
1.1.1.5   root      493: # Note that we can compile enquire using the cross-compiler just build,
                    494: # although we can't run it on this machine.
1.1.1.6 ! root      495: all.cross: native gcc-cross g++-cross specs $(LIBGCC) stmp-headers $(STMP_FIXPROTO) $(CROSS_TEST) $(ENQUIRE) $(EXTRA_PARTS)
1.1.1.4   root      496: # This is what to compile if making gcc with a cross-compiler.
1.1.1.6 ! root      497: all.build: native xgcc g++ $(EXTRA_PARTS)
1.1       root      498: # This is what must be made before installing GCC and converting libraries.
1.1.1.6 ! root      499: start.encap: native xgcc g++ specs $(LIBGCC1) xlimits.h
1.1       root      500: # Use this to make a GCC that will be used only to recompile GCC.
1.1.1.6 ! root      501: for-bootstrap: start.encap $(LIBGCC)
1.1       root      502: # These can't be made, with COFF encapsulation, until after GCC can run.
1.1.1.6 ! root      503: rest.encap: $(LIBGCC) stmp-headers $(STMP_FIXPROTO) $(EXTRA_PARTS)
1.1       root      504: # This is what is made with the host's compiler
                    505: # whether making a cross compiler or not.
1.1.1.3   root      506: native: config.status cpp $(LANGUAGES) $(EXTRA_PASSES) $(EXTRA_PROGRAMS) $(USE_COLLECT2)
1.1       root      507: 
                    508: # Define the names for selecting languages in LANGUAGES.
1.1.1.6 ! root      509: # Note that it would be nice to move the dependency on g++
        !           510: # into the C++ rule, but that needs a little bit of work
        !           511: # to do the right thing within all.cross.
1.1       root      512: C c: cc1
                    513: C++ c++: cc1plus
1.1.1.5   root      514: # The next two ought to depend on objc-runtime, but that doesn't work yet.
                    515: OBJC objc: cc1obj
                    516: OBJECTIVE-C objective-c: cc1obj
1.1       root      517: PROTO: proto
                    518: 
1.1.1.2   root      519: # Really, really stupid make features, such as SUN's KEEP_STATE, may force
                    520: # a target to build even if it is up-to-date.  So we must verify that
                    521: # config.status does not exist before failing.
1.1       root      522: config.status:
1.1.1.2   root      523:        @if [ ! -f config.status ] ; then \
                    524:          echo You must configure gcc.  Look at the INSTALL file for details.; \
                    525:          false; \
                    526:        else \
                    527:          true; \
                    528:        fi
1.1       root      529: 
1.1.1.3   root      530: # On the target machine, finish building a cross compiler.
                    531: # This does the things that can't be done on the host machine.
1.1.1.6 ! root      532: rest.cross: $(LIBGCC) gfloat.h specs
1.1.1.3   root      533: 
                    534: # Verify that it works to compile and link cross-test.
                    535: # If it does, then there are sufficient replacements for libgcc1.a.
1.1.1.6 ! root      536: cross-test: cross-test.o native gcc-cross $(LIBGCC) $(GCC_PARTS)
1.1.1.3   root      537:        $(GCC_FOR_TARGET) $(GCC_CFLAGS) cross-test.o -o $@
                    538: cross-test.o: cross-test.c native gcc-cross
                    539:        $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) -c $(srcdir)/cross-test.c
                    540: 
                    541: # Recompile all the language-independent object files.
                    542: # This is used only if the user explicitly asks for it.
1.1       root      543: compilations: ${OBJS}
                    544: 
1.1.1.4   root      545: # We call this executable `xgcc' rather than `gcc'
                    546: # to avoid confusion if the current directory is in the path
                    547: # and CC is `gcc'.  It is renamed to `gcc' when it is installed.
                    548: xgcc: gcc.o version.o $(LIBDEPS)
                    549:        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o xgcc gcc.o version.o $(LIBS)
1.1.1.3   root      550: 
                    551: # Dump a specs file to make -B./ read these specs over installed ones.
1.1.1.4   root      552: specs: xgcc
1.1.1.5   root      553:        $(GCC_FOR_TARGET) -dumpspecs > specs
1.1       root      554: 
1.1.1.6 ! root      555: # Create the compiler driver for g++.
        !           556: g++: g++.o $(LIBDEPS)
        !           557:        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o g++ g++.o $(LIBS)
        !           558: 
1.1.1.4   root      559: # We do want to create an executable named `xgcc', so we can use it to
1.1       root      560: # compile libgcc2.a.
                    561: # Also create gcc-cross, so that install-common will install properly.
1.1.1.4   root      562: gcc-cross: xgcc
                    563:        cp xgcc gcc-cross
1.1       root      564: 
1.1.1.6 ! root      565: # Create a version of the g++ driver which calls the cross-compiler.
        !           566: g++-cross: $(srcdir)/g++.c
        !           567:        $(CC) $(ALL_CFLAGS) $(INCLUDES) $(LDFLAGS) -o g++-cross \
        !           568:           -DGCC_NAME=\"$(target)-gcc\" $(srcdir)/g++.c version.o $(LIBS)
1.1       root      569: 
1.1.1.6 ! root      570: cc1: $(P) $(C_OBJS) $(OBJS) $(BC_OBJS) $(LIBDEPS)
        !           571:        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cc1 $(C_OBJS) $(OBJS) $(BC_OBJS) $(LIBS)
1.1       root      572: 
1.1.1.6 ! root      573: cc1plus: $(P) $(CPLUS_OBJS) $(OBJS) $(BC_OBJS) $(LIBDEPS)
        !           574:        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cc1plus $(CPLUS_OBJS) $(BC_OBJS) $(OBJS) $(LIBS)
        !           575: 
        !           576: cc1obj: $(P) $(OBJC_OBJS) $(OBJS) $(BC_OBJS) $(LIBDEPS)
        !           577:        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cc1obj $(OBJC_OBJS) $(OBJS) $(BC_OBJS) $(LIBS)
1.1       root      578: 
1.1.1.5   root      579: # Copy float.h from its source.
                    580: gfloat.h: $(FLOAT_H)
                    581:        cp $(FLOAT_H) gfloat.h
                    582: 
                    583: # Create float.h source for the native machine.
                    584: float.h-nat: enquire
1.1       root      585:        -./enquire -f > tmp-float.h
1.1.1.5   root      586:        mv tmp-float.h float.h-nat
                    587: 
                    588: # Create a dummy float.h source for a cross-compiler.
                    589: float.h-cross:
                    590:        echo "#error float.h values not known for cross-compiler" > float.h-cross
1.1       root      591: 
                    592: # Used to compile enquire with standard cc, but have forgotten why.
                    593: # Let's try with GCC.
                    594: enquire: enquire.o $(GCC_PARTS)
                    595:        $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ENQUIRE_LDFLAGS) enquire.o -o $@
                    596: enquire.o: $(srcdir)/enquire.c $(GCC_PASSES)
1.1.1.4   root      597: #      -if [ "$(srcdir)" != "." ]; then rm -f ./enquire.c; else true; fi
                    598: #      -cp $(srcdir)/enquire.c . > /dev/null 2>&1
1.1       root      599: # Breaking this line caused a problem with one version of GNU make.
1.1.1.4   root      600:        $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) $(ENQUIRE_CFLAGS) -I. -c $(srcdir)/enquire.c
                    601: 
                    602: # Build the version of limits.h that we will install.
                    603: xlimits.h: glimits.h limitx.h limity.h
                    604:        if [ -f $(SYSTEM_HEADER_DIR)/limits.h ] ; then \
                    605:          cat $(srcdir)/limitx.h $(srcdir)/glimits.h $(srcdir)/limity.h > xlimits.h; \
                    606:        else \
                    607:          cat $(srcdir)/glimits.h > xlimits.h; \
                    608:        fi
1.1       root      609: 
                    610: # Build libgcc.a.
                    611: # This is done in two parts because some functions, in libgcc1.c,
1.1.1.4   root      612: # must be compiled with something other than GCC,
                    613: # while the rest, in libgcc2.c, must be compiled with xgcc.
                    614: # That means we can't do libgcc2.c until after xgcc, cc1, etc.
1.1       root      615: 
                    616: # Use this as value of LIBGCC1 to cause conversion to GNU library format.
                    617: # LIBCONVERT should put its output in libgcc1.conv.
                    618: libgcc1.conv: libgcc1.a
                    619:        $(LIBCONVERT) libgcc1.a libgcc1.conv
                    620: 
                    621: # Use this as value of LIBGCC1 to inhibit use of libgcc1.c entirely.
                    622: # Make an empty file instead.
1.1.1.5   root      623: libgcc1.null: $(GCC_PASSES)
1.1       root      624:        echo "__foo () {}" > dummy.c
                    625:        $(GCC_FOR_TARGET) $(GCC_CFLAGS) -c dummy.c
                    626:        $(OLDAR) $(OLDAR_FLAGS) libgcc1.null dummy.o
                    627:        rm -f dummy.o dummy.c
                    628: 
1.1.1.4   root      629: # This is $(LIBGCC1) for a cross-compiler.
                    630: # We have no automatic way of building libgcc1.a, 
                    631: # so it's up to the installer to find a way to do that.
                    632: # This rule deliberately does not depend on libgcc1.a
                    633: # so that it will fail if the installer hasn't provided it.
                    634: libgcc1.cross:
                    635:        mv libgcc1.a libgcc1.cross || (echo You must find a way to make libgcc1.a; false)
                    636: 
1.1       root      637: # Compile the library of arithmetic subroutines with the native compiler.
1.1.1.4   root      638: # Don't compile it with GCC!
1.1       root      639: # (That would cause most arithmetic functions to call themselves.)
                    640: libgcc1.a: libgcc1.c $(CONFIG_H) $(LIB1FUNCS_EXTRA) config.status
                    641:        -rm -f tmplibgcc1.a
                    642: # Actually build it in tmplibgcc1.a, then rename at end,
                    643: # so that libgcc1.a itself remains nonexistent if compilation is aborted.
                    644: # -e causes any failing command to make this rule fail.
                    645: # -e doesn't work in certain shells, so we test $$? as well.
1.1.1.6 ! root      646: # lynx has a broken ar, it always complains when the initial library is
        !           647: # empty, thus this command works only if we don't do -e
        !           648: # There is a trailing backslash (\) deleted from the following line.
        !           649: #      set -e;
1.1       root      650:        for name in $(LIB1FUNCS); \
                    651:        do \
                    652:          echo $${name}; \
                    653:          rm -f $${name}.o; \
                    654:          $(OLDCC) $(CCLIBFLAGS) $(INCLUDES) -c -DL$${name} $(srcdir)/libgcc1.c; \
                    655:          if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
                    656:          mv libgcc1.o $${name}.o; \
                    657:          $(OLDAR) $(OLDAR_FLAGS) tmplibgcc1.a $${name}.o; \
                    658:          rm -f $${name}.o; \
                    659:        done
                    660: # Some shells crash when a loop has no items.
                    661: # So make sure there is always at least one--`..'.
                    662: # Then ignore it.
                    663: # We don't use -e here because there are if statements
                    664: # that should not make the command give up when the if condition is false.
                    665: # Instead, we test for failure after each command where it matters.
1.1.1.2   root      666:        -for file in .. $(LIB1FUNCS_EXTRA); \
1.1       root      667:        do \
                    668:          if [ x$${file} != x.. ]; then \
                    669:            name=`echo $${file} | sed -e 's/[.]c$$//' -e 's/[.]asm$$//'`; \
                    670:            echo $${name}; \
                    671:            if [ $${name}.asm = $${file} ]; then \
1.1.1.4   root      672:              cp $${file} $${name}.s || exit 1; file=$${name}.s; \
1.1       root      673:            else true; fi; \
                    674:            $(OLDCC) $(CCLIBFLAGS) $(INCLUDES) -c $${file}; \
                    675:            if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
                    676:            $(OLDAR) $(OLDAR_FLAGS) tmplibgcc1.a $${name}.o; \
                    677:            if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
                    678:            rm -f $${name}.[so]; \
                    679:          else true; \
                    680:          fi; \
                    681:        done
                    682:        mv tmplibgcc1.a libgcc1.a
                    683: 
                    684: # Compiling libgcc2.a requires making sure that cc1, etc. have been compiled.
                    685: # But recompiling cc1 should not force recompilation of libgcc2.a.
                    686: # If you want to force recompilation, delete libgcc2.a.
1.1.1.5   root      687: libgcc2.ready: $(GCC_PASSES) $(LIBGCC2_DEPS)
1.1       root      688:        -if [ -f libgcc2.ready ] ; then \
                    689:                true; \
                    690:        else \
                    691:                touch libgcc2.ready; \
                    692:        fi
                    693: 
                    694: libgcc2.a: libgcc2.c libgcc2.ready $(CONFIG_H) $(LIB2FUNCS_EXTRA) \
1.1.1.4   root      695:    machmode.h longlong.h gbl-ctors.h config.status
1.1       root      696: # Actually build it in tmplibgcc2.a, then rename at end,
                    697: # so that libgcc2.a itself remains nonexistent if compilation is aborted.
                    698:        -rm -f tmplibgcc2.a
                    699: # -e causes any failing command to make this rule fail.
                    700: # -e doesn't work in certain shells, so we test $$? as well.
1.1.1.6 ! root      701: # lynx has a broken ar, it always complains when the initial library is
        !           702: # empty, thus this command works only if we don't do -e
        !           703: # There is a trailing backslash (\) deleted from the following line.
        !           704: #      set -e;
1.1       root      705:        for name in $(LIB2FUNCS); \
                    706:        do \
                    707:          echo $${name}; \
1.1.1.2   root      708:          $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) -c -DL$${name} \
1.1       root      709:              $(srcdir)/libgcc2.c -o $${name}.o; \
                    710:          if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
                    711:          $(AR) $(AR_FLAGS) tmplibgcc2.a $${name}.o; \
                    712:          rm -f $${name}.o; \
                    713:        done
                    714: # Some shells crash when a loop has no items.
                    715: # So make sure there is always at least one--`..'.
                    716: # Then ignore it.
                    717: # We don't use -e here because there are if statements
                    718: # that should not make the command give up when the if condition is false.
                    719: # Instead, we test for failure after each command where it matters.
1.1.1.2   root      720:        -for file in .. $(LIB2FUNCS_EXTRA); \
1.1       root      721:        do \
                    722:          if [ x$${file} != x.. ]; then \
                    723:            name=`echo $${file} | sed -e 's/[.]c$$//' -e 's/[.]asm$$//'`; \
                    724:            echo $${name}; \
                    725:            if [ $${name}.asm = $${file} ]; then \
1.1.1.4   root      726:              cp $${file} $${name}.s || exit 1; file=$${name}.s; \
1.1       root      727:            else true; fi; \
1.1.1.2   root      728:            $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) -c $${file}; \
1.1       root      729:            if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
                    730:            $(AR) $(AR_FLAGS) tmplibgcc2.a $${name}.o; \
                    731:            rm -f $${name}.[so]; \
                    732:          else true; \
                    733:          fi; \
                    734:        done
                    735:        mv tmplibgcc2.a libgcc2.a
                    736: # These lines were deleted from above the mv command
                    737: # because ranlibing libgcc.a itself should suffice.
                    738: #      -if [ x${HPUX_GAS} = x ] ; then \
                    739: #        if $(RANLIB_TEST) ; then $(RANLIB) tmplibgcc2.a; else true; fi \
                    740: #      else true; fi
                    741: 
                    742: # Combine the various libraries into a single library, libgcc.a.
                    743: libgcc.a: $(LIBGCC1) $(LIBGCC2)
                    744:        -rm -rf tmplibgcc.a libgcc.a tmpcopy
                    745:        mkdir tmpcopy
1.1.1.2   root      746:        -if [ x$(LIBGCC1) != x ];                       \
                    747:        then (cd tmpcopy; $(AR) x ../$(LIBGCC1));       \
                    748:        else true;                                      \
                    749:        fi
1.1.1.6 ! root      750: # Some versions of ar (specifically the one in RISC/os 5.x), create an
        !           751: # unwritable table of contents file, and then print an error message when
        !           752: # the second ar command tries to overwrite this file.  To avoid the error
        !           753: # message from ar, we make sure all files are writable.
        !           754:        -(cd tmpcopy; chmod +w * > /dev/null 2>&1)
1.1       root      755:        (cd tmpcopy; $(AR) x ../$(LIBGCC2))
                    756:        (cd tmpcopy; $(AR) $(AR_FLAGS) ../tmplibgcc.a *.o)
                    757:        rm -rf tmpcopy
                    758:        -if $(RANLIB_TEST) ; then $(RANLIB) tmplibgcc.a; else true; fi
                    759: # Actually build it in tmplibgcc.a, then rename at end,
                    760: # so that libgcc.a itself remains nonexistent if compilation is aborted.
                    761:        mv tmplibgcc.a libgcc.a
                    762: 
1.1.1.4   root      763: objc-runtime: libobjc.a
                    764: 
                    765: # Build the Objective C runtime library.
1.1.1.5   root      766: libobjc.a: cc1obj libgcc2.ready $(USE_COLLECT2) $(EXTRA_PARTS)
1.1.1.4   root      767:        if [ -d objc ]; then true; else mkdir objc; fi
                    768:        thisdir1=`pwd`; \
                    769:        srcdir1=`cd $(srcdir); pwd`; \
                    770:        cd objc; \
                    771:        $(MAKE) -f $${srcdir1}/objc/Makefile libobjc.a \
                    772:          srcdir=$${srcdir1} tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
                    773:          GCC_FOR_TARGET="$${thisdir1}/xgcc -B$${thisdir1}/" \
                    774:          GCC_CFLAGS="$(GCC_CFLAGS)"
                    775:        -rm -f libobjc.a
                    776:        ln objc/libobjc.a . >/dev/null 2>&1 || cp objc/libobjc.a .
                    777:        -if $(RANLIB_TEST) ; then $(RANLIB) libobjc.a; else true; fi
                    778: 
                    779: # This is used by objc/Makefile if the user runs that directly.
                    780: sublibobjc.a: cc1obj libgcc2.ready
                    781:        thisdir1=`pwd`; \
                    782:        srcdir1=`cd $(srcdir); pwd`; \
                    783:        cd objc; \
                    784:        $(MAKE) -f $$srcdir1/objc/Makefile libobjc.a \
                    785:          srcdir=$$srcdir1 tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
                    786:          GCC_FOR_TARGET="$$thisdir1/xgcc -B$$thisdir1/" \
                    787:          GCC_CFLAGS="$(GCC_CFLAGS)"
1.1       root      788: 
                    789: # Compile two additional files that are linked with every program
                    790: # linked using GCC on system V, for the sake of C++ constructors.
                    791: crtbegin.o:    crtstuff.c $(GCC_PASSES) $(CONFIG_H) gbl-ctors.h
                    792:        $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) -DCRT_BEGIN \
1.1.1.6 ! root      793:          -finhibit-size-directive -fno-inline-functions \
        !           794:          -g0 -c $(srcdir)/crtstuff.c -o crtbegin.o
1.1       root      795: 
                    796: crtend.o:      crtstuff.c $(GCC_PASSES) $(CONFIG_H) gbl-ctors.h
                    797:        $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) -DCRT_END \
1.1.1.6 ! root      798:          -finhibit-size-directive -fno-inline-functions \
        !           799:          -g0 -c $(srcdir)/crtstuff.c -o crtend.o
1.1       root      800: 
                    801: # Compiling object files from source files.
                    802: 
                    803: # Note that dependencies on obstack.h are not written
                    804: # because that file is not part of GCC.
                    805: # Dependencies on gvarargs.h are not written
                    806: # because all that file does, when not compiling with GCC,
                    807: # is include the system varargs.h.
                    808: 
                    809: # C language specific files.
                    810: 
1.1.1.3   root      811: c-parse.o : $(srcdir)/c-parse.c $(CONFIG_H) $(TREE_H) c-lex.h c-parse.h \
                    812:     c-tree.h input.h flags.h
1.1       root      813:        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/c-parse.c
                    814: $(srcdir)/c-parse.c $(srcdir)/c-parse.h: $(srcdir)/c-parse.y
                    815:        cd $(srcdir); $(BISON) $(BISONFLAGS) -d c-parse.y -o c-parse.c
1.1.1.5   root      816: $(srcdir)/c-parse.y: $(srcdir)/c-parse.in
                    817:        sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
                    818:          -e "/^ifc$$/d" -e "/^end ifc$$/d" \
                    819:          $(srcdir)/c-parse.in > $(srcdir)/c-parse.y
1.1       root      820: 
                    821: c-decl.o : c-decl.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
                    822: c-typeck.o : c-typeck.c $(CONFIG_H) $(TREE_H) c-tree.h flags.h
                    823: c-lang.o : c-lang.c $(CONFIG_H) $(TREE_H)
                    824: c-lex.o : c-lex.c $(CONFIG_H) $(TREE_H) c-lex.h c-tree.h c-parse.h \
                    825:     input.h flags.h
                    826: c-aux-info.o : c-aux-info.c  $(CONFIG_H) $(TREE_H) c-tree.h flags.h
                    827: c-convert.o : c-convert.c $(CONFIG_H) $(TREE_H) flags.h
1.1.1.4   root      828: c-pragma.o: c-pragma.c $(CONFIG_H) $(TREE_H)
1.1.1.5   root      829: c-iterate.o: c-iterate.c $(CONFIG_H) $(TREE_H) $(RTL_H) c-tree.h flags.h
1.1       root      830: 
                    831: # C++ language specific files.
                    832: 
1.1.1.5   root      833: cp-parse.o : $(srcdir)/cp-parse.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h cp-lex.h
1.1       root      834:        $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
                    835:   `echo $(srcdir)/cp-parse.c | sed 's,^\./,,'`
                    836: 
                    837: $(srcdir)/cp-parse.c $(srcdir)/cp-parse.h : $(srcdir)/cp-parse.y
1.1.1.6 ! root      838:        @echo expect 27 shift/reduce conflicts and 14 reduce/reduce conflicts
1.1       root      839:        cd $(srcdir); $(BISON) $(BISONFLAGS) -d -o cp-parse.c cp-parse.y
1.1.1.4   root      840:        cd $(srcdir); grep '^#define[   ]*YYEMPTY' cp-parse.c >>cp-parse.h
1.1       root      841: 
                    842: cp-spew.o : cp-spew.c $(CONFIG_H) $(CPLUS_TREE_H) \
1.1.1.5   root      843:    $(srcdir)/cp-parse.h flags.h cp-lex.h
1.1       root      844: cp-lex.o : cp-lex.c $(CONFIG_H) $(CPLUS_TREE_H) \
1.1.1.5   root      845:    $(srcdir)/cp-parse.h $(srcdir)/cp-input.c flags.h cp-hash.h cp-lex.h
1.1       root      846: cp-decl.o : cp-decl.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h \
                    847:   cp-lex.h cp-decl.h stack.h
                    848: cp-decl2.o : cp-decl2.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h \
                    849:   cp-lex.h cp-decl.h
                    850: cp-type2.o : cp-type2.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
1.1.1.5   root      851: cp-typeck.o : cp-typeck.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h $(RTL_H)
                    852: cp-class.o : cp-class.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
                    853: cp-call.o : cp-call.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
                    854: cp-init.o : cp-init.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h $(RTL_H)
1.1       root      855: cp-method.o : cp-method.c $(CONFIG_H) $(CPLUS_TREE_H)
                    856: cp-cvt.o : cp-cvt.c $(CONFIG_H) $(CPLUS_TREE_H)
                    857: cp-search.o : cp-search.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h flags.h
                    858: cp-tree.o : cp-tree.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
                    859: cp-ptree.o : cp-ptree.c $(CONFIG_H) $(CPLUS_TREE_H)
                    860: cp-gc.o : cp-gc.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
1.1.1.5   root      861: cp-except.o : cp-except.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h $(RTL_H)
1.1       root      862: cp-expr.o : cp-expr.c $(CONFIG_H) $(CPLUS_TREE_H) $(RTL_H) flags.h \
                    863:   expr.h insn-codes.h
                    864: cp-edsel.o : cp-edsel.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h flags.h
1.1.1.5   root      865: cp-xref.o : cp-xref.c $(CONFIG_H) $(CPLUS_TREE_H) input.h
1.1       root      866: cp-pt.o : cp-pt.c $(CONFIG_H) $(CPLUS_TREE_H) cp-decl.h cp-parse.h
1.1.1.6 ! root      867: cp-error.o : cp-error.c $(CONFIG_H) $(CPLUS_TREE_H)
        !           868: cp-errfn.o : cp-errfn.c $(CONFIG_H) $(CPLUS_TREE_H)
        !           869: 
        !           870: g++.o : g++.c $(CONFIG_H) gvarargs.h
1.1       root      871: 
1.1.1.3   root      872: # To make a configuration always use collect2, set USE_COLLECT2 to ld.
                    873: ld: collect2
                    874:        rm -f ld
                    875:        ln collect2 ld
                    876: 
1.1       root      877: collect2 : collect2.o version.o $(LIBDEPS)
1.1.1.4   root      878: # Don't try modifying collect2 (aka ld) in place--it might be linking this.
                    879:        -rm -f collect2
1.1       root      880:        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o collect2 collect2.o version.o $(LIBS)
                    881: 
                    882: collect2.o : collect2.c $(CONFIG_H) gstab.h
1.1.1.5   root      883:        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES)  \
                    884:        -DTARGET_MACHINE=\"$(target)\" \
                    885:        -c `echo $(srcdir)/collect2.c | sed 's,^\./,,'`
1.1       root      886: 
1.1.1.5   root      887: # Objective C language specific files.
1.1       root      888: 
                    889: objc-parse.o : $(srcdir)/objc-parse.c $(CONFIG_H) $(TREE_H) c-lex.h \
1.1.1.5   root      890:    c-tree.h input.h flags.h objc-act.h
1.1       root      891:        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/objc-parse.c
                    892: $(srcdir)/objc-parse.c : $(srcdir)/objc-parse.y
                    893:        cd $(srcdir); $(BISON) $(BISONFLAGS) objc-parse.y -o objc-parse.c
1.1.1.5   root      894: $(srcdir)/objc-parse.y: $(srcdir)/c-parse.in
                    895:        sed -e "/^ifc$$/,/^end ifc$$/d" \
                    896:          -e "/^ifobjc$$/d" -e "/^end ifobjc$$/d" \
                    897:          $(srcdir)/c-parse.in > $(srcdir)/objc-parse.y
1.1       root      898: 
1.1.1.5   root      899: objc-act.o : objc-act.c $(CONFIG_H) $(TREE_H) $(RTL_H) c-tree.h c-lex.h \
                    900:    flags.h objc-act.h input.h function.h $(srcdir)/c-parse.h
1.1       root      901: 
                    902: # A file used by all variants of C.
                    903: 
                    904: c-common.o : c-common.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
                    905: 
                    906: # Language-independent files.
                    907: 
1.1.1.5   root      908: gcc.o: gcc.c $(CONFIG_H) gvarargs.h config.status
1.1       root      909:        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
                    910:   -DSTANDARD_STARTFILE_PREFIX=\"$(libdir)/\" \
1.1.1.2   root      911:   -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-lib/\" \
1.1       root      912:   -DDEFAULT_TARGET_MACHINE=\"$(target)\" \
1.1.1.5   root      913:   -DTOOLDIR_BASE_PREFIX=\"$(exec_prefix)/\" \
1.1.1.4   root      914:   -DTOOLDIR=\"$(tooldir)/\" \
1.1.1.5   root      915:   $(MAYBE_TARGET_DEFAULT) \
1.1       root      916:   -c `echo $(srcdir)/gcc.c | sed 's,^\./,,'`
                    917: 
                    918: dumpvers: dumpvers.c
                    919: 
                    920: version.o: version.c
                    921: obstack.o: obstack.c
                    922: 
1.1.1.5   root      923: convert.o: convert.c $(CONFIG_H) $(TREE_H) flags.h convert.h
                    924: 
1.1       root      925: tree.o : tree.c $(CONFIG_H) $(TREE_H) gvarargs.h flags.h function.h
                    926: print-tree.o : print-tree.c $(CONFIG_H) $(TREE_H)
                    927: stor-layout.o : stor-layout.c $(CONFIG_H) $(TREE_H) function.h
                    928: fold-const.o : fold-const.c $(CONFIG_H) $(TREE_H) flags.h 
1.1.1.2   root      929: toplev.o : toplev.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h input.h \
1.1.1.5   root      930:    insn-attr.h xcoffout.h defaults.h
1.1.1.3   root      931:        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
1.1.1.4   root      932:          $(MAYBE_TARGET_DEFAULT) $(MAYBE_USE_COLLECT2) \
                    933:          -c `echo $(srcdir)/toplev.c | sed 's,^\./,,'`
1.1       root      934: 
                    935: rtl.o : rtl.c $(CONFIG_H) $(RTL_H)
                    936: 
                    937: print-rtl.o : print-rtl.c $(CONFIG_H) $(RTL_H)
                    938: rtlanal.o : rtlanal.c $(CONFIG_H) $(RTL_H)
                    939: 
1.1.1.6 ! root      940: toplev.o: bytecode.h bc-emit.h
1.1.1.4   root      941: varasm.o : varasm.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h function.h \
1.1.1.6 ! root      942:    defaults.h insn-codes.h expr.h hard-reg-set.h regs.h xcoffout.h bytecode.h
1.1       root      943: function.o : function.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h  \
                    944:    insn-flags.h insn-codes.h expr.h regs.h hard-reg-set.h insn-config.h \
1.1.1.6 ! root      945:    recog.h output.h bytecode.h
1.1       root      946: stmt.o : stmt.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h  \
1.1.1.6 ! root      947:    insn-flags.h insn-config.h insn-codes.h hard-reg-set.h expr.h loop.h \
        !           948:    recog.h bytecode.h bc-typecd.h bc-typecd.def bc-opcode.h bc-optab.h \
        !           949:    bc-emit.h
1.1.1.5   root      950: expr.o : expr.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h  \
1.1.1.6 ! root      951:    insn-flags.h insn-codes.h expr.h insn-config.h recog.h output.h \
        !           952:    typeclass.h bytecode.h bc-opcode.h bc-typecd.h bc-typecd.def bc-optab.h \
        !           953:    bc-emit.h modemap.def
1.1       root      954: calls.o : calls.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h expr.h insn-codes.h \
1.1.1.5   root      955:    insn-flags.h gvarargs.h 
1.1       root      956: expmed.o : expmed.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
                    957:    insn-flags.h insn-config.h insn-codes.h expr.h recog.h real.h
                    958: explow.o : explow.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h hard-reg-set.h \
                    959:    insn-config.h expr.h recog.h insn-flags.h insn-codes.h
                    960: optabs.o : optabs.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
1.1.1.5   root      961:    insn-flags.h insn-config.h insn-codes.h expr.h recog.h reload.h
1.1       root      962: dbxout.o : dbxout.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h regs.h \
1.1.1.4   root      963:    insn-config.h reload.h gstab.h xcoffout.h defaults.h output.h
1.1       root      964: sdbout.o : sdbout.c $(CONFIG_H) $(TREE_H) $(RTL_H) gsyms.h flags.h \
                    965:    insn-config.h reload.h
                    966: dwarfout.o : dwarfout.c $(CONFIG_H) $(TREE_H) $(RTL_H) dwarf.h flags.h \
1.1.1.4   root      967:    insn-config.h reload.h output.h defaults.h
1.1.1.2   root      968: xcoffout.o : xcoffout.c $(CONFIG_H) $(TREE_H) $(RTL_H) xcoffout.h flags.h
1.1.1.6 ! root      969: emit-rtl.o : emit-rtl.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h gvarargs.h \
        !           970:    function.h regs.h insn-config.h insn-codes.h real.h expr.h bytecode.h \
        !           971:    bc-opcode.h bc-typecd.h bc-typecd.def bc-optab.h bc-emit.h bc-opname.h
1.1.1.5   root      972: real.o : real.c $(CONFIG_H) $(TREE_H)
1.1.1.2   root      973: getpwd.o : getpwd.c $(CONFIG_H)
1.1       root      974: 
                    975: integrate.o : integrate.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h integrate.h \
1.1.1.6 ! root      976:    insn-flags.h insn-config.h insn-codes.h expr.h real.h function.h \
        !           977:    bytecode.h
1.1       root      978: 
                    979: jump.o : jump.c $(CONFIG_H) $(RTL_H) flags.h hard-reg-set.h regs.h \
                    980:    insn-config.h insn-flags.h insn-codes.h expr.h real.h
                    981: stupid.o : stupid.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h
                    982: 
                    983: cse.o : cse.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h real.h \
                    984:    insn-config.h recog.h
                    985: loop.o : loop.c $(CONFIG_H) $(RTL_H) flags.h loop.h insn-config.h \
                    986:    insn-flags.h insn-codes.h regs.h hard-reg-set.h recog.h expr.h real.h
                    987: unroll.o : unroll.c $(CONFIG_H) $(RTL_H) insn-config.h insn-codes.h \
                    988:    integrate.h regs.h flags.h expr.h loop.h
                    989: flow.o : flow.c $(CONFIG_H) $(RTL_H) flags.h insn-config.h \
                    990:    basic-block.h regs.h hard-reg-set.h output.h
                    991: combine.o : combine.c $(CONFIG_H) $(RTL_H) gvarargs.h flags.h  \
                    992:    insn-config.h insn-flags.h insn-codes.h insn-attr.h regs.h expr.h \
1.1.1.5   root      993:    basic-block.h recog.h real.h hard-reg-set.h
1.1       root      994: regclass.o : regclass.c $(CONFIG_H) $(RTL_H) hard-reg-set.h flags.h \
1.1.1.6 ! root      995:    basic-block.h regs.h insn-config.h recog.h reload.h real.h bytecode.h
1.1       root      996: local-alloc.o : local-alloc.c $(CONFIG_H) $(RTL_H) flags.h basic-block.h \
                    997:    regs.h hard-reg-set.h insn-config.h recog.h output.h
1.1.1.4   root      998: global.o : global.c $(CONFIG_H) $(RTL_H) flags.h  \
1.1       root      999:    basic-block.h regs.h hard-reg-set.h insn-config.h output.h
                   1000: 
                   1001: reload.o : reload.c $(CONFIG_H) $(RTL_H) flags.h \
                   1002:    reload.h recog.h hard-reg-set.h insn-config.h insn-codes.h regs.h real.h
                   1003: reload1.o : reload1.c $(CONFIG_H) $(RTL_H) flags.h expr.h \
                   1004:    reload.h regs.h hard-reg-set.h insn-config.h insn-flags.h insn-codes.h \
                   1005:    basic-block.h recog.h output.h
                   1006: caller-save.o : caller-save.c $(CONFIG_H) $(RTL_H) flags.h \
                   1007:    regs.h hard-reg-set.h insn-config.h basic-block.h recog.h reload.h expr.h
                   1008: reorg.o : reorg.c $(CONFIG_H) $(RTL_H) conditions.h hard-reg-set.h \
                   1009:    basic-block.h regs.h insn-config.h insn-attr.h insn-flags.h recog.h \
                   1010:    flags.h output.h
                   1011: sched.o : sched.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h hard-reg-set.h \
                   1012:    flags.h insn-config.h insn-attr.h
1.1.1.6 ! root     1013: final.o : final.c $(CONFIG_H) $(RTL_H) $(TREE_H) gvarargs.h flags.h regs.h \
1.1       root     1014:    recog.h conditions.h insn-config.h insn-attr.h real.h output.h \
1.1.1.4   root     1015:    hard-reg-set.h insn-flags.h insn-codes.h gstab.h xcoffout.h defaults.h
1.1       root     1016: recog.o : recog.c $(CONFIG_H) $(RTL_H)  \
                   1017:    regs.h recog.h hard-reg-set.h flags.h insn-config.h insn-attr.h \
                   1018:    insn-flags.h insn-codes.h real.h
                   1019: reg-stack.o : reg-stack.c $(CONFIG_H) $(RTL_H) $(TREE_H) \
                   1020:    regs.h hard-reg-set.h flags.h insn-config.h
1.1.1.3   root     1021: 
1.1       root     1022: aux-output.o : aux-output.c $(CONFIG_H) \
                   1023:    $(RTL_H) regs.h hard-reg-set.h real.h insn-config.h conditions.h \
                   1024:    insn-flags.h output.h insn-attr.h insn-codes.h
                   1025: 
1.1.1.6 ! root     1026: # Build auxiliary files that support ecoff format.
        !          1027: mips-tfile: mips-tfile.o version.o $(LIBDEPS)
        !          1028:        $(CC) $(CFLAGS) $(LDFLAGS) -o mips-tfile mips-tfile.o version.o $(LIBS)
        !          1029: 
        !          1030: mips-tfile.o : mips-tfile.c $(CONFIG_H) $(RTL_H)
        !          1031: 
        !          1032: mips-tdump: mips-tdump.o version.o $(LIBDEPS)
        !          1033:        $(CC) $(CFLAGS) $(LDFLAGS) -o mips-tdump mips-tdump.o version.o $(LIBS)
        !          1034: 
        !          1035: mips-tdump.o : mips-tdump.c $(CONFIG_H) $(RTL_H)
        !          1036: 
1.1       root     1037: # Normally this target is not used; but it is used if you
                   1038: # define ALLOCA=alloca.o.  In that case, you must get a suitable alloca.c
                   1039: # from the GNU Emacs distribution.
                   1040: alloca.o:      alloca.c
                   1041:        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(ALLOCA_FLAGS) \
1.1.1.5   root     1042:          -c `echo $(srcdir)/alloca.c | sed 's,^\./,,'`
1.1       root     1043:        $(ALLOCA_FINISH)
                   1044: 
                   1045: # Generate header and source files from the machine description, 
                   1046: # and compile them.
                   1047: 
                   1048: .PRECIOUS: insn-config.h insn-flags.h insn-codes.h \
                   1049:   insn-emit.c insn-recog.c insn-extract.c insn-output.c insn-peep.c \
                   1050:   insn-attr.h insn-attrtab.c
                   1051: 
                   1052: # The following pair of rules has this effect:
                   1053: # genconfig is run only if the md has changed since genconfig was last run;
                   1054: # but the file insn-config.h is touched only when its contents actually change.
                   1055: 
                   1056: # Each of the other insn-* files is handled by a similar pair of rules.
                   1057: 
1.1.1.4   root     1058: # This causes an anomaly in the results of make -n
                   1059: # because insn-* is older than stamp-*
                   1060: # and thus make -n thinks that insn-* will be updated
                   1061: # and force recompilation of things that depend on it.
1.1.1.5   root     1062: # We use move-if-change precisely to avoid such recompilation.
1.1.1.4   root     1063: # But there is no way to teach make -n that it will be avoided.
                   1064: 
1.1       root     1065: # Each of the insn-*.[ch] rules has a semicolon at the end,
                   1066: # for otherwise the system Make on SunOS 4.1 never tries
1.1.1.5   root     1067: # to recompile insn-*.o.  To avoid problems and extra noise from
                   1068: # versions of make which don't like empty commands (nothing after the
                   1069: # trailing `;'), we call true for each.
1.1       root     1070: 
1.1.1.5   root     1071: insn-config.h: stamp-config ; @true
1.1       root     1072: stamp-config : md genconfig $(srcdir)/move-if-change
                   1073:        ./genconfig md > tmp-config.h
                   1074:        $(srcdir)/move-if-change tmp-config.h insn-config.h
                   1075:        touch stamp-config
                   1076: 
1.1.1.5   root     1077: insn-flags.h: stamp-flags ; @true
1.1       root     1078: stamp-flags : md genflags $(srcdir)/move-if-change
                   1079:        ./genflags md > tmp-flags.h
                   1080:        $(srcdir)/move-if-change tmp-flags.h insn-flags.h
                   1081:        touch stamp-flags
                   1082: 
1.1.1.5   root     1083: insn-codes.h: stamp-codes ; @true
1.1       root     1084: stamp-codes : md gencodes $(srcdir)/move-if-change
                   1085:        ./gencodes md > tmp-codes.h
                   1086:        $(srcdir)/move-if-change tmp-codes.h insn-codes.h
                   1087:        touch stamp-codes
                   1088: 
                   1089: insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) expr.h real.h output.h \
                   1090:   insn-config.h insn-flags.h insn-codes.h
                   1091:        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-emit.c
                   1092: 
1.1.1.5   root     1093: insn-emit.c: stamp-emit ; @true
1.1       root     1094: stamp-emit : md genemit $(srcdir)/move-if-change
                   1095:        ./genemit md > tmp-emit.c
                   1096:        $(srcdir)/move-if-change tmp-emit.c insn-emit.c
                   1097:        touch stamp-emit
                   1098: 
                   1099: insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h recog.h \
                   1100:   real.h output.h flags.h
                   1101:        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-recog.c
                   1102: 
1.1.1.5   root     1103: insn-recog.c: stamp-recog ; @true
1.1       root     1104: stamp-recog : md genrecog $(srcdir)/move-if-change
                   1105:        ./genrecog md > tmp-recog.c
                   1106:        $(srcdir)/move-if-change tmp-recog.c insn-recog.c
                   1107:        touch stamp-recog
                   1108: 
1.1.1.5   root     1109: insn-opinit.o : insn-opinit.c $(CONFIG_H) $(RTL_H) insn-codes.h insn-flags.h \
                   1110:   insn-config.h flags.h rtl.h recog.h expr.h reload.h
                   1111:        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-opinit.c
                   1112: 
                   1113: insn-opinit.c: stamp-opinit ; @true
                   1114: stamp-opinit : md genopinit $(srcdir)/move-if-change
                   1115:        ./genopinit md > tmp-opinit.c
                   1116:        $(srcdir)/move-if-change tmp-opinit.c insn-opinit.c
                   1117:        touch stamp-opinit
                   1118: 
1.1       root     1119: insn-extract.o : insn-extract.c $(CONFIG_H) $(RTL_H)
                   1120:        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-extract.c
                   1121: 
1.1.1.5   root     1122: insn-extract.c: stamp-extract ; @true
1.1       root     1123: stamp-extract : md genextract $(srcdir)/move-if-change
                   1124:        ./genextract md > tmp-extract.c
                   1125:        $(srcdir)/move-if-change tmp-extract.c insn-extract.c
                   1126:        touch stamp-extract
                   1127: 
                   1128: insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) regs.h output.h real.h
                   1129:        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-peep.c
                   1130: 
1.1.1.5   root     1131: insn-peep.c: stamp-peep ; @true
1.1       root     1132: stamp-peep : md genpeep $(srcdir)/move-if-change
                   1133:        ./genpeep md > tmp-peep.c
                   1134:        $(srcdir)/move-if-change tmp-peep.c insn-peep.c
                   1135:        touch stamp-peep
                   1136: 
                   1137: insn-attrtab.o : insn-attrtab.c $(CONFIG_H) $(RTL_H) regs.h real.h output.h \
                   1138:      insn-attr.h insn-config.h
                   1139:        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-attrtab.c
                   1140: 
1.1.1.5   root     1141: insn-attr.h: stamp-attr ; @true
1.1       root     1142: stamp-attr : md genattr $(srcdir)/move-if-change
                   1143:        ./genattr md > tmp-attr.h
                   1144:        $(srcdir)/move-if-change tmp-attr.h insn-attr.h
                   1145:        touch stamp-attr
                   1146: 
1.1.1.5   root     1147: insn-attrtab.c: stamp-attrtab ; @true
1.1       root     1148: stamp-attrtab : md genattrtab $(srcdir)/move-if-change
1.1.1.3   root     1149:        if cmp -s $(PREMADE_ATTRTAB_MD) md;     \
                   1150:        then                                    \
                   1151:          echo Using $(PREMADE_ATTRTAB);        \
                   1152:          cp $(PREMADE_ATTRTAB) tmp-attrtab.c;  \
                   1153:        else                                    \
                   1154:          ./genattrtab md > tmp-attrtab.c;      \
                   1155:        fi
1.1       root     1156:        $(srcdir)/move-if-change tmp-attrtab.c insn-attrtab.c
                   1157:        touch stamp-attrtab
                   1158: 
                   1159: insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) regs.h real.h conditions.h \
                   1160:     hard-reg-set.h insn-config.h insn-flags.h insn-attr.h output.h recog.h \
                   1161:     insn-codes.h
                   1162:        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-output.c
                   1163: 
1.1.1.5   root     1164: insn-output.c: stamp-output ; @true
1.1       root     1165: stamp-output : md genoutput $(srcdir)/move-if-change
                   1166:        ./genoutput md > tmp-output.c
                   1167:        $(srcdir)/move-if-change tmp-output.c insn-output.c
                   1168:        touch stamp-output
                   1169: 
                   1170: # Compile the programs that generate insn-* from the machine description.
                   1171: # They are compiled with $(HOST_CC), and associated libraries,
                   1172: # since they need to run on this machine
                   1173: # even if GCC is being compiled to run on some other machine.
                   1174: 
                   1175: # $(CONFIG_H) is omitted from the deps of the gen*.o
                   1176: # because these programs don't really depend on anything 
                   1177: # about the target machine.  They do depend on config.h itself,
                   1178: # since that describes the host machine.
                   1179: 
1.1.1.6 ! root     1180: # Pass the md file through cpp if the target requests it.
        !          1181: $(MD_FILE): $(CPP_MD)
        !          1182:        -if [ -f md.pre-cpp ]; then \
        !          1183:          rm -f md ; ./cpp $(CPP_MD_FLAGS) md.pre-cpp | sed 's/^# /; /g' > md ; \
        !          1184:        else true ; \
        !          1185:        fi
        !          1186: 
1.1       root     1187: genconfig : genconfig.o $(HOST_RTL) $(HOST_LIBDEPS)
                   1188:        $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genconfig \
                   1189:          genconfig.o $(HOST_RTL) $(HOST_LIBS)
                   1190: 
1.1.1.4   root     1191: genconfig.o : genconfig.c $(RTL_H) hconfig.h
1.1       root     1192:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genconfig.c
                   1193: 
                   1194: genflags : genflags.o $(HOST_RTL) $(HOST_LIBDEPS)
                   1195:        $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genflags \
                   1196:         genflags.o $(HOST_RTL) $(HOST_LIBS)
                   1197: 
1.1.1.4   root     1198: genflags.o : genflags.c $(RTL_H) hconfig.h
1.1       root     1199:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genflags.c
                   1200: 
                   1201: gencodes : gencodes.o $(HOST_RTL) $(HOST_LIBDEPS)
                   1202:        $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o gencodes \
                   1203:         gencodes.o $(HOST_RTL) $(HOST_LIBS)
                   1204: 
1.1.1.4   root     1205: gencodes.o : gencodes.c $(RTL_H) hconfig.h
1.1       root     1206:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gencodes.c
                   1207: 
                   1208: genemit : genemit.o $(HOST_RTL) $(HOST_LIBDEPS)
                   1209:        $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genemit \
                   1210:         genemit.o $(HOST_RTL) $(HOST_LIBS)
                   1211: 
1.1.1.4   root     1212: genemit.o : genemit.c $(RTL_H) hconfig.h
1.1       root     1213:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genemit.c
                   1214: 
1.1.1.5   root     1215: genopinit : genopinit.o $(HOST_RTL) $(HOST_LIBDEPS)
                   1216:        $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genopinit \
                   1217:         genopinit.o $(HOST_RTL) $(HOST_LIBS)
                   1218: 
                   1219: genopinit.o : genopinit.c $(RTL_H) hconfig.h
                   1220:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genopinit.c
                   1221: 
1.1       root     1222: genrecog : genrecog.o $(HOST_RTL) $(HOST_LIBDEPS)
                   1223:        $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genrecog \
                   1224:         genrecog.o $(HOST_RTL) $(HOST_LIBS)
                   1225: 
1.1.1.4   root     1226: genrecog.o : genrecog.c $(RTL_H) hconfig.h
1.1       root     1227:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genrecog.c
                   1228: 
                   1229: genextract : genextract.o $(HOST_RTL) $(HOST_LIBDEPS)
                   1230:        $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genextract \
                   1231:         genextract.o $(HOST_RTL) $(HOST_LIBS)
                   1232: 
1.1.1.4   root     1233: genextract.o : genextract.c $(RTL_H) hconfig.h insn-config.h
1.1       root     1234:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genextract.c
                   1235: 
                   1236: genpeep : genpeep.o $(HOST_RTL) $(HOST_LIBDEPS)
                   1237:        $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genpeep \
                   1238:         genpeep.o $(HOST_RTL) $(HOST_LIBS)
                   1239: 
1.1.1.4   root     1240: genpeep.o : genpeep.c $(RTL_H) hconfig.h
1.1       root     1241:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genpeep.c
                   1242: 
                   1243: genattr : genattr.o $(HOST_RTL) $(HOST_LIBDEPS)
                   1244:        $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genattr \
                   1245:         genattr.o $(HOST_RTL) $(HOST_LIBS)
                   1246: 
1.1.1.4   root     1247: genattr.o : genattr.c $(RTL_H) hconfig.h
1.1       root     1248:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genattr.c
                   1249: 
1.1.1.3   root     1250: genattrtab : genattrtab.o $(HOST_RTL) $(HOST_PRINT) $(HOST_RTLANAL) $(HOST_LIBDEPS)
1.1       root     1251:        $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genattrtab \
1.1.1.3   root     1252:         genattrtab.o $(HOST_RTL) $(HOST_PRINT) $(HOST_RTLANAL) $(HOST_LIBS)
1.1       root     1253: 
1.1.1.4   root     1254: genattrtab.o : genattrtab.c $(RTL_H) hconfig.h insn-config.h
1.1       root     1255:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genattrtab.c
                   1256: 
                   1257: genoutput : genoutput.o $(HOST_RTL) $(HOST_LIBDEPS)
                   1258:        $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o genoutput \
                   1259:         genoutput.o $(HOST_RTL) $(HOST_LIBS)
                   1260: 
1.1.1.4   root     1261: genoutput.o : genoutput.c $(RTL_H) hconfig.h
1.1       root     1262:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genoutput.c
                   1263: 
                   1264: # Compile the libraries to be used by gen*.
                   1265: # If we are not cross-building, gen* use the same .o's that cc1 will use,
                   1266: # and HOST_PREFIX_1 is `foobar', just to ensure these rules don't conflict
                   1267: # with the rules for rtl.o, alloca.o, etc.
                   1268: $(HOST_PREFIX_1)rtl.o: $(srcdir)/rtl.c $(CONFIG_H) $(RTL_H)
                   1269:        rm -f $(HOST_PREFIX)rtl.c
1.1.1.4   root     1270:        sed -e 's/config[.]h/hconfig.h/' $(srcdir)/rtl.c > $(HOST_PREFIX)rtl.c
1.1       root     1271:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)rtl.c
                   1272: 
1.1.1.3   root     1273: $(HOST_PREFIX_1)print-rtl.o: $(srcdir)/print-rtl.c $(CONFIG_H) $(RTL_H)
                   1274:        rm -f $(HOST_PREFIX)print-rtl.c
1.1.1.4   root     1275:        sed -e 's/config[.]h/hconfig.h/' $(srcdir)/print-rtl.c > $(HOST_PREFIX)print-rtl.c
1.1.1.3   root     1276:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)print-rtl.c
                   1277: 
1.1       root     1278: $(HOST_PREFIX_1)rtlanal.o: $(srcdir)/rtlanal.c $(CONFIG_H) $(RTL_H)
                   1279:        rm -f $(HOST_PREFIX)rtlanal.c
1.1.1.4   root     1280:        sed -e 's/config[.]h/hconfig.h/' $(srcdir)/rtlanal.c > $(HOST_PREFIX)rtlanal.c
1.1       root     1281:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)rtlanal.c
                   1282: 
                   1283: $(HOST_PREFIX_1)alloca.o: alloca.c
                   1284:        rm -f $(HOST_PREFIX)alloca.c
                   1285:        cp $(srcdir)/alloca.c $(HOST_PREFIX)alloca.c
                   1286:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)alloca.c
                   1287: 
                   1288: $(HOST_PREFIX_1)obstack.o: obstack.c
                   1289:        rm -f $(HOST_PREFIX)obstack.c
1.1.1.4   root     1290:        sed -e 's/config[.]h/hconfig.h/' $(srcdir)/obstack.c > $(HOST_PREFIX)obstack.c
1.1       root     1291:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)obstack.c
                   1292: 
                   1293: $(HOST_PREFIX_1)malloc.o: malloc.c
                   1294:        rm -f $(HOST_PREFIX)malloc.c
1.1.1.4   root     1295:        sed -e 's/config[.]h/hconfig.h/' $(srcdir)/malloc.c > $(HOST_PREFIX)malloc.c
1.1       root     1296:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)malloc.c
                   1297: 
                   1298: # This satisfies the dependency that we get if you cross-compile a compiler
                   1299: # that does not need to compile alloca, malloc or whatever.
                   1300: $(HOST_PREFIX_1): 
                   1301:        touch $(HOST_PREFIX_1)
                   1302: 
1.1.1.6 ! root     1303: # Remake bytecode files.
        !          1304: # BI_ALL=bi-run.o
        !          1305: BI_ALL=
        !          1306: BC_ALL=bc-opname.h bc-opcode.h bc-arity.h
        !          1307: BI_OBJ=bi-parser.o bi-lexer.o bi-reverse.o
        !          1308: 
        !          1309: 
        !          1310: bc-emit.o : bc-emit.c $(CONFIG_H) $(RTL_H) real.h $(BYTECODE_H) \
        !          1311:         bc-arity.h bc-opcode.h bc-typecd.h bc-typecd.def bi-run.h bytetypes.h
        !          1312: bc-optab.o : bc-optab.c $(CONFIG_H) $(REAL_H) $(BYTECODE_H) \
        !          1313:                bc-opcode.h bc-typecd.h bc-typecd.def
        !          1314: 
        !          1315: 
        !          1316: bytecode: $(BI_ALL) $(BC_ALL)
        !          1317: 
        !          1318: bi-arity: bi-arity.o $(BI_OBJ) $(HOST_LIBDEPS)
        !          1319:        $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o bi-arity \
        !          1320:         bi-arity.o $(BI_OBJ) $(HOST_LIBS)
        !          1321: bi-opcode: bi-opcode.o $(BI_OBJ) $(HOST_LIBDEPS)
        !          1322:        $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o bi-opcode \
        !          1323:         bi-opcode.o $(BI_OBJ) $(HOST_LIBS)
        !          1324: bi-opname: bi-opname.o $(BI_OBJ) $(HOST_LIBDEPS)
        !          1325:        $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o bi-opname \
        !          1326:         bi-opname.o $(BI_OBJ) $(HOST_LIBS)
        !          1327: 
        !          1328: bi-run.o:      $(srcdir)/bi-run.c $(srcdir)/bi-run.h $(srcdir)/bc-typecd.h \
        !          1329:   bc-opname.h bc-arity.h bc-opcode.h
        !          1330:        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/bi-run.c
        !          1331: $(srcdir)/bi-parser.c $(srcdir)/bi-parser.h: $(srcdir)/bi-parser.y
        !          1332:        cd $(srcdir); $(BISON) $(BISONFLAGS) -d bi-parser.y -o bi-parser.c
        !          1333: bi-parser.o:   $(srcdir)/bi-parser.c $(srcdir)/bi-defs.h hconfig.h
        !          1334:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
        !          1335:           $(srcdir)/bi-parser.c
        !          1336: bi-lexer.o:    $(srcdir)/bi-lexer.c $(srcdir)/bi-parser.h hconfig.h
        !          1337:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
        !          1338:           $(srcdir)/bi-lexer.c
        !          1339: bi-arity.o: bi-arity.c $(srcdir)/bi-defs.h hconfig.h
        !          1340:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
        !          1341:           $(srcdir)/bi-arity.c
        !          1342: bi-opcode.o: bi-opcode.c $(srcdir)/bi-defs.h hconfig.h
        !          1343:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
        !          1344:           $(srcdir)/bi-opcode.c
        !          1345: bi-opname.o: bi-opname.c $(srcdir)/bi-defs.h hconfig.h
        !          1346:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
        !          1347:           $(srcdir)/bi-opname.c
        !          1348: bi-reverse.o: bi-reverse.c $(srcdir)/bi-defs.h
        !          1349:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
        !          1350:           $(srcdir)/bi-reverse.c
        !          1351: 
        !          1352: 
        !          1353: bc-arity.h: stamp-bcarity ; @true
        !          1354: stamp-bcarity : $(srcdir)/bytecode.def bi-arity $(srcdir)/move-if-change
        !          1355:        ./bi-arity < $(srcdir)/bytecode.def >tmp-bc-arity.h
        !          1356:        $(srcdir)/move-if-change tmp-bc-arity.h bc-arity.h
        !          1357:        touch stamp-bcarity
        !          1358: 
        !          1359: bc-opcode.h: stamp-bcopcode ; @true
        !          1360: stamp-bcopcode : $(srcdir)/bytecode.def bi-opcode $(srcdir)/move-if-change
        !          1361:        ./bi-opcode < $(srcdir)/bytecode.def >tmp-bcopcd.h
        !          1362:        $(srcdir)/move-if-change tmp-bcopcd.h bc-opcode.h
        !          1363:        touch stamp-bcopcode
        !          1364: 
        !          1365: bc-opname.h: stamp-bcopname ; @true
        !          1366: stamp-bcopname : $(srcdir)/bytecode.def bi-opname $(srcdir)/move-if-change
        !          1367:        ./bi-opname < $(srcdir)/bytecode.def >tmp-bcopnm.h
        !          1368:        $(srcdir)/move-if-change tmp-bcopnm.h bc-opname.h
        !          1369:        touch stamp-bcopname
        !          1370: 
        !          1371: bytecode.mostlyclean:
        !          1372:        -rm -f bc-arity.h bc-opcode.h bc-opname.h
        !          1373: 
        !          1374: bytecode.distclean bytecode.clean:     bytecode.mostlyclean
        !          1375:        -rm -f bi-arity bi-opcode bi-opname bi-lexer
        !          1376: 
        !          1377: bytecode.realclean: bytecode.clean
        !          1378:        -rm -f bi-parser.c bi-parser.h
        !          1379: 
        !          1380: 
1.1       root     1381: # Remake cpp and protoize.
                   1382: 
                   1383: # Making the preprocessor
                   1384: cpp: cccp
                   1385:        -rm -f cpp
                   1386:        ln cccp cpp
                   1387: cccp: cccp.o cexp.o version.o $(LIBDEPS)
                   1388:        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS)
                   1389: cexp.o: $(srcdir)/cexp.c $(CONFIG_H)
                   1390:        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/cexp.c
                   1391: $(srcdir)/cexp.c: $(srcdir)/cexp.y
                   1392:        cd $(srcdir); $(BISON) -o cexp.c cexp.y
1.1.1.5   root     1393: cccp.o: cccp.c $(CONFIG_H) pcp.h version.c config.status
1.1       root     1394: # The reason we use $(libdir)/g++-include rather than using libsubdir
                   1395: # is for compatibility with the current version of libg++.
                   1396:        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
1.1.1.2   root     1397:          -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
                   1398:          -DGPLUSPLUS_INCLUDE_DIR=\"$(libdir)/g++-include\" \
1.1.1.5   root     1399:          -DLOCAL_INCLUDE_DIR=\"$(local_prefix)/include\" \
1.1.1.2   root     1400:          -DCROSS_INCLUDE_DIR=\"$(libsubdir)/sys-include\" \
1.1.1.5   root     1401:          -DTOOL_INCLUDE_DIR=\"$(tooldir)/include\" \
1.1.1.4   root     1402:          -DTOOLDIR=\"$(tooldir)/\" \
1.1       root     1403:          -c `echo $(srcdir)/cccp.c | sed 's,^\./,,'`
                   1404: 
1.1.1.5   root     1405: # Note for the stamp targets, we run the program `true' instead of
                   1406: # having an empty command (nothing following the semicolon).
                   1407: 
1.1.1.4   root     1408: proto: config.status protoize unprotoize SYSCALLS.c.X
1.1       root     1409: 
1.1.1.2   root     1410: protoize: protoize.o getopt.o getopt1.o getpwd.o version.o $(LIBDEPS)
1.1       root     1411:        $(CC) $(ALL_CFLAGS) $(LDFLAGS) \
1.1.1.2   root     1412:          protoize.o getopt.o getopt1.o getpwd.o version.o $(LIBS) -o $@
1.1.1.5   root     1413: protoize.o: stamp-proto ; @true
1.1.1.3   root     1414: 
                   1415: unprotoize: unprotoize.o getopt.o getopt1.o getpwd.o version.o $(LIBDEPS)
                   1416:        $(CC) $(ALL_CFLAGS) $(LDFLAGS) \
                   1417:          unprotoize.o getopt.o getopt1.o getpwd.o version.o $(LIBS) -o $@
1.1.1.5   root     1418: unprotoize.o:  stamp-proto ; @true
1.1.1.3   root     1419: 
                   1420: stamp-proto:   $(srcdir)/protoize.c getopt.h $(CONFIG_H)
1.1       root     1421:        $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
                   1422:           -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
                   1423:           -DGPLUSPLUS_INCLUDE_DIR=\"$(libdir)/g++-include\" \
                   1424:           -DCROSS_INCLUDE_DIR=\"$(libsubdir)/sys-include\" \
1.1.1.5   root     1425:          -DTOOL_INCLUDE_DIR=\"$(tooldir)/include\" \
                   1426:          -DLOCAL_INCLUDE_DIR=\"$(local_prefix)/include\" \
1.1       root     1427:          -DSTD_PROTO_DIR=\"$(libsubdir)\" \
1.1.1.3   root     1428:          -DUNPROTOIZE $(srcdir)/protoize.c
                   1429:        mv protoize.o unprotoize.o
1.1       root     1430:        $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
                   1431:           -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
                   1432:           -DGPLUSPLUS_INCLUDE_DIR=\"$(libdir)/g++-include\" \
                   1433:           -DCROSS_INCLUDE_DIR=\"$(libsubdir)/sys-include\" \
1.1.1.5   root     1434:          -DTOOL_INCLUDE_DIR=\"$(tooldir)/include\" \
                   1435:          -DLOCAL_INCLUDE_DIR=\"$(local_prefix)/include\" \
1.1       root     1436:          -DSTD_PROTO_DIR=\"$(libsubdir)\" \
1.1.1.3   root     1437:          $(srcdir)/protoize.c
1.1.1.4   root     1438:        touch stamp-proto
1.1       root     1439: 
                   1440: getopt.o: $(srcdir)/getopt.c getopt.h
                   1441:        $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/getopt.c
                   1442: getopt1.o: $(srcdir)/getopt1.c getopt.h
                   1443:        $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/getopt1.c
                   1444: 
                   1445: # This info describes the target machine, so compile with GCC just built.
1.1.1.3   root     1446: SYSCALLS.c.X: $(srcdir)/sys-types.h $(srcdir)/sys-protos.h $(GCC_PASSES)
                   1447:        -rm -f SYSCALLS.c tmp-SYSCALLS.s
                   1448:        cat $(srcdir)/sys-types.h $(srcdir)/sys-protos.h > SYSCALLS.c
1.1       root     1449:        $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
1.1.1.3   root     1450:          -aux-info $@ -S -o tmp-SYSCALLS.s SYSCALLS.c
                   1451:        -rm -f SYSCALLS.c tmp-SYSCALLS.s
                   1452: 
1.1.1.6 ! root     1453: 
1.1.1.3   root     1454: test-protoize-simple: ./protoize ./unprotoize $(GCC_PASSES)
                   1455:        -rm -f tmp-proto.[cso]
                   1456:        cp $(srcdir)/protoize.c tmp-proto.c
                   1457:        chmod u+w tmp-proto.c
                   1458:        ./protoize -N -B ./ -x getopt.h -c "-B./ -Wall -Wwrite-strings \
                   1459:          $(CFLAGS) $(INCLUDES) \
                   1460:          -DGCC_INCLUDE_DIR=0 \
                   1461:          -DGPLUSPLUS_INCLUDE_DIR=0 \
                   1462:          -DCROSS_INCLUDE_DIR=0 \
1.1.1.5   root     1463:          -DTOOL_INCLUDE_DIR=0 \
1.1.1.3   root     1464:          -DSTD_PROTO_DIR=0" tmp-proto.c
1.1.1.4   root     1465:        @echo '**********' Expect 400 lines of differences.
1.1.1.3   root     1466:        -diff $(srcdir)/protoize.c tmp-proto.c > tmp-proto.diff
                   1467:        -wc -l tmp-proto.diff
                   1468:        ./unprotoize -N -x getopt.h -c "-B./ -Wall -Wwrite-strings \
                   1469:          $(CFLAGS) $(INCLUDES) \
                   1470:          -DGCC_INCLUDE_DIR=0 \
                   1471:          -DGPLUSPLUS_INCLUDE_DIR=0 \
                   1472:          -DCROSS_INCLUDE_DIR=0 \
1.1.1.5   root     1473:          -DTOOL_INCLUDE_DIR=0 \
1.1.1.3   root     1474:          -DSTD_PROTO_DIR=0" tmp-proto.c
                   1475:        @echo Expect zero differences.
                   1476:        diff $(srcdir)/protoize.c tmp-proto.c | cat
                   1477:        -rm -f tmp-proto.[cso]
1.1       root     1478: 
1.1.1.5   root     1479: # Build the include directory.  The stamp files are stmp-* rather than
                   1480: # stamp-* so that mostlyclean does not force the include directory to
                   1481: # be rebuilt.
                   1482: 
                   1483: # Build the include directory except for float.h (which depends upon
                   1484: # enquire).
                   1485: stmp-int-hdrs: stmp-fixinc $(USER_H) gvarargs.h gstdarg.h gstddef.h \
                   1486:   xlimits.h objc-headers
                   1487: # Copy in the headers provided with gcc.
                   1488: # The sed command gets just the last file name component;
                   1489: # this is necessary because VPATH could add a dirname.
                   1490: # Using basename would be simpler, but some systems don't have it.
                   1491:        objdir=`pwd`; \
                   1492:        cd $(srcdir); \
                   1493:        for file in $(USER_H); do \
                   1494:          realfile=`echo $$file | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
                   1495:          rm -f $$objdir/include/$$realfile; \
                   1496:          cp $$realfile $$objdir/include; \
                   1497:          chmod a+r $$objdir/include/$$realfile; \
                   1498:        done
                   1499:        rm -f include/varargs.h
                   1500:        cp $(srcdir)/gvarargs.h include/varargs.h
                   1501:        chmod a+r include/varargs.h
                   1502:        rm -f include/stdarg.h
                   1503:        cp $(srcdir)/gstdarg.h include/stdarg.h
                   1504:        chmod a+r include/stdarg.h
                   1505:        rm -f include/stddef.h
                   1506:        cp $(srcdir)/gstddef.h include/stddef.h
                   1507:        chmod a+r include/stddef.h
                   1508:        rm -f include/limits.h
                   1509:        cp xlimits.h include/limits.h
                   1510:        chmod a+r include/limits.h
                   1511: # Install the README
                   1512:        rm -f include/README
                   1513:        cp $(srcdir)/README-fixinc include/README
                   1514:        chmod a+r include/README
                   1515:        touch stmp-int-hdrs
                   1516: 
                   1517: # Build the complete include directory.
                   1518: stmp-headers: stmp-int-hdrs gfloat.h
                   1519:        rm -f include/float.h
                   1520:        cp gfloat.h include/float.h
                   1521:        chmod a+r include/float.h
                   1522:        touch stmp-headers
                   1523: 
1.1.1.6 ! root     1524: # Running fixincludes requires making sure that xgcc and cpp have been
        !          1525: # compiled (they are used to get the value of __SIZE_TYPE__).
        !          1526: # But recompiling xgcc should not force the the header files to be
        !          1527: # fixed again.  If you want to do that, delete stmp-fixinc.
        !          1528: fixinc.ready: xgcc cpp
        !          1529:        -if [ -f fixinc.ready ] ; then \
        !          1530:                true; \
        !          1531:        else \
        !          1532:                touch fixinc.ready; \
        !          1533:        fi
        !          1534: 
1.1.1.5   root     1535: # Build fixed copies of system files.
1.1.1.6 ! root     1536: stmp-fixinc: $(srcdir)/$(FIXINCLUDES) gsyslimits.h fixinc.ready
1.1.1.5   root     1537:        rm -rf include
                   1538:        mkdir include
                   1539:        if [ x$(FIXINCLUDES) != xMakefile.in ]; \
                   1540:        then \
                   1541:          for dir in $(SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS); do \
                   1542:            if [ -d $$dir ]; \
                   1543:            then \
1.1.1.6 ! root     1544:              $(srcdir)/$(FIXINCLUDES) include $$dir $(srcdir) "`pwd`/xgcc -B`pwd`/"; \
1.1.1.5   root     1545:            else true; fi; \
                   1546:          done; \
                   1547:        else true; \
                   1548:        fi
                   1549:        rm -f include/syslimits.h
                   1550:        if [ -f include/limits.h ]; then \
                   1551:          mv include/limits.h include/syslimits.h; \
                   1552:        else \
                   1553:          cp $(srcdir)/gsyslimits.h include/syslimits.h; \
                   1554:        fi
                   1555:        chmod a+r include/syslimits.h
                   1556:        touch stmp-fixinc
                   1557: 
                   1558: # copy objc header files into build directory
1.1.1.6 ! root     1559: objc-headers: stmp-fixinc
1.1.1.5   root     1560:        if [ -d objc ]; then true; else mkdir objc; fi
                   1561:        thisdir1=`pwd`; \
                   1562:        srcdir1=`cd $(srcdir); pwd`; \
                   1563:        cd objc; \
                   1564:        $(MAKE) -f $${srcdir1}/objc/Makefile copy-headers \
                   1565:        srcdir=$${srcdir1} tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
                   1566:        GCC_FOR_TARGET="$${thisdir1}/xgcc -B$${thisdir1}/" \
                   1567:        GCC_CFLAGS="$(GCC_CFLAGS)" incinstalldir=$${thisdir1}/include
                   1568:        touch objc-headers
1.1.1.6 ! root     1569: 
        !          1570: # Files related to the fixproto script.
        !          1571: 
        !          1572: deduced.h: $(GCC_PASSES) $(srcdir)/scan-types.sh stmp-int-hdrs
        !          1573:        CC="$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) -I. -I$(srcdir) -Iinclude -I${SYSTEM_HEADER_DIR}"; \
        !          1574:          export CC; \
        !          1575:          $(srcdir)/scan-types.sh "$(srcdir)" >tmp-deduced.h
        !          1576:        mv tmp-deduced.h deduced.h
        !          1577: 
        !          1578: gen-protos: gen-protos.o scan.o $(HOST_LIBDEPS)
        !          1579:        ${HOST_CC} $(HOST_CFLAGS) $(HOST_LDFLAGS) -o gen-protos \
        !          1580:          gen-protos.o scan.o $(HOST_LIBS)
        !          1581: 
        !          1582: gen-protos.o: gen-protos.c scan.h hconfig.h
        !          1583:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gen-protos.c
        !          1584: 
        !          1585: scan.o: scan.c scan.h hconfig.h
        !          1586:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/scan.c
        !          1587: 
        !          1588: xsys-protos.h: $(GCC_PASSES) $(srcdir)/sys-protos.h deduced.h gen-protos Makefile
        !          1589:        cat deduced.h $(srcdir)/sys-protos.h > fixtmp.c
        !          1590:        $(GCC_FOR_TARGET) fixtmp.c -E \
        !          1591:          | sed -e 's/  / /g' -e 's/ *(/ (/g' -e 's/ [ ]*/ /g' -e 's/( )/()/' \
        !          1592:          | ./gen-protos >xsys-protos.h
        !          1593:        rm -rf fixtmp.c
        !          1594: 
        !          1595: fix-header: fix-header.o scan-decls.o scan.o xsys-protos.h $(HOST_LIBDEPS)
        !          1596:        $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o fix-header \
        !          1597:          fix-header.o scan-decls.o scan.o $(HOST_LIBS)
        !          1598: 
        !          1599: fix-header.o: fix-header.c obstack.h scan.h xsys-protos.h hconfig.h
        !          1600:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/fix-header.c
        !          1601: 
        !          1602: scan-decls.o: scan-decls.c scan.h hconfig.h
        !          1603:        $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/scan-decls.c
        !          1604: 
        !          1605: # stmp-fixproto depends on this, not on fix-header directly.
        !          1606: # The idea is to make sure fix-header gets built,
        !          1607: # but not rerun fixproto after each stage
        !          1608: # just because fix-header's mtime has changed.
        !          1609: fixhdr.ready: fix-header
        !          1610:        -if [ -f fixhdr.ready ] ; then \
        !          1611:                true; \
        !          1612:        else \
        !          1613:                touch fixhdr.ready; \
        !          1614:        fi
        !          1615: 
        !          1616: # stmp-headers is to make sure fixincludes has already finished.
        !          1617: # The if statement is so that we don't run fixproto a second time
        !          1618: # if it has already been run on the files in `include'.
        !          1619: stmp-fixproto: fixhdr.ready fixproto stmp-headers
        !          1620:        @echo "Various warnings and error messages from fixproto are normal"
        !          1621:        -if [ -d include ] ; then true; else mkdir include; fi
        !          1622:        if [ -f include/fixed ] ; then true; \
        !          1623:        else \
        !          1624:          CPP="$(GCC_FOR_TARGET) -E"; export CPP; \
        !          1625:            ${srcdir}/fixproto include include $(SYSTEM_HEADER_DIR); \
        !          1626:          touch include/fixed; \
        !          1627:        fi
        !          1628:        touch stmp-fixproto
1.1.1.5   root     1629: 
1.1       root     1630: # Remake the info files.
                   1631: 
1.1.1.5   root     1632: doc: info
                   1633: info: $(srcdir)/cpp.info $(srcdir)/gcc.info
1.1       root     1634: 
1.1.1.3   root     1635: $(srcdir)/cpp.info: cpp.texi
1.1.1.5   root     1636:        cd $(srcdir); $(MAKEINFO) cpp.texi
1.1       root     1637: 
1.1.1.3   root     1638: #$(srcdir)/gplus.info: gplus.texi
1.1.1.5   root     1639: #      $(MAKEINFO) `echo $(srcdir)/gplus.texi | sed 's,^\./,,'`
1.1       root     1640: 
1.1.1.3   root     1641: $(srcdir)/gcc.info: gcc.texi extend.texi install.texi invoke.texi \
                   1642:                md.texi rtl.texi tm.texi 
1.1.1.5   root     1643:        cd $(srcdir); $(MAKEINFO) gcc.texi
                   1644: 
                   1645: dvi: $(srcdir)/gcc.dvi $(srcdir)/cpp.dvi
1.1.1.3   root     1646: 
1.1.1.4   root     1647: # This works with GNU Make's default rule.
                   1648: $(srcdir)/gcc.dvi: gcc.texi extend.texi install.texi invoke.texi \
                   1649:                md.texi rtl.texi tm.texi 
1.1.1.5   root     1650:        $(TEXI2DVI) $<
1.1.1.4   root     1651: 
                   1652: # This works with GNU Make's default rule.
                   1653: $(srcdir)/cpp.dvi: cpp.texi
1.1.1.5   root     1654:        $(TEXI2DVI) $<
1.1.1.4   root     1655: 
1.1.1.3   root     1656: $(srcdir)/INSTALL: install1.texi install.texi
1.1.1.6 ! root     1657:        $(MAKEINFO) -D INSTALLONLY --no-header --no-split \
        !          1658:          `echo $(srcdir)/install1.texi | sed 's,^\./,,'`
1.1       root     1659: 
                   1660: # Deletion of files made during compilation.
                   1661: # There are four levels of this:
1.1.1.3   root     1662: #   `mostlyclean', `clean', `distclean' and `realclean'.
1.1       root     1663: # `mostlyclean' is useful while working on a particular type of machine.
1.1.1.2   root     1664: # It deletes most, but not all, of the files made by compilation.
1.1       root     1665: # It does not delete libgcc.a or its parts, so it won't have to be recompiled.
1.1.1.2   root     1666: # `clean' deletes everything made by running `make all'.
1.1.1.3   root     1667: # `distclean' also deletes the files made by config.
1.1       root     1668: # `realclean' also deletes everything that could be regenerated automatically.
                   1669: 
1.1.1.3   root     1670: 
1.1.1.6 ! root     1671: mostlyclean: bytecode.mostlyclean
1.1       root     1672:        -rm -f $(STAGESTUFF)
1.1.1.4   root     1673: # Clean the objc subdir if we created one.
                   1674:        if [ -d objc ]; then \
                   1675:          srcdir1=`cd $(srcdir); pwd`; \
                   1676:          cd objc; $(MAKE) -f $$srcdir1/objc/Makefile mostlyclean; \
                   1677:        else true; fi
                   1678:        -rm -f libobjc.a
1.1       root     1679: # Delete the temporary source copies for cross compilation.
                   1680:        -rm -f $(HOST_PREFIX_1)rtl.c $(HOST_PREFIX_1)rtlanal.c
                   1681:        -rm -f $(HOST_PREFIX_1)alloca.c $(HOST_PREFIX_1)malloc.c
                   1682:        -rm -f $(HOST_PREFIX_1)obstack.c 
                   1683: # Delete the temp files made in the course of building libgcc.a.
1.1.1.4   root     1684:        -rm -f tmplibgcc* tmpcopy xlimits.h
1.1       root     1685:        for name in $(LIB1FUNCS); do rm -f $${name}.c; done
                   1686: # Delete other temporary files.
1.1.1.5   root     1687:        -rm -f tmp-float.h tmp-gcc.xtar.gz
1.1.1.3   root     1688:        -rm -f tmp-foo1 tmp-foo2 tmp-proto.* tmp-unproto.1 tmp-SYSCALLS.s
1.1       root     1689: # Delete the stamp files.
                   1690:        -rm -f stamp-* tmp-*
1.1.1.2   root     1691: # Delete debugging dump files.
1.1       root     1692:        -rm -f *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop
1.1.1.2   root     1693:        -rm -f *.dbr *.jump2 *.sched *.cse2 *.sched2 *.stack
                   1694: # Delete some files made during installation.
1.1.1.5   root     1695:        -rm -f specs gfloat.h float.h-* enquire SYSCALLS.c.X SYSCALLS.c
1.1.1.2   root     1696:        -rm -f collect collect2 ld mips-tfile mips-tdump alloca.s
1.1.1.6 ! root     1697: # Delete files generated for fixproto
        !          1698:        -rm -rf fix-header xsys-protos.h deduced.h tmp-deduced.h \
        !          1699:          gen-protos fixproto.list fixtmp.* fixhdr.ready
1.1.1.2   root     1700: # Delete unwanted output files from TeX.
1.1       root     1701:        -rm -f *.toc *.log *.vr *.fn *.cp *.tp *.ky *.pg
1.1.1.2   root     1702: # Delete sorted indices we don't actually use.
                   1703:        -rm -f gcc.vrs gcc.kys gcc.tps gcc.pgs gcc.fns
                   1704: # Delete core dumps.
1.1.1.4   root     1705:        -rm -f core config/core
1.1       root     1706: 
1.1.1.3   root     1707: # Delete all files made by compilation
                   1708: # that don't exist in the distribution.
1.1.1.6 ! root     1709: clean: mostlyclean bytecode.clean
1.1.1.3   root     1710: # It may not be quite desirable to delete unprotoize.c here,
                   1711: # but the spec for `make clean' requires it.
                   1712: # Using unprotoize.c is not quite right in the first place, 
                   1713: # but what better way is there?
                   1714:        -rm -f libgcc.a libgcc1.a libgcc2.a libgcc2.ready libgcc1.null
                   1715:        -rm -f *.dvi
1.1.1.6 ! root     1716:        -if [ -f md.pre-cpp ]; then \
        !          1717:          rm -f md ; \
        !          1718:        fi
1.1.1.5   root     1719: # Delete the include directory.
1.1.1.6 ! root     1720:        -rm -rf stmp-* fixinc.ready include objc-headers
1.1       root     1721: 
1.1.1.3   root     1722: # Delete all files that users would normally create
                   1723: # while building and installing GCC.
1.1.1.6 ! root     1724: distclean: clean bytecode.distclean
        !          1725:        -rm -f tm.h aux-output.c config.h config.status tconfig.h hconfig.h
        !          1726:        -rm -f md md.pre-cpp
1.1.1.3   root     1727:        -rm -f Makefile *.oaux
                   1728:        -rm -fr stage1 stage2 stage3 stage4
1.1.1.5   root     1729:        -rm -f cp-parse.output
                   1730:        -rm -f objc-parse.output
                   1731:        -rm -f c-parse.output
1.1       root     1732: 
1.1.1.2   root     1733: # Delete anything likely to be found in the source directory
1.1       root     1734: # that shouldn't be in the distribution.
1.1.1.2   root     1735: extraclean: distclean
1.1.1.5   root     1736:        -rm -rf =* ./"#"* *~* config/=* config/"#"* config/*~*
1.1.1.3   root     1737:        -rm -f patch* *.orig *.rej config/patch* config/*.orig config/*.rej
1.1.1.5   root     1738:        -rm -f config/*/=* config/*/"#"* config/*/*~*
                   1739:        -rm -f config/*/*.orig config/*/*.rej
                   1740:        -rm -f objc/=* objc/"#"* objc/*~*
                   1741:        -rm -f objc/*.orig objc/*.rej
                   1742:        -rm -f *.dvi *.oaux *.d *.[zZ] *.gz
                   1743:        -rm -f *.tar *.xtar *diff *.diff.* *.tar.* *.xtar.* *diffs
                   1744:        -rm -f *lose config/*lose config/*/*lose
1.1.1.4   root     1745:        -rm -f *.s *.s[0-9] *.i install1.texi config/ChangeLog
1.1.1.6 ! root     1746:        -rm -f djefoo
1.1       root     1747: 
                   1748: # Get rid of every file that's generated from some other file.
                   1749: # Most of these files ARE PRESENT in the GCC distribution.
1.1.1.6 ! root     1750: realclean: distclean bytecode.realclean
1.1.1.4   root     1751:        -rm -f c-parse.y objc-parse.y
1.1       root     1752:        -rm -f cp-parse.c cp-parse.h cp-parse.output
                   1753:        -rm -f objc-parse.c objc-parse.output
                   1754:        -rm -f c-parse.c c-parse.h c-parse.output
                   1755:        -rm -f cexp.c cexp.output TAGS 
                   1756:        -rm -f cpp.info* cpp.??s cpp.*aux
                   1757:        -rm -f gcc.info* gcc.??s gcc.*aux
                   1758:        -rm -f gplus.info* gplus.??s gplus.*aux
                   1759: 
                   1760: # Entry points `install' and `uninstall'.
                   1761: # Also use `install-collect2' to install collect2 when the config files don't.
                   1762: 
1.1.1.4   root     1763: # The semicolon is to prevent the install.sh -> install default rule
1.1.1.5   root     1764: # from doing anything.  Having it run true helps avoid problems and
                   1765: # noise from versions of make which don't like to have null commands.
                   1766: install: $(INSTALL_TARGET) ; @true
                   1767: 
                   1768: # Copy the compiler files into directories where they will be run.
1.1.1.6 ! root     1769: install-normal: install-common $(INSTALL_HEADERS) $(INSTALL_LIBGCC) \
        !          1770:     install-man install-info
1.1       root     1771: 
1.1.1.4   root     1772: # Do nothing while making gcc with a cross-compiler. The person who
                   1773: # makes gcc for the target machine has to know how to put a complete
                   1774: # gcc together by hand.
                   1775: install-build: force
                   1776:        @echo You have to install gcc on your target machine by hand.
                   1777: 
1.1       root     1778: # Run this on the target machine
                   1779: # to finish installation of cross compiler.
                   1780: install-cross-rest: install-float-h-cross
                   1781: 
                   1782: # Install float.h for cross compiler.
                   1783: # Run this on the target machine!
1.1.1.6 ! root     1784: install-float-h-cross: install-dir
1.1.1.5   root     1785: #      if [ -f enquire ] ; then true; else false; fi
                   1786: # Note: don't use -.  We should fail right away if enquire was not made.
                   1787:        ./enquire -f > $(tmpdir)/float.h
1.1       root     1788:        -rm -f $(libsubdir)/include/float.h
1.1.1.4   root     1789:        $(INSTALL_DATA) $(tmpdir)/float.h $(libsubdir)/include/float.h
                   1790:        -rm -f $(tmpdir)/float.h
1.1       root     1791:        chmod a-x $(libsubdir)/include/float.h
                   1792: 
                   1793: # Create the installation directory.
                   1794: install-dir:
1.1.1.3   root     1795:        -if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; fi
                   1796:        -if [ -d $(libdir)/gcc-lib ] ; then true ; else mkdir $(libdir)/gcc-lib ; fi
1.1.1.6 ! root     1797: # This dir isn't currently searched by cpp.
1.1.1.5   root     1798: #      -if [ -d $(libdir)/gcc-lib/include ] ; then true ; else mkdir $(libdir)/gcc-lib/include ; fi
1.1.1.3   root     1799:        -if [ -d $(libdir)/gcc-lib/$(target) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target) ; fi
                   1800:        -if [ -d $(libdir)/gcc-lib/$(target)/$(version) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target)/$(version) ; fi
                   1801:        -if [ -d $(libdir)/gcc-lib/$(target)/$(version)/include ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target)/$(version)/include ; fi
                   1802:        -if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; fi
1.1.1.4   root     1803:        -if [ -d $(includedir) ] ; then true ; else mkdir $(includedir) ; fi
1.1.1.5   root     1804:        -if [ -d $(tooldir) ] ; then true ; else mkdir $(tooldir) ; fi
                   1805:        -if [ -d $(assertdir) ] ; then true ; else mkdir $(assertdir) ; fi
                   1806:        -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
1.1       root     1807: # We don't use mkdir -p to create the parents of mandir,
                   1808: # because some systems don't support it.
                   1809: # Instead, we use this technique to create the immediate parent of mandir.
1.1.1.3   root     1810:        -parent=`echo $(mandir)|sed -e 's@/[^/]*$$@@'`; \
1.1       root     1811:        if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
                   1812:        -if [ -d $(mandir) ] ; then true ; else mkdir $(mandir) ; fi
                   1813: 
                   1814: # Install the compiler executables built during cross compilation.
1.1.1.4   root     1815: install-common: native install-dir xgcc $(EXTRA_PARTS)
1.1       root     1816:        for file in $(COMPILERS); do \
                   1817:          if [ -f $$file ] ; then \
                   1818:            rm -f $(libsubdir)/$$file; \
                   1819:            $(INSTALL_PROGRAM) $$file $(libsubdir)/$$file; \
                   1820:          else true; \
                   1821:          fi; \
                   1822:        done
1.1.1.3   root     1823:        for file in $(EXTRA_PASSES) $(EXTRA_PARTS) $(EXTRA_PROGRAMS) $(USE_COLLECT2) ..; do \
1.1       root     1824:          if [ x"$$file" != x.. ]; then \
                   1825:            rm -f $(libsubdir)/$$file; \
                   1826:            $(INSTALL_PROGRAM) $$file $(libsubdir)/$$file; \
                   1827:          else true; fi; \
                   1828:        done
1.1.1.4   root     1829: # Don't mess with specs if it doesn't exist yet.
                   1830:        -if [ -f specs ] ; then \
                   1831:          rm -f $(libsubdir)/specs; \
                   1832:          $(INSTALL_DATA) specs $(libsubdir)/specs; \
                   1833:        fi
1.1.1.5   root     1834: # Install the driver program as $(target)-gcc
1.1       root     1835: # and also as either gcc (if native) or $(tooldir)/bin/gcc.
                   1836:        -if [ -f gcc-cross ] ; then \
1.1.1.5   root     1837:          rm -f $(bindir)/$(target)-gcc; \
                   1838:          $(INSTALL_PROGRAM) gcc-cross $(bindir)/$(target)-gcc; \
1.1       root     1839:          if [ -d $(tooldir)/bin/. ] ; then \
                   1840:            rm -f $(tooldir)/bin/gcc; \
                   1841:            $(INSTALL_PROGRAM) gcc-cross $(tooldir)/bin/gcc; \
                   1842:          else true; fi; \
1.1.1.6 ! root     1843:          if [ -f cc1plus ] ; then \
        !          1844:            rm -f $(bindir)/$(target)-g++; \
        !          1845:            $(INSTALL_PROGRAM) g++-cross $(bindir)/$(target)-g++; \
        !          1846:            chmod a+x $(bindir)/$(target)-g++; \
        !          1847:            rm -f $(bindir)/$(target)-c++; \
        !          1848:            ln $(bindir)/$(target)-g++ $(bindir)/$(target)-c++; \
        !          1849:          fi ; \
1.1       root     1850:        else \
                   1851:          rm -f $(bindir)/gcc; \
1.1.1.4   root     1852:          $(INSTALL_PROGRAM) xgcc $(bindir)/gcc; \
1.1.1.5   root     1853:          rm -f $(bindir)/$(target)-gcc-1; \
                   1854:          ln $(bindir)/gcc $(bindir)/$(target)-gcc-1; \
                   1855:          mv $(bindir)/$(target)-gcc-1 $(bindir)/$(target)-gcc; \
1.1.1.6 ! root     1856:          if [ -f cc1plus ] ; then \
        !          1857:            rm -f $(bindir)/g++; \
        !          1858:            $(INSTALL_PROGRAM) g++ $(bindir)/g++; \
        !          1859:            chmod a+x $(bindir)/g++; \
        !          1860:            rm -f $(bindir)/c++; \
        !          1861:            ln $(bindir)/g++ $(bindir)/c++; \
        !          1862:          fi ; \
1.1       root     1863:        fi
1.1.1.4   root     1864: # Install protoize if it was compiled.
                   1865:        -if [ -f protoize ]; \
                   1866:        then \
                   1867:            rm -f $(bindir)/protoize; \
                   1868:            $(INSTALL_PROGRAM) protoize $(bindir)/protoize; \
                   1869:            rm -f $(bindir)/unprotoize; \
                   1870:            $(INSTALL_PROGRAM) unprotoize $(bindir)/unprotoize; \
                   1871:            rm -f $(libsubdir)/SYSCALLS.c.X; \
                   1872:            $(INSTALL_DATA) SYSCALLS.c.X $(libsubdir)/SYSCALLS.c.X; \
                   1873:            chmod a-x $(libsubdir)/SYSCALLS.c.X; \
                   1874:        fi
1.1       root     1875:        -rm -f $(libsubdir)/cpp
                   1876:        $(INSTALL_PROGRAM) cpp $(libsubdir)/cpp
                   1877: 
1.1.1.5   root     1878: # Install the info files.
1.1.1.6 ! root     1879: install-info: doc install-dir
1.1.1.5   root     1880:        -rm -f $(infodir)/cpp.info* $(infodir)/gcc.info*
                   1881:        cd $(srcdir); for f in cpp.info* gcc.info*; \
                   1882:        do $(INSTALL_DATA) $$f $(infodir)/$$f; done
                   1883:        -chmod a-x $(infodir)/cpp.info* $(infodir)/gcc.info*
                   1884: 
1.1       root     1885: # Install the man pages.
1.1.1.4   root     1886: install-man: install-dir $(srcdir)/gcc.1 $(srcdir)/cccp.1 $(srcdir)/g++.1
1.1       root     1887:        -rm -f $(mandir)/gcc$(manext)
1.1.1.3   root     1888:        -$(INSTALL_DATA) $(srcdir)/gcc.1 $(mandir)/gcc$(manext)
                   1889:        -chmod a-x $(mandir)/gcc$(manext)
1.1.1.2   root     1890:        -rm -f $(mandir)/cccp$(manext)
1.1.1.3   root     1891:        -$(INSTALL_DATA) $(srcdir)/cccp.1 $(mandir)/cccp$(manext)
                   1892:        -chmod a-x $(mandir)/cccp$(manext)
                   1893:        -$(INSTALL_DATA) $(srcdir)/g++.1 $(mandir)/g++$(manext)
                   1894:        -chmod a-x $(mandir)/g++$(manext)
1.1       root     1895: 
                   1896: # Install the library.
1.1.1.3   root     1897: install-libgcc: libgcc.a install-dir
1.1       root     1898:        -if [ -f libgcc.a ] ; then \
                   1899:          rm -f $(libsubdir)/libgcc.a; \
                   1900:          $(INSTALL_DATA) libgcc.a $(libsubdir)/libgcc.a; \
                   1901:          if $(RANLIB_TEST) ; then \
                   1902:            (cd $(libsubdir); $(RANLIB) libgcc.a); else true; fi; \
                   1903:          chmod a-x $(libsubdir)/libgcc.a; \
                   1904:        else true; fi
                   1905: 
1.1.1.4   root     1906: # Install the objc run time library.
                   1907: install-libobjc: libobjc.a install-dir
                   1908:        -if [ -f libobjc.a ] ; then \
                   1909:          rm -f $(libsubdir)/libobjc.a; \
                   1910:          $(INSTALL_DATA) libobjc.a $(libsubdir)/libobjc.a; \
                   1911:          if $(RANLIB_TEST) ; then \
                   1912:            (cd $(libsubdir); $(RANLIB) libobjc.a); else true; fi; \
                   1913:          chmod a-x $(libsubdir)/libobjc.a; \
                   1914:        else true; fi
                   1915: 
1.1.1.5   root     1916: # Install all the header files built in the include subdirectory.
                   1917: install-headers: install-include-dir $(INSTALL_HEADERS_DIR) install-assert-h
                   1918: # Fix symlinks to absolute paths in the installed include directory to
                   1919: # point to the installed directory, not the build directory.
                   1920:        -files=`cd $(libsubdir)/include; find . -type l -print 2>/dev/null`; \
                   1921:        if [ $$? -eq 0 ]; then \
                   1922:          dir=`cd include; pwd`; \
                   1923:          for i in $$files; do \
                   1924:            dest=`ls -ld $(libsubdir)/include/$$i | sed -n 's/.*-> //p'`; \
                   1925:            if expr "$$dest" : "$$dir.*" > /dev/null; then \
                   1926:              rm -f $(libsubdir)/include/$$i; \
                   1927:              ln -s `echo $$i | sed "s|/[^/]*|/..|g" | sed 's|/..$$||'``echo "$$dest" | sed "s|$$dir||"` $(libsubdir)/include/$$i; \
                   1928:            fi; \
                   1929:          done; \
                   1930:        fi
1.1       root     1931: 
1.1.1.5   root     1932: # Create or recreate the gcc private include file directory.
                   1933: install-include-dir: install-dir
                   1934:        -rm -rf $(libsubdir)/include
                   1935:        mkdir $(libsubdir)/include
                   1936:        -chmod a+rx $(libsubdir)/include
                   1937: 
                   1938: # Install the include directory using tar.
1.1.1.6 ! root     1939: install-headers-tar: stmp-headers $(STMP_FIXPROTO) install-include-dir
        !          1940:        cd include; \
        !          1941:         (tar cf - .; exit 0) | (cd $(libsubdir)/include; tar $(TAROUTOPTS) - )
        !          1942: # /bin/sh on some systems returns the status of the first tar,
        !          1943: # and that can lose with GNU tar which always writes a full block.
        !          1944: # So use `exit 0' to ignore its exit status.
1.1.1.5   root     1945: 
                   1946: # Install the include directory using cpio.
1.1.1.6 ! root     1947: install-headers-cpio: stmp-headers $(STMP_FIXPROTO) install-include-dir
1.1.1.5   root     1948:        cd include; find . -print | cpio -pdum $(libsubdir)/include
                   1949: 
                   1950: # Put assert.h where it won't override GNU libc's assert.h.
                   1951: # It goes in a dir that is searched after GNU libc's headers;
                   1952: # thus, the following conditionals are no longer needed.
                   1953: # But it's not worth deleting them now.
                   1954: ## Don't replace the assert.h already there if it is not from GCC.
                   1955: ## This code would be simpler if it tested for -f ... && ! grep ...
                   1956: ## but supposedly the ! operator is missing in sh on some systems.
                   1957: install-assert-h: assert.h install-dir
1.1.1.4   root     1958:        if [ -f $(assertdir)/assert.h ]; \
                   1959:        then \
1.1.1.5   root     1960:          if grep "__eprintf" $(assertdir)/assert.h >/dev/null; \
1.1.1.4   root     1961:            then \
                   1962:            rm -f $(assertdir)/assert.h; \
                   1963:            $(INSTALL_DATA) $(srcdir)/assert.h $(assertdir)/assert.h; \
                   1964:            chmod a-x $(assertdir)/assert.h; \
                   1965:          else true; \
                   1966:          fi; \
                   1967:        else \
                   1968:          rm -f $(assertdir)/assert.h; \
                   1969:          $(INSTALL_DATA) $(srcdir)/assert.h $(assertdir)/assert.h; \
                   1970:          chmod a-x $(assertdir)/assert.h; \
                   1971:        fi
1.1       root     1972: 
                   1973: # Use this target to install the program `collect2' under the name `ld'.
1.1.1.6 ! root     1974: install-collect2: collect2 install-dir
1.1       root     1975:        $(INSTALL_PROGRAM) collect2 $(libsubdir)/ld
                   1976: # Install the driver program as $(libsubdir)/gcc for collect2.
1.1.1.4   root     1977:        $(INSTALL_PROGRAM) xgcc $(libsubdir)/gcc
1.1       root     1978: 
                   1979: # Cancel installation by deleting the installed files.
                   1980: uninstall:
                   1981:        -rm -rf $(libsubdir)
                   1982:        -rm -rf $(bindir)/gcc
                   1983:        -rm -rf $(bindir)/protoize
                   1984:        -rm -rf $(bindir)/unprotoize
                   1985:        -rm -rf $(mandir)/gcc$(manext)
1.1.1.5   root     1986:        -rm -rf $(mandir)/g++$(manext)
1.1.1.2   root     1987:        -rm -rf $(mandir)/cccp$(manext)
1.1       root     1988:        -rm -rf $(mandir)/protoize$(manext)
                   1989:        -rm -rf $(mandir)/unprotoize$(manext)
                   1990: 
                   1991: # These exist for maintenance purposes.
                   1992: 
                   1993: # Update the tags table.
                   1994: TAGS: force
                   1995:        cd $(srcdir);                                                   \
                   1996:        mkdir temp;                                                     \
1.1.1.4   root     1997:        mv -f c-parse.[ch] cp-parse.[ch] objc-parse.c cexp.c =*.[chy] temp; \
1.1       root     1998:        etags *.y *.h *.c;                                              \
                   1999:        mv temp/* .;                                                    \
                   2000:        rmdir temp
                   2001: 
                   2002: # Create the distribution tar file.
1.1.1.5   root     2003: #dist: gcc-$(version).tar.gz
                   2004: dist: gcc.xtar.gz
1.1       root     2005: 
1.1.1.5   root     2006: gcc.xtar.gz: gcc.xtar
                   2007:        gzip < gcc.xtar > tmp-gcc.xtar.gz
                   2008:        mv tmp-gcc.xtar.gz gcc.xtar.gz
1.1       root     2009: 
1.1.1.5   root     2010: #gcc-$(version).tar.gz: gcc-$(version).tar
                   2011: #      gzip < gcc-$(version).tar > gcc-$(version).tar.gz
1.1       root     2012: 
                   2013: #gcc-$(version).tar:
1.1.1.5   root     2014: gcc.xtar: distdir
                   2015: # Make the distribution.
                   2016:        tar chf gcc.xtar gcc-$(version)
                   2017: 
                   2018: distdir: doc $(srcdir)/INSTALL c-parse.y objc-parse.y cp-parse.y \
                   2019:   c-parse.c cp-parse.c objc-parse.c cexp.c
1.1.1.6 ! root     2020:        @if grep -s "for version ${mainversion}" gcc.texi > /dev/null; \
1.1.1.3   root     2021:        then true; \
                   2022:        else echo "You must update the version number in \`gcc.texi'"; sleep 10;\
                   2023:        fi
                   2024: # Update the version number in README
                   2025:        awk '$$1 " " $$2 " " $$3 == "This directory contains" \
                   2026:                { $$6 = version; print $$0 } \
                   2027:             $$1 " " $$2 " " $$3 != "This directory contains"' \
                   2028:          version=$(version) README > tmp.README
                   2029:        mv tmp.README README
1.1       root     2030:        -rm -rf gcc-$(version) tmp      
                   2031: # Put all the files in a temporary subdirectory
                   2032: # which has the name that we want to have in the tar file.
                   2033:        mkdir tmp
                   2034:        mkdir tmp/config
1.1.1.4   root     2035:        mkdir tmp/objc
1.1       root     2036:        for file in *[0-9a-zA-Z+]; do \
1.1.1.3   root     2037:          ln $$file tmp > /dev/null 2>&1 || cp $$file tmp; \
1.1       root     2038:        done
                   2039:        cd config; \
                   2040:        for file in *[0-9a-zA-Z+]; do \
1.1.1.5   root     2041:          if test -d $$file && test "$$file" != RCS; then \
                   2042:            mkdir ../tmp/config/$$file; \
                   2043:            cd $$file; \
                   2044:            for subfile in *[0-9a-zA-Z+]; do \
                   2045:              ln $$subfile ../../tmp/config/$$file >/dev/null 2>&1 \
                   2046:              || cp $$subfile ../../tmp/config/$$file; \
                   2047:            done; \
                   2048:            cd ..; \
                   2049:          else \
                   2050:            ln $$file ../tmp/config >/dev/null 2>&1 \
                   2051:            || cp $$file ../tmp/config; \
                   2052:          fi; \
1.1       root     2053:        done
1.1.1.4   root     2054:        cd objc; \
                   2055:        for file in *[0-9a-zA-Z+]; do \
                   2056:          ln $$file ../tmp/objc >/dev/null 2>&1 || cp $$file ../tmp/objc; \
                   2057:        done
1.1       root     2058:        ln .gdbinit tmp
                   2059:        mv tmp gcc-$(version)
                   2060: # Get rid of everything we don't want in the distribution.
1.1.1.2   root     2061:        cd gcc-$(version); make -f Makefile.in extraclean
1.1       root     2062: 
1.1.1.6 ! root     2063: # make diff oldversion=M.N 
        !          2064: # creates a diff file between an older distribution and this one.
        !          2065: # The -P option assumes this is GNU diff.
        !          2066: diff:
        !          2067:        diff -rc2P -x c-parse.y -x c-parse.c -x c-parse.h -x objc-parse.y \
        !          2068:          -x cp-parse.c -x cp-parse.h -x cexp.c -x bi-parser.c \
        !          2069:          -x objc-parse.c -x TAGS -x "gcc.??" -x "gcc.??s" -x gcc.aux \
        !          2070:          -x "cpp.??s" -x "cpp.??" -x cpp.aux -x "cpp.info*" -x "gcc.info*" \
        !          2071:          gcc-$(oldversion) gcc-$(version) > diffs
        !          2072: 
1.1       root     2073: # do make -f ../gcc/Makefile maketest DIR=../gcc
                   2074: # in the intended test directory to make it a suitable test directory.
                   2075: # THIS IS OBSOLETE; use the -srcdir operand in configure instead. 
                   2076: maketest:
                   2077:        ln -s $(DIR)/*.[chy] .
                   2078:        ln -s $(DIR)/configure .
                   2079:        ln -s $(DIR)/*.def .
                   2080:        -rm -f =*
                   2081:        ln -s $(DIR)/.gdbinit .
                   2082:        ln -s $(DIR)/$(FIXINCLUDES) .
                   2083:        -ln -s $(DIR)/bison.simple .
                   2084:        ln -s $(DIR)/config .
                   2085:        ln -s $(DIR)/move-if-change .
                   2086: # The then and else were swapped to avoid a problem on Ultrix.
                   2087:        if [ ! -f Makefile ] ; then ln -s $(DIR)/Makefile .; else false; fi
                   2088:        -rm tm.h aux-output.c config.h md
                   2089:        make clean
                   2090: # You must then run config to set up for compilation.
1.1.1.4   root     2091: 
1.1.1.3   root     2092: bootstrap: force
                   2093: # Only build the C compiler for stage1, because that is the only one that
                   2094: # we can guarantee will build with the native compiler, and also it is the
                   2095: # only thing useful for building stage2.
1.1.1.5   root     2096:        $(MAKE) CC="$(CC)" libdir=$(libdir) LANGUAGES=c
1.1       root     2097:        $(MAKE) stage1
                   2098: # This used to define ALLOCA as empty, but that would lead to bad results
                   2099: # for a subsequent `make install' since that would not have ALLOCA empty.
                   2100: # To prevent `make install' from compiling alloca.o and then relinking cc1
                   2101: # because alloca.o is newer, we permit these recursive makes to compile
                   2102: # alloca.o.  Then cc1 is newer, so it won't have to be relinked.
1.1.1.5   root     2103:        $(MAKE) CC="stage1/xgcc -Bstage1/" CFLAGS="$(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
1.1       root     2104:        $(MAKE) stage2
1.1.1.5   root     2105:        $(MAKE) CC="stage2/xgcc -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
1.1       root     2106: 
                   2107: bootstrap2: force
1.1.1.5   root     2108:        $(MAKE) CC="stage1/xgcc -Bstage1/" CFLAGS="$(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
1.1       root     2109:        $(MAKE) stage2
1.1.1.5   root     2110:        $(MAKE) CC="stage2/xgcc -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
1.1       root     2111: 
                   2112: bootstrap3: force
1.1.1.5   root     2113:        $(MAKE) CC="stage2/xgcc -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) LANGUAGES="$(LANGUAGES)"
1.1       root     2114: 
1.1.1.3   root     2115: # Compare the object files in the current directory with those in the
                   2116: # stage2 directory.
                   2117: 
1.1.1.6 ! root     2118: # ./ avoids bug in some versions of tail.
1.1.1.3   root     2119: compare: force
                   2120:        for file in *.o; do \
1.1.1.6 ! root     2121:          tail +16c ./$$file > tmp-foo1; \
1.1.1.4   root     2122:          tail +16c stage2/$$file > tmp-foo2 2>/dev/null \
                   2123:            && (cmp tmp-foo1 tmp-foo2 || echo $$file differs); \
1.1.1.3   root     2124:        done
                   2125:        -rm -f tmp-foo*
                   2126: 
                   2127: # Similar, but compare with stage3 directory
                   2128: compare3: force
                   2129:        for file in *.o; do \
1.1.1.4   root     2130:          tail +16c $$file > tmp-foo1; \
                   2131:          tail +16c stage3/$$file > tmp-foo2 2>/dev/null \
                   2132:            && (cmp tmp-foo1 tmp-foo2 || echo $$file differs); \
1.1.1.3   root     2133:        done
                   2134:        -rm -f tmp-foo*
                   2135: 
1.1       root     2136: # Copy the object files from a particular stage into a subdirectory.
                   2137: stage1: force
1.1.1.2   root     2138:        -if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi
1.1       root     2139:        -mv $(STAGESTUFF) stage1
                   2140:        -rm -f stage1/libgcc.a
                   2141:        -cp libgcc.a stage1
                   2142:        -if $(RANLIB_TEST) ; then $(RANLIB) stage1/libgcc.a; else true; fi
                   2143: 
                   2144: stage2: force
1.1.1.2   root     2145:        -if [ -d stage2 ] ; then true ; else mkdir stage2 ; fi
1.1       root     2146:        -mv $(STAGESTUFF) stage2
                   2147:        -rm -f stage2/libgcc.a
                   2148:        -cp libgcc.a stage2
                   2149:        -if $(RANLIB_TEST) ; then $(RANLIB) stage2/libgcc.a; else true; fi
                   2150: 
                   2151: stage3: force
1.1.1.3   root     2152:        -if [ -d stage3 ] ; then true ; else mkdir stage3 ; fi
1.1       root     2153:        -mv $(STAGESTUFF) stage3
                   2154:        -rm -f stage3/libgcc.a
                   2155:        -cp libgcc.a stage3
                   2156:        -if $(RANLIB_TEST) ; then $(RANLIB) stage3/libgcc.a; else true; fi
                   2157: 
                   2158: stage4: force
1.1.1.3   root     2159:        -if [ -d stage4 ] ; then true ; else mkdir stage4 ; fi
1.1       root     2160:        -mv $(STAGESTUFF) stage4
                   2161:        -rm -f stage4/libgcc.a
                   2162:        -cp libgcc.a stage4
                   2163:        -if $(RANLIB_TEST) ; then $(RANLIB) stage4/libgcc.a; else true; fi
                   2164: 
                   2165: # Copy just the executable files from a particular stage into a subdirectory,
                   2166: # and delete the object files.  Use this if you're just verifying a version
                   2167: # that is pretty sure to work, and you are short of disk space.
                   2168: risky-stage1: force
1.1.1.3   root     2169:        -if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi
1.1.1.5   root     2170:        -mv $(GCC_PARTS) stage1
1.1       root     2171:        -rm -f stage1/libgcc.a
                   2172:        -cp libgcc.a stage1 && $(RANLIB) stage1/libgcc.a
                   2173:        -make clean
                   2174: 
                   2175: risky-stage2: force
1.1.1.3   root     2176:        -if [ -d stage2 ] ; then true ; else mkdir stage2 ; fi
1.1.1.5   root     2177:        -mv $(GCC_PARTS) stage2
1.1       root     2178:        -rm -f stage2/libgcc.a
                   2179:        -cp libgcc.a stage2 && $(RANLIB) stage2/libgcc.a
                   2180:        -make clean
                   2181: 
                   2182: risky-stage3: force
1.1.1.3   root     2183:        -if [ -d stage3 ] ; then true ; else mkdir stage3 ; fi
1.1.1.5   root     2184:        -mv $(GCC_PARTS) stage3
1.1       root     2185:        -rm -f stage3/libgcc.a
                   2186:        -cp libgcc.a stage3 && $(RANLIB) stage3/libgcc.a
                   2187:        -make clean
                   2188: 
                   2189: risky-stage4: force
1.1.1.3   root     2190:        -if [ -d stage4 ] ; then true ; else mkdir stage4 ; fi
1.1.1.5   root     2191:        -mv $(GCC_PARTS) stage4
1.1       root     2192:        -rm -f stage4/libgcc.a
                   2193:        -cp libgcc.a stage4 && $(RANLIB) stage4/libgcc.a
                   2194:        -make clean
                   2195: 
                   2196: #In GNU Make, ignore whether `stage*' exists.
                   2197: .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
                   2198: .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
                   2199: 
                   2200: force:

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.