From e46cdcdd364303ce9a6045c756f534545a61f1fe Mon Sep 17 00:00:00 2001 From: "K. Richard Pixley" Date: Thu, 20 Jun 1991 22:04:41 +0000 Subject: [PATCH] Changes to use yacc and/or bison in place. --- ld/Makefile.in | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/ld/Makefile.in b/ld/Makefile.in index 36d31be5134..b1029cd6636 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -23,6 +23,9 @@ INCLUDE = $(srcdir)/../include INCLUDES = -I. -I$(srcdir) -I$(INCLUDE) DEBUG = -g +BISON = bison +BISONFLAGS = -v + SCRIPTS = ldgld68k.script ldgld68kUr.script ldgld68kr.script \ ldgld.script ldgldUr.script ldgldr.script ldlnk960.script \ ldlnk960r.script ldgld960.script \ @@ -85,9 +88,9 @@ all: Makefile $(PROCESSED_SCRIPTS) $(LD_PROG) $(PROCESSED_SCRIPTS): mkscript $(SCRIPTS) ldgram.c:ldgram.y - $(YACC) $(VPATH)/ldgram.y - mv y.tab.c ldgram.c - mv y.tab.h ldgram.h + $(BISON) $(BISONFLAGS) -d $(VPATH)/ldgram.y -o ldgram.c +# mv y.tab.c ldgram.c +# mv y.tab.h ldgram.h ldlex.c:ldlex.l lex -t $(VPATH)/ldlex.l >ldlex.c @@ -157,6 +160,11 @@ stage3: force - mv -f $(STAGESTUFF) stage3 - (cd stage3 ; ln -s $(LD_PROG) ld) +against=stage2 + +comparison: force + for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done + de-stage1: force - (cd stage1 ; mv -f * ..) - rm ld -- 2.30.2