aboutsummaryrefslogtreecommitdiff
path: root/ld/Makefile.in
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1991-10-03 21:50:08 +0000
committerPer Bothner <per@bothner.com>1991-10-03 21:50:08 +0000
commit3e0f5f4f9e1cb251da87eb08edfb99774be06095 (patch)
tree9aeeca1a9b4bd6f103da630dfdfb53b4abbb5391 /ld/Makefile.in
parent5bc757e24478d4a037a8fb7a191e29dc11c26619 (diff)
downloadgdb-3e0f5f4f9e1cb251da87eb08edfb99774be06095.zip
gdb-3e0f5f4f9e1cb251da87eb08edfb99774be06095.tar.gz
gdb-3e0f5f4f9e1cb251da87eb08edfb99774be06095.tar.bz2
Added a kludge for when yacc is used in place of bison:
Rename the yacc outputs y.tab.[ch] to what we want: ldgram.[ch].
Diffstat (limited to 'ld/Makefile.in')
-rw-r--r--ld/Makefile.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/ld/Makefile.in b/ld/Makefile.in
index 8b050df..79ae521 100644
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -78,8 +78,6 @@ SED_REMOVE_CONSTRUCTORS= -e /CONSTRUCTORS/d
< $< | ./mkscript >$*.xr
# for self hosting
-GNUTARGET=a.out-sunos-big
-LDEMULATION=gld
BFDLIB=$(unsubdir)/../bfd$(subdir)/libbfd.a
LIBIBERTY=$(unsubdir)/../libiberty$(subdir)/libiberty.a
@@ -112,6 +110,9 @@ all: Makefile $(LD_PROG)
ldgram.h ldgram.c: ldgram.y
$(BISON) $(BISONFLAGS) -d $(VPATH)/ldgram.y -o ldgram.c
+# These are in case BISON is really yacc (which ignores -o).
+ if [ -f y.tab.c -a ! -f ldgram.c ]; then mv y.tab.c ldgram.c; fi
+ if [ -f y.tab.h -a ! -f ldgram.h ]; then mv y.tab.h ldgram.h; fi
ldlex.c: ldlex.l
lex -t $(VPATH)/ldlex.l >ldlex.c