This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Makefile and bfin-parse.c ?
On Tue, Oct 25, 2005 at 10:17:16AM +0800, Jie Zhang wrote:
> On 10/25/05, H. J. Lu <hjl@lucon.org> wrote:
> > > > Jie Zhang <jzhang918@gmail.com> writes:
> > > I tried it. The warnings were still there.
> > >
> >
> > Is bfin-parse.tab.h really needed? This patch seems to work.
> >
> > -bfin-parse.c bfin-parse.tab.h: $(srcdir)/config/bfin-parse.y
>
> Oh, It's a typo of my last patch to rename bfin-parse.tab.h to
> bfin-parse.h. It should be
>
> bfin-parse.c bfin-parse.h: $(srcdir)/config/bfin-parse.y
>
In that case, this should work.
H.J.
--- gas/Makefile.am.dup 2005-10-24 17:32:45.000000000 -0700
+++ gas/Makefile.am 2005-10-24 19:57:23.000000000 -0700
@@ -605,8 +605,9 @@ m68k-parse.o: m68k-parse.c $(srcdir)/con
m68k-parse.h: ; @true
$(srcdir)/config/m68k-parse.h: ; @true
-bfin-parse.c bfin-parse.tab.h: $(srcdir)/config/bfin-parse.y
+bfin-parse.c: $(srcdir)/config/bfin-parse.y
$(SHELL) $(YLWRAP) $(srcdir)/config/bfin-parse.y y.tab.c bfin-parse.c y.tab.h bfin-parse.h -- $(YACCCOMPILE) -d ;
+bfin-parse.h: bfin-parse.c
bfin-parse.o: bfin-parse.c bfin-parse.h $(srcdir)/config/bfin-defs.h
bfin-defs.h: ; @true