mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
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].
This commit is contained in:
@ -78,8 +78,6 @@ SED_REMOVE_CONSTRUCTORS= -e /CONSTRUCTORS/d
|
|||||||
< $< | ./mkscript >$*.xr
|
< $< | ./mkscript >$*.xr
|
||||||
|
|
||||||
# for self hosting
|
# for self hosting
|
||||||
GNUTARGET=a.out-sunos-big
|
|
||||||
LDEMULATION=gld
|
|
||||||
BFDLIB=$(unsubdir)/../bfd$(subdir)/libbfd.a
|
BFDLIB=$(unsubdir)/../bfd$(subdir)/libbfd.a
|
||||||
LIBIBERTY=$(unsubdir)/../libiberty$(subdir)/libiberty.a
|
LIBIBERTY=$(unsubdir)/../libiberty$(subdir)/libiberty.a
|
||||||
|
|
||||||
@ -112,6 +110,9 @@ all: Makefile $(LD_PROG)
|
|||||||
|
|
||||||
ldgram.h ldgram.c: ldgram.y
|
ldgram.h ldgram.c: ldgram.y
|
||||||
$(BISON) $(BISONFLAGS) -d $(VPATH)/ldgram.y -o ldgram.c
|
$(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
|
ldlex.c: ldlex.l
|
||||||
lex -t $(VPATH)/ldlex.l >ldlex.c
|
lex -t $(VPATH)/ldlex.l >ldlex.c
|
||||||
|
Reference in New Issue
Block a user