Hello folks,
I made this change to binutils/ld/Makefile.in so it can handle y_tab.c and y_tab.h:
*** Makefile.in.orig Thu Dec 2 06:49:18 1999
--- Makefile.in Fri Feb 18 16:57:58 2000
***************
*** 519,528 ****
.l.c:
$(LEX) $(AM_LFLAGS) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@
.y.c:
! $(YACC) $(AM_YFLAGS) $(YFLAGS) $< && mv y.tab.c $*.c
if test -f y.tab.h; then \
if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \
! else :; fi
ldgram.h: ldgram.c
--- 519,536 ----
.l.c:
$(LEX) $(AM_LFLAGS) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@
.y.c:
! $(YACC) $(AM_YFLAGS) $(YFLAGS) $<
! if test -f y.tab.c; then \
! mv y.tab.c $*.c ; \
! fi ; \
! if test -f y_tab.c; then \
! mv y_tab.c $*.c ; \
! fi ; \
if test -f y.tab.h; then \
if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \
! elif test -f y_tab.h; then \
! if cmp -s y_yab.h $*.h; then rm -f y_tab.h; else mv y_tab.h $*.h; fi; \
! fi
ldgram.h: ldgram.c
Could an equivalent change be considered to automake.in so DJGPP's bison will work?
While not the best solution, it's the best one I can think of until there is suitable
macro in Autoconf to deal with this. I'm not familiar with the language used in
automake.in but from what I see I could probably make a patch if need be.
Mark
---
Mark Elbrecht, [EMAIL PROTECTED]
http://snowball.frogspace.net/