Commit 81cdf787 by Doug Evans Committed by Doug Evans

(BISONFLAGS): Delete --yacc.

(PARSE_H): Depend on $(PARSE_C), for parallel makes.
(PARSE_C): Undo last patch.

From-SVN: r8639
parent 52c0eaf8
Fri Dec 9 18:17:37 1994 Doug Evans <dje@cygnus.com>
* Makefile.in (BISONFLAGS): Delete --yacc.
(PARSE_H): Depend on $(PARSE_C), for parallel makes.
(PARSE_C): Undo last patch.
Fri Dec 2 10:44:36 1994 Mike Stump (mrs@wombat.gnu.ai.mit.edu) Fri Dec 2 10:44:36 1994 Mike Stump (mrs@wombat.gnu.ai.mit.edu)
* Makefile.in (BISONFLAGS): Add --yacc so that output winds up in * Makefile.in (BISONFLAGS): Add --yacc so that output winds up in
......
...@@ -55,7 +55,7 @@ T_CPPFLAGS = ...@@ -55,7 +55,7 @@ T_CPPFLAGS =
CC = cc CC = cc
BISON = bison BISON = bison
BISONFLAGS = --yacc BISONFLAGS =
LEX = flex LEX = flex
LEXFLAGS = LEXFLAGS =
AR = ar AR = ar
...@@ -194,19 +194,20 @@ parse.o : $(PARSE_C) $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h lex.h ...@@ -194,19 +194,20 @@ parse.o : $(PARSE_C) $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h lex.h
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(BIG_SWITCHFLAG) \ $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(BIG_SWITCHFLAG) \
`echo $(PARSE_C) | sed 's,^\./,,'` `echo $(PARSE_C) | sed 's,^\./,,'`
#$(PARSE_C) $(PARSE_H) : $(srcdir)/parse.y $(PARSE_H) : $(PARSE_C)
# @echo expect 1 shift/reduce confict and 34 reduce/reduce conflicts. $(PARSE_C) : $(srcdir)/parse.y
# 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 expect 1 shift/reduce confict and 34 reduce/reduce conflicts. @echo expect 1 shift/reduce confict and 34 reduce/reduce conflicts.
$(BISON) $(BISONFLAGS) -d $(srcdir)/parse.y cd $(srcdir); $(BISON) $(BISONFLAGS) -d -o parse.c parse.y
grep '^#define[ ]*YYEMPTY' y.tab.c >>y.tab.h cd $(srcdir); grep '^#define[ ]*YYEMPTY' parse.c >>parse.h
$(srcdir)/../move-if-change y.tab.c $(PARSE_C) #$(PARSE_C) $(PARSE_H) : stamp-parse ; @true
$(srcdir)/../move-if-change y.tab.h $(PARSE_H) #stamp-parse: $(srcdir)/parse.y
cp $(PARSE_C) y.tab.c # @echo expect 1 shift/reduce confict and 34 reduce/reduce conflicts.
touch stamp-parse # $(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. # hash.h really depends on $(srcdir)/gxx.gperf.
# But this would screw things for people that don't have gperf, # But this would screw things for people that don't have gperf,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment