Annotation of gcc/Makefile, revision 1.1.1.17

1.1       root        1: # Makefile for GNU C compiler.
1.1.1.12  root        2: #   Copyright (C) 1987, 1988 Free Software Foundation, Inc.
1.1       root        3: 
                      4: #This file is part of GNU CC.
                      5: 
1.1.1.14  root        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 1, or (at your option)
                      9: #any later version.
                     10: 
1.1       root       11: #GNU CC is distributed in the hope that it will be useful,
1.1.1.14  root       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.
1.1       root       19: 
                     20: 
1.1.1.15  root       21: # Variables that exist for you to override.
1.1.1.16  root       22: # See below for how to change them for certain systems.
1.1.1.15  root       23: 
1.1.1.17! root       24: CFLAGS = -g $(XCFLAGS)
        !            25: CC = cc
1.1.1.15  root       26: BISON = bison
                     27: BISONFLAGS = -v
                     28: AR = ar
                     29: SHELL = /bin/sh
                     30: # on sysV, define this as cp.
                     31: INSTALL = install -c
                     32: 
                     33: # Compiler to use for compiling gnulib.
                     34: # OLDCC should not be the GNU C compiler.
                     35: OLDCC = cc
                     36: 
                     37: # CFLAGS for use with OLDCC, for compiling gnulib.
1.1.1.16  root       38: # NOTE: -O does not work on some Unix systems!
1.1.1.17! root       39: # On them, you must take it out.
        !            40: CCLIBFLAGS=-O
        !            41: 
        !            42: # CFLAGS for use with OLDCC, for compiling hard-params.
        !            43: HARD_PARAMS_FLAGS=
1.1.1.15  root       44: 
                     45: # Directory where sources are, from where we are.
                     46: srcdir = .
                     47: # Directory in which to put the executable for the command `gcc'
                     48: bindir = $(prefix)/usr/local/bin
                     49: # Directory in which to put the subprograms used by the compiler.
                     50: libdir = $(prefix)/usr/local/lib
                     51: # Directory in which to put man pages.
                     52: mandir = $(prefix)/usr/local/man/man1
                     53: # Number to put in man-page filename.
                     54: manext = 1
                     55: 
                     56: # Additional system libraries to link with.
                     57: CLIB=
1.1.1.5   root       58: 
1.1.1.7   root       59: # Change this to a null string if obstacks are installed in the
                     60: # system library.
1.1       root       61: OBSTACK=obstack.o
                     62: 
1.1.1.16  root       63: # Directory to link to, when using the target `maketest'.
                     64: DIR = ../gcc
                     65: 
                     66: # End of variables for you to override.
                     67: 
                     68: 
                     69: # Variables you should change for certain systems.
                     70: 
                     71: # These are what you would need on HPUX:
                     72: # CFLAGS = -Wc,-Ns2000 -Wc,-Ne700 -Wc,-Np300
                     73: # If you are using the GNU assembler and linker on HPUX,
                     74: # add -I../hp-include to CFLAGS.
                     75: # -g is desirable in CFLAGS, but a compiler bug in HPUX version 5
                     76: # bites whenever tree.def, rtl.def or machmode.def is included
                     77: # (ie., on every source file).
                     78: # If you have a floating point accelerator, you might want -lsetjmp as well.
1.1.1.17! root       79: # CCLIBFLAGS = -Wc,-Ns2000 -Wc,-Ne700 -O
        !            80: # HARD_PARAMS_FLAGS = -Wc,-Ns2000 -Wc,-Ne700
1.1.1.16  root       81: # For CCLIBFLAGS you might want to specify the switch that
                     82: # forces only 68000 instructions to be used.
                     83: 
1.1.1.17! root       84: # On the Sequent, you may need to set CCLIBFLAG to empty.
        !            85: 
        !            86: # On the 3b1, this line may help you compile gnulib
        !            87: # if you already have a prior version of gcc installed.
        !            88: # CCLIBFLAGS = -B/usr/local/lib/gcc- -tp -Wp,-traditional
        !            89: 
1.1.1.16  root       90: # If you are making gcc for the first time, and if you are compiling it with
                     91: # a non-gcc compiler, and if your system doesn't have a working alloca() in any
                     92: # of the standard libraries (as is true for HP/UX or Genix),
                     93: # then get alloca.c from GNU Emacs and un-comment the following line:
                     94: # ALLOCA = alloca.o
                     95: # But don't do that if compiling using GCC.
                     96: 
                     97: # If your system has alloca() in /lib/libPW.a, un-comment the following line:
                     98: # CLIB= -lPW
                     99: 
                    100: # On a pyramid, you need to uncomment the following line:
1.1.1.17! root      101: # CLIB = -lc /usr/.attlib/libPW.a
1.1.1.16  root      102: 
                    103: # If your system's malloc() routine fails for any reason (as it does on
                    104: # certain versions of Genix), try getting the files
                    105: # malloc.c and getpagesize.h from GNU Emacs and un-comment the following line:
                    106: # MALLOC = malloc.o
                    107: 
                    108: # If you are running GCC on an Apollo (SR10.x),
                    109: # go into a Berkeley environment and use this:
                    110: # CFLAGS = -g -A nansi -A cpu,3000 -A runtype,bsd4.3 -A systype,any -DSHORT_ENUM_BUG
                    111: # (Says [email protected].)
                    112: 
                    113: 
1.1.1.7   root      114: # Dependency on obstack, alloca, malloc or whatever library facilities
                    115: # are not installed in the system libraries.
                    116: LIBDEPS= $(OBSTACK) $(ALLOCA) $(MALLOC)
                    117: 
                    118: # How to link with both our special library facilities
                    119: # and the system's installed libraries.
                    120: LIBS = $(OBSTACK) $(ALLOCA) $(MALLOC) $(CLIB)
                    121: 
1.1.1.16  root      122: # Specify the directories to be searched for header files.
                    123: # Both . and srcdir are used, in that order,
                    124: # so that tm.h and config.h will be found in the compilation
                    125: # subdirectory rather than in the source directory.
                    126: INCLUDES = -I. -I$(srcdir) -I$(srcdir)/config
                    127: SUBDIR_INCLUDES = -I.. -I../$(srcdir) -I../$(srcdir)/config
1.1.1.15  root      128: 
                    129: # Always use -I$(srcdir)/config when compiling.
                    130: .c.o:
1.1.1.16  root      131:        $(CC) -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) $<
1.1.1.15  root      132: 
1.1.1.12  root      133: # Language-specific object files for C.
                    134: C_OBJS = c-parse.tab.o c-decl.o c-typeck.o c-convert.o
                    135: 
                    136: # Language-specific object files for C++.
                    137: # (These are not yet released.)
                    138: CPLUS_OBJS = cplus-parse.o cplus-decl.o cplus-typeck.o \
                    139:    cplus-cvt.o cplus-search.o cplus-lex.o \
                    140:    cplus-class.o cplus-init.o cplus-method.o
                    141: 
                    142: # Language-independent object files.
                    143: OBJS = toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o \
1.1.1.16  root      144:  rtl.o rtlanal.o expr.o stmt.o expmed.o explow.o optabs.o varasm.o \
1.1.1.4   root      145:  symout.o dbxout.o sdbout.o emit-rtl.o insn-emit.o \
1.1.1.2   root      146:  integrate.o jump.o cse.o loop.o flow.o stupid.o combine.o \
1.1.1.14  root      147:  regclass.o local-alloc.o global-alloc.o reload.o reload1.o caller-save.o \
                    148:  insn-peep.o final.o recog.o insn-recog.o insn-extract.o insn-output.o
1.1       root      149: 
1.1.1.2   root      150: # Files to be copied away after each stage in building.
                    151: STAGE_GCC=gcc
                    152: STAGESTUFF = *.o insn-flags.h insn-config.h insn-codes.h \
                    153:  insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \
1.1.1.16  root      154:  stamp-flags.h stamp-config.h stamp-codes.h \
                    155:  stamp-output.c stamp-recog.c stamp-emit.c stamp-extract.c stamp-peep.c \
1.1.1.2   root      156:  genemit genoutput genrecog genextract genflags gencodes genconfig genpeep \
1.1.1.12  root      157:  cc1 cpp cccp # cc1plus
1.1.1.2   root      158: 
                    159: # Members of gnulib.
1.1.1.12  root      160: LIBFUNCS = _eprintf _builtin_new _builtin_New _builtin_del \
1.1.1.2   root      161:    _umulsi3 _mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 \
1.1.1.16  root      162:    _lshrsi3 _lshlsi3 _ashrsi3 _ashlsi3 \
1.1.1.2   root      163:    _divdf3 _muldf3 _negdf2 _adddf3 _subdf3 _cmpdf2 \
1.1.1.16  root      164:    _fixunsdfsi _fixdfsi _floatsidf _truncdfsf2 _extendsfdf2 \
1.1.1.17! root      165:    _addsf3 _negsf2 _subsf3 _cmpsf2 _mulsf3 _divsf3
1.1.1.2   root      166: 
1.1.1.15  root      167: # Library members defined in gnulib2.c.
                    168: LIB2FUNCS = _adddi3 _subdi3 _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 \
1.1.1.16  root      169:     _anddi3 _iordi3 _xordi3 _lshrdi3 _lshldi3 _ashldi3 _ashrdi3 _one_cmpldi2  \
1.1.1.17! root      170:     _bdiv _cmpdi2 _ucmpdi2 _fixunsdfdi _fixdfdi _floatdidf _varargs
1.1.1.15  root      171: 
1.1.1.8   root      172: # Header files that are made available to programs compiled with gcc.
1.1.1.16  root      173: USER_H = stddef.h stdarg.h assert.h va-*.h limits.h
1.1.1.8   root      174: 
1.1.1.16  root      175: # The files that "belong" in CONFIG_H are deliberately omitted
                    176: # because having them there would not be useful in actual practice.
                    177: # All they would do is cause complete recompilation every time
                    178: # one of the machine description files is edited.
                    179: # That may or may not be what one wants to do.
                    180: # If it is, rm *.o is an easy way to do it.
1.1       root      181: # CONFIG_H = config.h tm.h
                    182: CONFIG_H =
                    183: RTL_H = rtl.h rtl.def machmode.def
1.1.1.13  root      184: TREE_H = tree.h real.h tree.def machmode.def
1.1.1.12  root      185: CPLUS_TREE_H = $(TREE_H) cplus-tree.h c-tree.h
1.1       root      186: 
1.1.1.16  root      187: # Note that dependencies on obstack.h are not written
                    188: # because that file is not part of GCC.
                    189: # Dependencies on gvarargs.h are not written
                    190: # because all that file does, when not compiling with GCC,
                    191: # is include the system varargs.h.
                    192: 
                    193: all: config.status gnulib gcc cc1 cpp float.h gnulib2 # cc1plus
                    194: 
                    195: lang-c: config.status gnulib gcc cc1 cpp gnulib2
                    196: # lang-cplus: config.status gnulib gcc cc1plus cpp gnulib2
                    197: 
                    198: config.status:
                    199:        @echo You must configure gcc.  Look at the INSTALL file for details.
                    200:        @false
1.1.1.2   root      201: 
1.1.1.16  root      202: doc: $(srcdir)/cpp.info $(srcdir)/gplus.info $(srcdir)/gcc.info
1.1.1.4   root      203: 
1.1.1.2   root      204: compilations: ${OBJS}
1.1       root      205: 
1.1.1.7   root      206: gcc: gcc.o version.o $(LIBDEPS)
1.1.1.6   root      207:        $(CC) $(CFLAGS) $(LDFLAGS) -o gccnew gcc.o version.o $(LIBS)
1.1.1.2   root      208: # Go via `gccnew' to avoid `file busy' if $(CC) is `gcc'.
                    209:        mv gccnew gcc
1.1       root      210: 
1.1.1.12  root      211: cc1: $(C_OBJS) $(OBJS) $(LIBDEPS)
                    212:        $(CC) $(CFLAGS) $(LDFLAGS) -o cc1 $(C_OBJS) $(OBJS) $(LIBS)
                    213: 
                    214: cc1plus: $(CPLUS_OBJS) $(OBJS) $(LIBDEPS)
                    215:        $(CC) $(CFLAGS) $(LDFLAGS) -o cc1plus $(CPLUS_OBJS) $(OBJS) $(LIBS)
1.1       root      216: 
1.1.1.2   root      217: #Library of arithmetic subroutines
                    218: # Don't compile this with gcc!
1.1.1.15  root      219: # (That would cause most arithmetic functions to call themselves.)
1.1.1.16  root      220: gnulib: gnulib.c $(CONFIG_H)
                    221:        -rm -f stamp-gnulib2
                    222:        rm -f tmpgnulib gnulib; \
1.1.1.2   root      223:        for name in $(LIBFUNCS); \
                    224:        do \
                    225:          echo $${name}; \
                    226:          rm -f $${name}.c; \
1.1.1.16  root      227:          cp $(srcdir)/gnulib.c $${name}.c; \
1.1.1.17! root      228:          $(OLDCC) $(CCLIBFLAGS) $(INCLUDES) -c -DL$${name} $${name}.c; \
1.1.1.16  root      229:          $(AR) qc tmpgnulib $${name}.o; \
                    230:          rm -f $${name}.[co]; \
1.1.1.2   root      231:        done
1.1.1.16  root      232:        if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then ranlib tmpgnulib ;fi
                    233: # Actually build it in tmpgnulib above, then rename now,
                    234: # so that gnulib itself remains nonexistent if compilation is aborted.
                    235:        mv tmpgnulib gnulib
1.1.1.2   root      236: # On HPUX, if you are working with the GNU assembler and linker,
1.1.1.17! root      237: # the previous two command lines must be replaced with the following line.
1.1.1.2   root      238: # No change is needed here if you are using the HPUX assembler and linker.
1.1.1.17! root      239: #      ../hp-bin/hpxt tmpgnulib gnulib
1.1       root      240: 
1.1.1.16  root      241: gnulib2: stamp-gnulib2;
                    242: stamp-gnulib2: gnulib2.c gnulib cc1 gcc cpp $(CONFIG_H)
1.1.1.15  root      243:        for name in $(LIB2FUNCS); \
                    244:        do \
                    245:          echo $${name}; \
1.1.1.16  root      246:          ./gcc -B./ -fstrength-reduce -O $(INCLUDES) $(GNULIB2_CFLAGS) -c -DL$${name} $(srcdir)/gnulib2.c -o $${name}.o; \
                    247:          $(AR) rc gnulib $${name}.o; \
                    248:          rm -f $${name}.o; \
1.1.1.15  root      249:        done
1.1.1.16  root      250:        if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then  ranlib gnulib ;fi
                    251: # On HPUX, if you are working with the GNU assembler and linker,
                    252: # the previous line must be commented out.
                    253: # No change is needed here if you are using the HPUX assembler and linker.
1.1.1.15  root      254:        touch stamp-gnulib2
1.1.1.16  root      255: 
                    256: float.h:
                    257: # Originally, we used `make' rather than $(MAKE), to avoid propagating
                    258: # a CC=gcc command option.  However, since hard-params is now made
                    259: # with $(OLDCC) explicitly, this is no longer important.
                    260: # However, $(MAKE) fails on some systems where it isn't defined.
                    261: # `make' has the disadvantage of sometimes running the system's make,
                    262: # instead of GNU make.  And the system's make might not support VPATH.
                    263: # However, the compilation of hard-params should not need to use VPATH,
                    264: # due to the explicit use of `$(srcdir)'.
                    265:        make hard-params
                    266:        -./hard-params -f > float.h
                    267: 
                    268: # Compile hard-params with standard cc.  It avoids some headaches.
                    269: hard-params: hard-params.o
1.1.1.17! root      270:        $(OLDCC) $(HARD_PARAMS_FLAGS) $(LDFLAGS) hard-params.o -o $@
1.1.1.16  root      271: hard-params.o: $(srcdir)/hard-params.c
                    272:        -cp $(srcdir)/hard-params.c . > /dev/null 2>&1
1.1.1.17! root      273:        $(OLDCC) $(HARD_PARAMS_FLAGS) $(CPPFLAGS) -DNO_SC -c hard-params.c
1.1.1.7   root      274: 
1.1.1.12  root      275: # C language specific files.
1.1.1.7   root      276: 
1.1.1.16  root      277: c-parse.tab.o : $(srcdir)/c-parse.tab.c $(CONFIG_H) $(TREE_H) c-parse.h c-tree.h input.h
1.1.1.17! root      278:        $(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -c $(srcdir)/c-parse.tab.c
1.1.1.16  root      279: $(srcdir)/c-parse.tab.c : $(srcdir)/c-parse.y
                    280:        $(BISON) $(BISONFLAGS) $(srcdir)/c-parse.y -o $@
1.1.1.7   root      281: 
                    282: c-decl.o : c-decl.c $(CONFIG_H) $(TREE_H) c-tree.h c-parse.h flags.h
                    283: c-typeck.o : c-typeck.c $(CONFIG_H) $(TREE_H) c-tree.h flags.h
                    284: c-convert.o : c-convert.c $(CONFIG_H) $(TREE_H)
                    285: 
1.1.1.12  root      286: # C++ language specific files.
                    287: 
1.1.1.16  root      288: cplus-parse.o : $(srcdir)/cplus-parse.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
                    289:        $(CC) -c $(CFLAGS) $(INCLUDES) \
                    290:   -DPARSE_OUTPUT=\"$(PWD)/cplus-parse.output\" \
                    291:   `echo $(srcdir)/cplus-parse.c | sed 's,^\./,,'`
1.1.1.12  root      292: 
1.1.1.16  root      293: $(srcdir)/cplus-parse.h $(srcdir)/cplus-parse.c : $(srcdir)/cplus-parse.y
1.1.1.12  root      294:        @echo expect 49 shift/reduce conflicts and 4 reduce/reduce conflicts
1.1.1.16  root      295:        $(BISON) $(BISONFLAGS) -d -o $(srcdir)/cplus-parse.c $(srcdir)/cplus-parse.y
1.1.1.12  root      296: 
1.1.1.16  root      297: cplus-lex.o : cplus-lex.c $(CONFIG_H) $(CPLUS_TREE_H) $(srcdir)/cplus-parse.h
1.1.1.12  root      298: cplus-decl.o : cplus-decl.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
                    299: cplus-typeck.o : cplus-typeck.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
                    300: cplus-class.o : cplus-class.c $(CONFIG_H) $(CPLUS_TREE_H)
                    301: cplus-init.o : cplus-init.c $(CONFIG_H) $(CPLUS_TREE_H)
                    302: cplus-method.o : cplus-method.c $(CONFIG_H) $(CPLUS_TREE_H)
                    303: cplus-cvt.o : cplus-cvt.c $(CONFIG_H) $(CPLUS_TREE_H)
                    304: cplus-search.o : cplus-search.c $(CONFIG_H) $(CPLUS_TREE_H)
                    305: new-method.o : new-method.c $(CONFIG_H) $(CPLUS_TREE_H)
                    306: 
1.1.1.7   root      307: # Language-independent files.
                    308: 
1.1.1.16  root      309: gcc.o: gcc.c $(CONFIG_H)
                    310:        $(CC) $(CFLAGS) $(INCLUDES) \
                    311:   -DSTANDARD_STARTFILE_PREFIX=\"$(libdir)/\" \
                    312:   -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-\" -c \
                    313:   `echo $(srcdir)/gcc.c | sed 's,^\./,,'`
                    314: 
                    315: version.o: version.c
                    316: obstack.o: obstack.c
                    317: 
1.1.1.15  root      318: tree.o : tree.c $(CONFIG_H) $(TREE_H) flags.h
1.1       root      319: print-tree.o : print-tree.c $(CONFIG_H) $(TREE_H)
1.1.1.16  root      320: stor-layout.o : stor-layout.c $(CONFIG_H) $(TREE_H) $(RTL_H)
1.1       root      321: fold-const.o : fold-const.c $(CONFIG_H) $(TREE_H)
1.1.1.16  root      322: toplev.o : toplev.c $(CONFIG_H) $(TREE_H) flags.h input.h
1.1       root      323: 
                    324: rtl.o : rtl.c $(CONFIG_H) $(RTL_H)
                    325: 
1.1.1.16  root      326: rtlanal.o : rtlanal.c $(CONFIG_H) $(RTL_H)
                    327: 
1.1.1.13  root      328: varasm.o : varasm.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h expr.h \
                    329:    insn-codes.h hard-reg-set.h
1.1.1.2   root      330: stmt.o : stmt.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
1.1.1.17! root      331:    insn-flags.h insn-config.h insn-codes.h expr.h regs.h hard-reg-set.h recog.h
1.1.1.2   root      332: expr.o : expr.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
                    333:    insn-flags.h insn-codes.h expr.h insn-config.h recog.h
                    334: expmed.o : expmed.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
                    335:    insn-flags.h insn-codes.h expr.h insn-config.h recog.h
1.1.1.6   root      336: explow.o : explow.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h expr.h insn-codes.h
1.1.1.2   root      337: optabs.o : optabs.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
                    338:    insn-flags.h insn-codes.h expr.h insn-config.h recog.h
                    339: symout.o : symout.c $(CONFIG_H) $(TREE_H) $(RTL_H) symseg.h gdbfiles.h
1.1.1.7   root      340: dbxout.o : dbxout.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h
1.1.1.16  root      341: sdbout.o : sdbout.c $(CONFIG_H) $(TREE_H) $(RTL_H)
1.1.1.2   root      342: 
1.1.1.13  root      343: emit-rtl.o : emit-rtl.c $(CONFIG_H) $(RTL_H) regs.h insn-config.h real.h
1.1       root      344: 
1.1.1.6   root      345: integrate.o : integrate.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h expr.h \
                    346:    insn-flags.h insn-codes.h
1.1       root      347: 
1.1.1.2   root      348: jump.o : jump.c $(CONFIG_H) $(RTL_H) flags.h regs.h
                    349: stupid.o : stupid.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h
1.1       root      350: 
1.1.1.13  root      351: cse.o : cse.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h real.h
                    352: loop.o : loop.c $(CONFIG_H) $(RTL_H) insn-config.h insn-codes.h \
1.1.1.16  root      353:    regs.h hard-reg-set.h recog.h flags.h expr.h
1.1.1.2   root      354: flow.o : flow.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h hard-reg-set.h
                    355: combine.o : combine.c $(CONFIG_H) $(RTL_H) flags.h  \
                    356:    insn-config.h regs.h basic-block.h recog.h
1.1.1.16  root      357: regclass.o : regclass.c $(CONFIG_H) $(RTL_H) hard-reg-set.h flags.h \
                    358:    basic-block.h regs.h insn-config.h recog.h 
                    359: local-alloc.o : local-alloc.c $(CONFIG_H) $(RTL_H) flags.h basic-block.h regs.h \
                    360:    hard-reg-set.h insn-config.h recog.h
1.1.1.2   root      361: global-alloc.o : global-alloc.c $(CONFIG_H) $(RTL_H) flags.h  \
                    362:    basic-block.h regs.h hard-reg-set.h insn-config.h
1.1       root      363: 
1.1.1.16  root      364: reload.o : reload.c $(CONFIG_H) $(RTL_H) flags.h \
1.1.1.2   root      365:    reload.h recog.h hard-reg-set.h insn-config.h regs.h
                    366: reload1.o : reload1.c $(CONFIG_H) $(RTL_H) flags.h  \
1.1.1.16  root      367:    reload.h regs.h hard-reg-set.h insn-config.h basic-block.h recog.h
1.1.1.14  root      368: caller-save.o : caller-save.c $(CONFIG_H) $(RTL_H) flags.h \
                    369:    reload.h regs.h hard-reg-set.h insn-config.h basic-block.h recog.h
1.1.1.16  root      370: final.o : final.c $(CONFIG_H) $(RTL_H) flags.h regs.h recog.h conditions.h \
                    371:    gdbfiles.h insn-config.h real.h output.h
1.1.1.2   root      372: recog.o : recog.c $(CONFIG_H) $(RTL_H)  \
1.1.1.16  root      373:    regs.h recog.h hard-reg-set.h insn-config.h real.h
1.1       root      374: 
1.1.1.12  root      375: # Normally this target is not used; but it is used if you
                    376: # define ALLOCA=alloca.o.  In that case, you must get a suitable alloca.c
                    377: # from the GNU Emacs distribution.
                    378: # Note some machines won't allow $(CC) without -S on this source file.
                    379: alloca.o:      alloca.c
1.1.1.16  root      380:        $(CC) $(CFLAGS) -S `echo $(srcdir)/alloca.c | sed 's,^\./,,'`
1.1.1.12  root      381:        as alloca.s -o alloca.o
                    382: 
1.1       root      383: # Now the source files that are generated from the machine description.
                    384: 
1.1.1.2   root      385: .PRECIOUS: insn-config.h insn-flags.h insn-codes.h \
                    386:   insn-emit.c insn-recog.c insn-extract.c insn-output.c insn-peep.c
                    387: 
1.1.1.12  root      388: # The following pair of rules has this effect:
                    389: # genconfig is run only if the md has changed since genconfig was last run;
                    390: # but the file insn-config.h is touched only when its contents actually change.
                    391: 
                    392: # Each of the other insn-* files is handled by a similar pair of rules.
                    393: 
1.1.1.13  root      394: insn-config.h: stamp-config.h ;
1.1.1.12  root      395: stamp-config.h : md genconfig
1.1.1.17! root      396:        ./genconfig md > tmp-config.h
        !           397:        $(srcdir)/move-if-change tmp-config.h insn-config.h
1.1.1.12  root      398:        touch stamp-config.h
1.1       root      399: 
1.1.1.13  root      400: insn-flags.h: stamp-flags.h ;
1.1.1.12  root      401: stamp-flags.h : md genflags
1.1.1.17! root      402:        ./genflags md > tmp-flags.h
        !           403:        $(srcdir)/move-if-change tmp-flags.h insn-flags.h
1.1.1.12  root      404:        touch stamp-flags.h
1.1       root      405: 
1.1.1.13  root      406: insn-codes.h: stamp-codes.h ;
1.1.1.12  root      407: stamp-codes.h : md gencodes
1.1.1.17! root      408:        ./gencodes md > tmp-codes.h
        !           409:        $(srcdir)/move-if-change tmp-codes.h insn-codes.h
1.1.1.12  root      410:        touch stamp-codes.h
1.1       root      411: 
1.1.1.16  root      412: insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) expr.h real.h insn-codes.h \
                    413:   insn-config.h insn-flags.h
                    414:        $(CC) $(CFLAGS) $(INCLUDES) -c insn-emit.c
1.1       root      415: 
1.1.1.13  root      416: insn-emit.c: stamp-emit.c ;
1.1.1.12  root      417: stamp-emit.c : md genemit
1.1.1.17! root      418:        ./genemit md > tmp-emit.c
        !           419:        $(srcdir)/move-if-change tmp-emit.c insn-emit.c
1.1.1.12  root      420:        touch stamp-emit.c
1.1       root      421: 
1.1.1.16  root      422: insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h real.h recog.h
                    423:        $(CC) $(CFLAGS) $(INCLUDES) -c insn-recog.c
1.1       root      424: 
1.1.1.13  root      425: insn-recog.c: stamp-recog.c ;
1.1.1.12  root      426: stamp-recog.c : md genrecog
1.1.1.17! root      427:        ./genrecog md > tmp-recog.c
        !           428:        $(srcdir)/move-if-change tmp-recog.c insn-recog.c
1.1.1.12  root      429:        touch stamp-recog.c
1.1       root      430: 
1.1.1.16  root      431: insn-extract.o : insn-extract.c $(CONFIG_H) $(RTL_H)
                    432:        $(CC) $(CFLAGS) $(INCLUDES) -c insn-extract.c
1.1       root      433: 
1.1.1.13  root      434: insn-extract.c: stamp-extract.c ;
1.1.1.12  root      435: stamp-extract.c : md genextract
1.1.1.17! root      436:        ./genextract md > tmp-extract.c
        !           437:        $(srcdir)/move-if-change tmp-extract.c insn-extract.c
1.1.1.12  root      438:        touch stamp-extract.c
1.1       root      439: 
1.1.1.13  root      440: insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) regs.h real.h
1.1.1.16  root      441:        $(CC) $(CFLAGS) $(INCLUDES) -c insn-peep.c
1.1.1.2   root      442: 
1.1.1.13  root      443: insn-peep.c: stamp-peep.c ;
1.1.1.12  root      444: stamp-peep.c : md genpeep
1.1.1.17! root      445:        ./genpeep md > tmp-peep.c
        !           446:        $(srcdir)/move-if-change tmp-peep.c insn-peep.c
1.1.1.12  root      447:        touch stamp-peep.c
1.1.1.2   root      448: 
1.1.1.13  root      449: insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) regs.h real.h conditions.h \
1.1.1.15  root      450:     hard-reg-set.h insn-config.h insn-flags.h output.h aux-output.c
1.1.1.16  root      451:        $(CC) $(CFLAGS) $(INCLUDES) -c insn-output.c
1.1       root      452: 
1.1.1.13  root      453: insn-output.c: stamp-output.c ;
1.1.1.12  root      454: stamp-output.c : md genoutput
1.1.1.17! root      455:        ./genoutput md > tmp-output.c
        !           456:        $(srcdir)/move-if-change tmp-output.c insn-output.c
1.1.1.12  root      457:        touch stamp-output.c
1.1       root      458: 
                    459: # Now the programs that generate those files.
1.1.1.16  root      460: # $(CONFIG_H) is omitted from the deps of the gen*.o
                    461: # because these programs don't really depend on anything 
                    462: # about the target machine.  They do depend on config.h itself,
                    463: # since that describes the host machine.
1.1       root      464: 
1.1.1.7   root      465: genconfig : genconfig.o rtl.o $(LIBDEPS)
1.1.1.6   root      466:        $(CC) $(CFLAGS) $(LDFLAGS) -o genconfig genconfig.o rtl.o $(LIBS)
1.1.1.2   root      467: 
1.1.1.16  root      468: genconfig.o : genconfig.c $(RTL_H) config.h
1.1       root      469: 
1.1.1.7   root      470: genflags : genflags.o rtl.o $(LIBDEPS)
1.1.1.6   root      471:        $(CC) $(CFLAGS) $(LDFLAGS) -o genflags genflags.o rtl.o $(LIBS)
1.1       root      472: 
1.1.1.16  root      473: genflags.o : genflags.c $(RTL_H) config.h
1.1       root      474: 
1.1.1.7   root      475: gencodes : gencodes.o rtl.o $(LIBDEPS)
1.1.1.6   root      476:        $(CC) $(CFLAGS) $(LDFLAGS) -o gencodes gencodes.o rtl.o $(LIBS)
1.1       root      477: 
1.1.1.16  root      478: gencodes.o : gencodes.c $(RTL_H) config.h
1.1       root      479: 
1.1.1.7   root      480: genemit : genemit.o rtl.o $(LIBDEPS)
1.1.1.6   root      481:        $(CC) $(CFLAGS) $(LDFLAGS) -o genemit genemit.o rtl.o $(LIBS)
1.1       root      482: 
1.1.1.16  root      483: genemit.o : genemit.c $(RTL_H) config.h
1.1       root      484: 
1.1.1.7   root      485: genrecog : genrecog.o rtl.o $(LIBDEPS)
1.1.1.6   root      486:        $(CC) $(CFLAGS) $(LDFLAGS) -o genrecog genrecog.o rtl.o $(LIBS)
1.1       root      487: 
1.1.1.16  root      488: genrecog.o : genrecog.c $(RTL_H) config.h
1.1       root      489: 
1.1.1.7   root      490: genextract : genextract.o rtl.o $(LIBDEPS)
1.1.1.6   root      491:        $(CC) $(CFLAGS) $(LDFLAGS) -o genextract genextract.o rtl.o $(LIBS)
1.1       root      492: 
1.1.1.16  root      493: genextract.o : genextract.c $(RTL_H) config.h
1.1       root      494: 
1.1.1.7   root      495: genpeep : genpeep.o rtl.o $(LIBDEPS)
1.1.1.6   root      496:        $(CC) $(CFLAGS) $(LDFLAGS) -o genpeep genpeep.o rtl.o $(LIBS)
1.1       root      497: 
1.1.1.16  root      498: genpeep.o : genpeep.c $(RTL_H) config.h
1.1       root      499: 
1.1.1.7   root      500: genoutput : genoutput.o rtl.o $(LIBDEPS)
1.1.1.6   root      501:        $(CC) $(CFLAGS) $(LDFLAGS) -o genoutput genoutput.o rtl.o $(LIBS)
1.1.1.2   root      502: 
1.1.1.16  root      503: genoutput.o : genoutput.c $(RTL_H) config.h
1.1       root      504: 
                    505: # Making the preprocessor
                    506: cpp: cccp
                    507:        -rm -f cpp
                    508:        ln cccp cpp
1.1.1.7   root      509: cccp: cccp.o cexp.o version.o $(LIBDEPS)
                    510:        $(CC) $(CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS)
1.1.1.16  root      511: cexp.o: $(srcdir)/cexp.c $(CONFIG_H)
1.1.1.17! root      512:        $(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -c $(srcdir)/cexp.c
1.1.1.16  root      513: $(srcdir)/cexp.c: $(srcdir)/cexp.y
                    514:        $(BISON) -o $(srcdir)/cexp.c $(srcdir)/cexp.y
                    515: cccp.o: cccp.c $(CONFIG_H)
                    516:        $(CC) $(CFLAGS) $(INCLUDES) \
1.1.1.15  root      517:           -DGCC_INCLUDE_DIR=\"$(libdir)/gcc-include\" \
1.1.1.16  root      518:           -DGPLUSPLUS_INCLUDE_DIR=\"$(libdir)/g++-include\" \
                    519:          -c `echo $(srcdir)/cccp.c | sed 's,^\./,,'`
1.1       root      520: 
1.1.1.16  root      521: $(srcdir)/cpp.info: $(srcdir)/cpp.texinfo
                    522:        makeinfo `echo $(srcdir)/cpp.texinfo | sed 's,^\./,,'`
1.1.1.4   root      523: 
1.1.1.16  root      524: $(srcdir)/gplus.info: $(srcdir)/gplus.texinfo
                    525:        makeinfo `echo $(srcdir)/gplus.texinfo | sed 's,^\./,,'`
1.1.1.12  root      526: 
1.1.1.16  root      527: $(srcdir)/gcc.info: $(srcdir)/gcc.texinfo
                    528:        makeinfo `echo $(srcdir)/gcc.texinfo | sed 's,^\./,,'`
1.1.1.4   root      529: 
1.1.1.2   root      530: # gnulib is not deleted because deleting it would be inconvenient
                    531: # for most uses of this target.
1.1       root      532: clean:
1.1.1.2   root      533:        -rm -f $(STAGESTUFF) $(STAGE_GCC)
1.1.1.16  root      534: # Delete the temp files made in the course of building gnulib.
                    535:        -rm -f tmpgnulib
                    536:        for name in $(LIBFUNCS); do rm -f $${name}.c; done
1.1.1.17! root      537:        -rm -f stamp-*.[ch] tmp-*
1.1.1.16  root      538:        -rm -f *.s *.s[0-9] *.co *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop *.dbr *.jump2
                    539:        -rm -f core float.h hard-params
1.1.1.2   root      540: 
1.1.1.15  root      541: # Like clean but also delete the links made to configure gcc.
1.1.1.16  root      542: # Also removes gnulib, since that is desirable if you are changing cpus.
                    543: cleanconfig: clean
                    544:        -rm -f tm.h aux-output.c config.h md config.status gnulib stamp-gnulib2
1.1.1.15  root      545: 
1.1.1.8   root      546: # Get rid of every file that's generated from some other file (except INSTALL).
1.1.1.16  root      547: realclean: cleanconfig
1.1.1.8   root      548:        -rm -f cpp.aux cpp.cps cpp.fns cpp.info cpp.kys cpp.pgs cpp.tps cpp.vrs
1.1.1.15  root      549: #      -rm -f cplus-parse.tab.c cplus-parse.output
1.1.1.16  root      550:        -rm -f c-parse.tab.c c-parse.output c-parse.tab.output
1.1.1.15  root      551:        -rm -f gnulib cexp.c TAGS 
                    552:        -rm -f cpp.info* cpp.?? cpp.??s cpp.log cpp.toc cpp.*aux
1.1.1.12  root      553:        -rm -f gcc.info* gcc.?? gcc.??s gcc.log gcc.toc gcc.*aux
                    554:        -rm -f gplus.info* gplus.?? gplus.??s gplus.log gplus.toc gplus.*aux
1.1.1.15  root      555:        -rm -f *.dvi
1.1.1.8   root      556: 
1.1.1.2   root      557: # Copy the files into directories where they will be run.
                    558: install: all
1.1.1.13  root      559:        -mkdir $(libdir)
                    560:        -if [ -f cc1 ] ; then $(INSTALL) cc1 $(libdir)/gcc-cc1 ;fi
                    561:        -if [ -f cc1plus ] ; then $(INSTALL) cc1plus $(libdir)/gcc-cc1plus ;fi
1.1.1.12  root      562:        $(INSTALL) gnulib $(libdir)/gcc-gnulib
1.1.1.13  root      563:        -if [ -f /usr/bin/ranlib ] ; then (cd $(libdir); ranlib gcc-gnulib) ;fi
1.1.1.12  root      564:        $(INSTALL) cpp $(libdir)/gcc-cpp
                    565:        $(INSTALL) gcc $(bindir)
1.1.1.6   root      566:        -mkdir $(libdir)/gcc-include
1.1.1.16  root      567:        -chmod ugo+rx $(libdir)/gcc-include
1.1.1.17! root      568:        for file in $(USER_H); do \
        !           569:             for eachfile in  $(srcdir)/$${file} ; do \
        !           570:                $(INSTALL) $${eachfile} $(libdir)/gcc-include; \
        !           571:             done ; done
1.1.1.16  root      572:        $(INSTALL) float.h $(libdir)/gcc-include/float.h
                    573:        $(INSTALL) $(srcdir)/gvarargs.h $(libdir)/gcc-include/varargs.h
                    574:        $(INSTALL) $(srcdir)/gcc.1 $(mandir)/gcc.$(manext)
1.1       root      575: 
                    576: # do make -f ../gcc/Makefile maketest DIR=../gcc
                    577: # in the intended test directory to make it a suitable test directory.
                    578: maketest:
                    579:        ln -s $(DIR)/*.[chy] .
1.1.1.16  root      580:        ln -s $(DIR)/config .
1.1       root      581:        ln -s $(DIR)/*.def .
1.1.1.11  root      582:        -rm -f =*
1.1       root      583:        ln -s $(DIR)/.gdbinit .
                    584:        -ln -s $(DIR)/bison.simple .
1.1.1.11  root      585:        ln -s $(DIR)/config.gcc .
1.1.1.2   root      586:        ln -s $(DIR)/move-if-change .
1.1.1.16  root      587: # The then and else were swapped to avoid a problem on Ultrix.
                    588:        if [ ! -f Makefile ] ; then ln -s $(DIR)/Makefile . ; else false; fi
1.1.1.11  root      589:        -rm tm.h aux-output.c config.h md
                    590:        make clean
                    591: # You must then run config.gcc to set up for compilation.
1.1.1.2   root      592: 
1.1.1.10  root      593: bootstrap: all force
                    594:        $(MAKE) stage1
1.1.1.16  root      595:        $(MAKE) CC="stage1/gcc -Bstage1/" CFLAGS="-O $(CFLAGS)" libdir=$(libdir)
1.1.1.10  root      596:        $(MAKE) stage2
1.1.1.16  root      597:        $(MAKE) CC="stage2/gcc -Bstage2/" CFLAGS="-O $(CFLAGS)" libdir=$(libdir)
1.1.1.10  root      598: 
1.1.1.13  root      599: bootstrap2: force
1.1.1.16  root      600:        $(MAKE) CC="stage1/gcc -Bstage1/" CFLAGS="-O $(CFLAGS)" libdir=$(libdir)
1.1.1.13  root      601:        $(MAKE) stage2
1.1.1.16  root      602:        $(MAKE) CC="stage2/gcc -Bstage2/" CFLAGS="-O $(CFLAGS)" libdir=$(libdir)
1.1.1.13  root      603: 
                    604: bootstrap3: force
1.1.1.16  root      605:        $(MAKE) CC="stage2/gcc -Bstage2/" CFLAGS="-O $(CFLAGS)" libdir=$(libdir)
1.1.1.13  root      606: 
1.1.1.2   root      607: # Copy the object files from a particular stage into a subdirectory.
                    608: stage1: force
                    609:        -mkdir stage1
1.1.1.12  root      610:        -mv $(STAGESTUFF) $(STAGE_GCC) stage1
1.1.1.10  root      611:        -rm -f stage1/gnulib
1.1.1.12  root      612:        -ln gnulib stage1 || (cp gnulib stage1 && ranlib stage1/gnulib)
1.1.1.2   root      613: 
                    614: stage2: force
                    615:        -mkdir stage2
1.1.1.12  root      616:        -mv $(STAGESTUFF) $(STAGE_GCC) stage2
1.1.1.10  root      617:        -rm -f stage2/gnulib
1.1.1.12  root      618:        -ln gnulib stage2 || (cp gnulib stage2 && ranlib stage2/gnulib)
1.1.1.2   root      619: 
                    620: stage3: force
                    621:        -mkdir stage3
1.1.1.12  root      622:        -mv $(STAGESTUFF) $(STAGE_GCC) stage3
1.1.1.10  root      623:        -rm -f stage3/gnulib
1.1.1.12  root      624:        -ln gnulib stage3 || (cp gnulib stage3 && ranlib stage3/gnulib)
1.1.1.8   root      625: 
1.1.1.16  root      626: stage4: force
                    627:        -mkdir stage4
                    628:        -mv $(STAGESTUFF) $(STAGE_GCC) stage4
                    629:        -rm -f stage4/gnulib
                    630:        -ln gnulib stage4 || (cp gnulib stage4 && ranlib stage4/gnulib)
                    631: 
1.1.1.2   root      632: TAGS: force
1.1.1.9   root      633:        mkdir temp
1.1.1.12  root      634:        -mv c-parse.tab.c cplus-parse.c cplus-parse.h cexp.c temp
1.1.1.2   root      635:        etags *.y *.h *.c
1.1.1.9   root      636:        mv temp/* .
                    637:        rmdir temp
                    638: 
1.1.1.16  root      639: includes: force
1.1.1.17! root      640:        LIB=$(libdir) ./fixincludes
1.1.1.16  root      641: 
1.1.1.9   root      642: #In GNU Make, ignore whether `stage*' exists.
1.1.1.16  root      643: .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
1.1.1.10  root      644: 
                    645: force:

unix.superglobalmegacorp.com

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