--- gcc/cp/Makefile.in 2018/04/24 18:20:22 1.1 +++ gcc/cp/Makefile.in 2018/04/24 18:27:11 1.1.1.2 @@ -1,5 +1,5 @@ # Makefile for GNU C++ compiler. -# Copyright (C) 1987, 88, 90, 91, 92, 93, 1994 Free Software Foundation, Inc. +# Copyright (C) 1987, 88, 90-4, 1995 Free Software Foundation, Inc. #This file is part of GNU CC. @@ -15,10 +15,11 @@ #You should have received a copy of the GNU General Public License #along with GNU CC; see the file COPYING. If not, write to -#the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +#the Free Software Foundation, 59 Temple Place - Suite 330, +#Boston, MA 02111-1307, USA. # The makefile built from this file lives in the language subdirectory. -# It's purpose is to provide support for: +# Its purpose is to provide support for: # # 1) recursion where necessary, and only then (building .o's), and # 2) building and debugging cc1 from the language subdirectory, and @@ -159,15 +160,16 @@ INCLUDES = -I. -I.. -I$(srcdir) -I$(srcd CXX_OBJS = call.o decl.o errfn.o expr.o pt.o sig.o typeck2.o \ class.o decl2.o error.o gc.o lex.o parse.o ptree.o spew.o typeck.o cvt.o \ - edsel.o except.o init.o method.o search.o tree.o xref.o + edsel.o except.o init.o method.o search.o tree.o xref.o repo.o # Language-independent object files. -OBJS = `cat ../stamp-objlist` ../c-common.o -OBJDEPS = ../stamp-objlist ../c-common.o +OBJS = `cat ../stamp-objlist` ../c-common.o ../c-pragma.o +OBJDEPS = ../stamp-objlist ../c-common.o ../c-pragma.o compiler: ../cc1plus ../cc1plus: $(P) $(CXX_OBJS) $(OBJDEPS) $(LIBDEPS) - $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o ../cc1plus \ + rm -f ../cc1plus$(exeext) + $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ \ $(CXX_OBJS) $(OBJS) $(LIBS) Makefile: $(srcdir)/Makefile.in $(srcdir)/../configure @@ -187,15 +189,28 @@ RTL_H = $(srcdir)/../rtl.h $(srcdir)/../ TREE_H = $(srcdir)/../tree.h $(srcdir)/../real.h $(srcdir)/../tree.def \ $(srcdir)/../machmode.h $(srcdir)/../machmode.def CXX_TREE_H = $(TREE_H) cp-tree.h tree.def +PARSE_H = $(srcdir)/parse.h +PARSE_C = $(srcdir)/parse.c -parse.o : $(srcdir)/parse.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h lex.h +parse.o : $(PARSE_C) $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h lex.h $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(BIG_SWITCHFLAG) \ - `echo $(srcdir)/parse.c | sed 's,^\./,,'` + `echo $(PARSE_C) | sed 's,^\./,,'` -$(srcdir)/parse.c $(srcdir)/parse.h : $(srcdir)/parse.y - @echo expect 1 shift/reduce confict and 34 reduce/reduce conflicts. +CONFLICTS = expect 5 shift/reduce conflicts and 38 reduce/reduce conflicts. +$(PARSE_H) : $(PARSE_C) +$(PARSE_C) : $(srcdir)/parse.y + @echo $(CONFLICTS) cd $(srcdir); $(BISON) $(BISONFLAGS) -d -o parse.c parse.y cd $(srcdir); grep '^#define[ ]*YYEMPTY' parse.c >>parse.h +#$(PARSE_C) $(PARSE_H) : stamp-parse ; @true +#stamp-parse: $(srcdir)/parse.y +# @echo $(CONFLICTS) +# $(BISON) $(BISONFLAGS) -d $(srcdir)/parse.y +# grep '^#define[ ]*YYEMPTY' y.tab.c >>y.tab.h +# $(srcdir)/../move-if-change y.tab.c $(PARSE_C) +# $(srcdir)/../move-if-change y.tab.h $(PARSE_H) +# cp $(PARSE_C) y.tab.c +# touch stamp-parse # hash.h really depends on $(srcdir)/gxx.gperf. # But this would screw things for people that don't have gperf, @@ -206,9 +221,9 @@ $(srcdir)/hash.h: $(srcdir)/gxx.gperf >$(srcdir)/hash.h spew.o : spew.c $(CONFIG_H) $(CXX_TREE_H) \ - $(srcdir)/parse.h $(srcdir)/../flags.h lex.h + $(PARSE_H) $(srcdir)/../flags.h lex.h lex.o : lex.c $(CONFIG_H) $(CXX_TREE_H) \ - $(srcdir)/parse.h input.c $(srcdir)/../flags.h hash.h lex.h + $(PARSE_H) input.c $(srcdir)/../flags.h hash.h lex.h $(srcdir)/../c-pragma.h decl.o : decl.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \ lex.h decl.h $(srcdir)/../stack.h decl2.o : decl2.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \ @@ -229,10 +244,11 @@ expr.o : expr.c $(CONFIG_H) $(CXX_TREE_H $(srcdir)/../expr.h ../insn-codes.h edsel.o : edsel.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../stack.h $(srcdir)/../flags.h xref.o : xref.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../input.h -pt.o : pt.c $(CONFIG_H) $(CXX_TREE_H) decl.h $(srcdir)/parse.h +pt.o : pt.c $(CONFIG_H) $(CXX_TREE_H) decl.h $(PARSE_H) error.o : error.c $(CONFIG_H) $(CXX_TREE_H) errfn.o : errfn.c $(CONFIG_H) $(CXX_TREE_H) sig.o : sig.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h +repo.o : repo.c $(CONFIG_H) $(CXX_TREE_H) # These exist for maintenance purposes.