This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

itbl-parse.h dependencies in gas (was: Binutils branch 2.20 (soon))


* Ralf Wildenhues wrote on Thu, Sep 03, 2009 at 05:07:29PM CEST:
> * Tristan Gingold wrote on Thu, Sep 03, 2009 at 05:03:42PM CEST:
> > I'd like to create the branch for binutils 2.20 soon (ie within the
> > next 24 hours).
> > If you have a patch to commit or still waiting for a approval,
> > please speak now.  Thanks!
> 
> One pending makefile patch (with Jie).  Will send/apply tonight
> (i.e., give me 4 hours, please).

I'm applying this patch to fix rebuild rules for the generated header
itbl-parse.h.  With Jie's pending gas/Makefile.am patches, I am not
aware of any further autotools-related regressions in binutils.

Thanks,
Ralf

gas/ChangeLog:
2009-09-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	* Makefile.am (itbl-lex.o): Depend on itbl-parse.h.
	(itbl-ops.o, itbl-tops.o): Likewise.
	(itbl-parse.h): Use separate rule.
	* Makefile.in: Regenerate.

diff --git a/gas/Makefile.am b/gas/Makefile.am
index 0ae93a6..b785276 100644
--- a/gas/Makefile.am
+++ b/gas/Makefile.am
@@ -628,7 +628,7 @@ endif
 
 # Disable -Werror, if it has been enabled, since old versions of bison/
 # yacc will produce working code which contain compile time warnings.
-itbl-lex.o: itbl-lex.c
+itbl-lex.o: itbl-lex.c itbl-parse.h
 if am__fastdepCC
 	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f itbl-lex.c || echo $(srcdir)/`itbl-lex.c $(NO_WERROR)
 	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@@ -654,16 +654,20 @@ endif
 	$(COMPILE) -c `test -f itbl-parse.c || echo $(srcdir)/`itbl-parse.c $(NO_WERROR)
 endif
 
-itbl-parse.c itbl-parse.h: $(srcdir)/itbl-parse.y
+itbl-parse.c: $(srcdir)/itbl-parse.y
 	$(SHELL) $(YLWRAP) $(srcdir)/itbl-parse.y y.tab.c itbl-parse.c y.tab.h itbl-parse.h -- $(YACCCOMPILE) -d
 
+itbl-parse.h: itbl-parse.c ; @true
+
+itbl-ops.o: itbl-parse.h
+
 # stand-alone itbl assembler & disassembler
 
 EXTRA_PROGRAMS = itbl-test
 itbl_test_SOURCES = itbl-parse.y itbl-lex.l
 itbl_test_LDADD = itbl-tops.o itbl-test.o $(GASLIBS) @LEXLIB@
 
-itbl-tops.o: itbl-ops.c
+itbl-tops.o: itbl-ops.c itbl-parse.h
 if am__fastdepCC
 	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -o $@ -c -DSTAND_ALONE $(srcdir)/itbl-ops.c
 	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]