aboutsummaryrefslogtreecommitdiff
path: root/ld/Makefile.in
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1991-06-20 22:04:41 +0000
committerK. Richard Pixley <rich@cygnus>1991-06-20 22:04:41 +0000
commite46cdcdd364303ce9a6045c756f534545a61f1fe (patch)
tree774522d00c51dd4e2405095a39eeaf751f32298e /ld/Makefile.in
parent6321e9eaf5233a9b9e946642cb4ef9c3f7fd2150 (diff)
downloadgdb-e46cdcdd364303ce9a6045c756f534545a61f1fe.zip
gdb-e46cdcdd364303ce9a6045c756f534545a61f1fe.tar.gz
gdb-e46cdcdd364303ce9a6045c756f534545a61f1fe.tar.bz2
Changes to use yacc and/or bison in place.
Diffstat (limited to 'ld/Makefile.in')
-rw-r--r--ld/Makefile.in14
1 files changed, 11 insertions, 3 deletions
diff --git a/ld/Makefile.in b/ld/Makefile.in
index 36d31be..b1029cd 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