Annotation of gcc/cp/Makefile.in, revision 1.1.1.1

1.1       root        1: # Makefile for GNU C++ compiler.
                      2: #   Copyright (C) 1987, 88, 90, 91, 92, 93, 1994 Free Software Foundation, Inc.
                      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 makefile built from this file lives in the language subdirectory.
                     21: # It's purpose is to provide support for:
                     22: #
                     23: # 1) recursion where necessary, and only then (building .o's), and
                     24: # 2) building and debugging cc1 from the language subdirectory, and
                     25: # 3) nothing else.
                     26: #
                     27: # The parent makefile handles all other chores, with help from the
                     28: # language makefile fragment, of course.
                     29: #
                     30: # The targets for external use are:
                     31: # all, TAGS, ???mostlyclean, ???clean.
                     32: 
                     33: # Suppress smart makes who think they know how to automake Yacc files
                     34: .y.c:
                     35: 
                     36: # Variables that exist for you to override.
                     37: # See below for how to change them for certain systems.
                     38: 
                     39: ALLOCA =
                     40: 
                     41: # Various ways of specifying flags for compilations:  
                     42: # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
                     43: # BOOT_CFLAGS is the value of CFLAGS to pass
                     44: # to the stage2 and stage3 compilations
                     45: # XCFLAGS is used for most compilations but not when using the GCC just built.
                     46: XCFLAGS =
                     47: CFLAGS = -g
                     48: BOOT_CFLAGS = -O $(CFLAGS)
                     49: # These exists to be overridden by the x-* and t-* files, respectively.
                     50: X_CFLAGS =
                     51: T_CFLAGS =
                     52: 
                     53: X_CPPFLAGS =
                     54: T_CPPFLAGS =
                     55: 
                     56: CC = cc
                     57: BISON = bison
                     58: BISONFLAGS =
                     59: LEX = flex
                     60: LEXFLAGS =
                     61: AR = ar
                     62: AR_FLAGS = rc
                     63: SHELL = /bin/sh
                     64: MAKEINFO = makeinfo
                     65: TEXI2DVI = texi2dvi
                     66: 
                     67: # Define this as & to perform parallel make on a Sequent.
                     68: # Note that this has some bugs, and it seems currently necessary 
                     69: # to compile all the gen* files first by hand to avoid erroneous results.
                     70: P =
                     71: 
                     72: # This is used in the definition of SUBDIR_USE_ALLOCA.
                     73: # ??? Perhaps it would be better if it just looked for *gcc*.
                     74: OLDCC = cc
                     75: 
                     76: # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
                     77: # It omits XCFLAGS, and specifies -B./.
                     78: # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
                     79: GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS)
                     80: 
                     81: # Tools to use when building a cross-compiler.
                     82: # These are used because `configure' appends `cross-make'
                     83: # to the makefile when making a cross-compiler.
                     84: 
                     85: target= ... `configure' substitutes actual target name here.
                     86: xmake_file= ... `configure' substitutes actual x- file name here.
                     87: tmake_file= ... `configure' substitutes actual t- file name here.
                     88: #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
                     89: #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
                     90: 
                     91: # Directory where sources are, from where we are.
                     92: srcdir = .
                     93: 
                     94: # Additional system libraries to link with.
                     95: CLIB=
                     96: 
                     97: # Change this to a null string if obstacks are installed in the
                     98: # system library.
                     99: OBSTACK=obstack.o
                    100: 
                    101: # Choose the real default target.
                    102: ALL=all
                    103: 
                    104: # End of variables for you to override.
                    105: 
                    106: # Definition of `all' is here so that new rules inserted by sed
                    107: # do not specify the default target.
                    108: all: all.indirect
                    109: 
                    110: # This tells GNU Make version 3 not to put all variables in the environment.
                    111: .NOEXPORT:
                    112: 
                    113: # sed inserts variable overrides after the following line.
                    114: ####target overrides
                    115: ####host overrides
                    116: ####cross overrides
                    117: ####build overrides
                    118: 
                    119: # Now figure out from those variables how to compile and link.
                    120: 
                    121: all.indirect: Makefile ../cc1plus
                    122: 
                    123: # IN_GCC tells obstack.h that we are using gcc's <stddef.h> file.
                    124: INTERNAL_CFLAGS = $(CROSS) -DIN_GCC
                    125: 
                    126: # This is the variable actually used when we compile.
                    127: ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) $(XCFLAGS)
                    128: 
                    129: # Likewise.
                    130: ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
                    131: 
                    132: # Even if ALLOCA is set, don't use it if compiling with GCC.
                    133: 
                    134: SUBDIR_OBSTACK = `if [ x$(OBSTACK) != x ]; then echo ../$(OBSTACK); else true; fi`
                    135: SUBDIR_USE_ALLOCA = `case "${CC}" in "${OLDCC}") if [ x$(ALLOCA) != x ]; then echo ../$(ALLOCA); else true; fi ;; esac`
                    136: SUBDIR_MALLOC = `if [ x$(MALLOC) != x ]; then echo ../$(MALLOC); else true; fi`
                    137: 
                    138: # How to link with both our special library facilities
                    139: # and the system's installed libraries.
                    140: LIBS = $(SUBDIR_OBSTACK) $(SUBDIR_USE_ALLOCA) $(SUBDIR_MALLOC) $(CLIB)
                    141: 
                    142: # Specify the directories to be searched for header files.
                    143: # Both . and srcdir are used, in that order,
                    144: # so that tm.h and config.h will be found in the compilation
                    145: # subdirectory rather than in the source directory.
                    146: INCLUDES = -I. -I.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../config
                    147: 
                    148: # Always use -I$(srcdir)/config when compiling.
                    149: .c.o:
                    150:        $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
                    151: 
                    152: # This tells GNU make version 3 not to export all the variables
                    153: # defined in this file into the environment.
                    154: .NOEXPORT:
                    155: 
                    156: # Lists of files for various purposes.
                    157: 
                    158: # Language-specific object files for g++
                    159: 
                    160: CXX_OBJS = call.o decl.o errfn.o expr.o pt.o sig.o typeck2.o \
                    161:  class.o decl2.o error.o gc.o lex.o parse.o ptree.o spew.o typeck.o cvt.o \
                    162:  edsel.o except.o init.o method.o search.o tree.o xref.o
                    163: 
                    164: # Language-independent object files.
                    165: OBJS = `cat ../stamp-objlist` ../c-common.o
                    166: OBJDEPS = ../stamp-objlist ../c-common.o
                    167: 
                    168: compiler: ../cc1plus
                    169: ../cc1plus: $(P) $(CXX_OBJS) $(OBJDEPS) $(LIBDEPS)
                    170:        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o ../cc1plus \
                    171:              $(CXX_OBJS) $(OBJS) $(LIBS)
                    172: 
                    173: Makefile: $(srcdir)/Makefile.in $(srcdir)/../configure
                    174:        cd ..; $(SHELL) config.status
                    175: 
                    176: native: config.status ../cc1plus
                    177: 
                    178: # Compiling object files from source files.
                    179: 
                    180: # Note that dependencies on obstack.h are not written
                    181: # because that file is not part of GCC.
                    182: 
                    183: # C++ language specific files.
                    184: 
                    185: RTL_H = $(srcdir)/../rtl.h $(srcdir)/../rtl.def \
                    186:        $(srcdir)/../machmode.h $(srcdir)/../machmode.def
                    187: TREE_H = $(srcdir)/../tree.h $(srcdir)/../real.h $(srcdir)/../tree.def \
                    188:        $(srcdir)/../machmode.h $(srcdir)/../machmode.def
                    189: CXX_TREE_H = $(TREE_H) cp-tree.h tree.def
                    190: 
                    191: parse.o : $(srcdir)/parse.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h lex.h
                    192:        $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(BIG_SWITCHFLAG) \
                    193:   `echo $(srcdir)/parse.c | sed 's,^\./,,'`
                    194: 
                    195: $(srcdir)/parse.c $(srcdir)/parse.h : $(srcdir)/parse.y
                    196:        @echo expect 1 shift/reduce confict and 34 reduce/reduce conflicts.
                    197:        cd $(srcdir); $(BISON) $(BISONFLAGS) -d -o parse.c parse.y
                    198:        cd $(srcdir); grep '^#define[   ]*YYEMPTY' parse.c >>parse.h
                    199: 
                    200: # hash.h really depends on $(srcdir)/gxx.gperf.
                    201: # But this would screw things for people that don't have gperf,
                    202: # if gxx.gpref got touched, say.
                    203: # Thus you have to remove hash.h to force it to be re-made.
                    204: $(srcdir)/hash.h:
                    205:        gperf -p -j1 -g -o -t -N is_reserved_word '-k1,4,7,$$' \
                    206:                $(srcdir)/gxx.gperf >$(srcdir)/hash.h
                    207: 
                    208: spew.o : spew.c $(CONFIG_H) $(CXX_TREE_H) \
                    209:   $(srcdir)/parse.h $(srcdir)/../flags.h lex.h
                    210: lex.o : lex.c $(CONFIG_H) $(CXX_TREE_H) \
                    211:   $(srcdir)/parse.h input.c $(srcdir)/../flags.h hash.h lex.h
                    212: decl.o : decl.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \
                    213:   lex.h decl.h $(srcdir)/../stack.h
                    214: decl2.o : decl2.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \
                    215:   lex.h decl.h
                    216: typeck2.o : typeck2.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h
                    217: typeck.o : typeck.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h $(RTL_H)
                    218: class.o : class.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h
                    219: call.o : call.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h class.h
                    220: init.o : init.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h $(RTL_H)
                    221: method.o : method.c $(CONFIG_H) $(CXX_TREE_H) class.h
                    222: cvt.o : cvt.c $(CONFIG_H) $(CXX_TREE_H) class.h
                    223: search.o : search.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../stack.h $(srcdir)/../flags.h
                    224: tree.o : tree.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h
                    225: ptree.o : ptree.c $(CONFIG_H) $(CXX_TREE_H)
                    226: gc.o : gc.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h
                    227: except.o : except.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h $(RTL_H)
                    228: expr.o : expr.c $(CONFIG_H) $(CXX_TREE_H) $(RTL_H) $(srcdir)/../flags.h \
                    229:   $(srcdir)/../expr.h ../insn-codes.h
                    230: edsel.o : edsel.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../stack.h $(srcdir)/../flags.h
                    231: xref.o : xref.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../input.h
                    232: pt.o : pt.c $(CONFIG_H) $(CXX_TREE_H) decl.h $(srcdir)/parse.h
                    233: error.o : error.c $(CONFIG_H) $(CXX_TREE_H)
                    234: errfn.o : errfn.c $(CONFIG_H) $(CXX_TREE_H)
                    235: sig.o : sig.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h
                    236: 
                    237: # These exist for maintenance purposes.
                    238: 
                    239: # Update the tags table.
                    240: TAGS: force
                    241:        cd $(srcdir) ;                          \
                    242:        etags *.c *.h ;                         \
                    243:        echo 'l' | tr 'l' '\f' >> TAGS ;        \
                    244:        echo 'parse.y,0' >> TAGS ;              \
                    245:        etags -a ../*.h ../*.c;
                    246: 
                    247: .PHONY: TAGS
                    248: 
                    249: force:

unix.superglobalmegacorp.com

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