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]

Re: Makefile and bfin-parse.c ?


Jie Zhang <jzhang918@gmail.com> writes:

> I'm trying to figure out how to remove these warnings. However, I have
> little knowledge about automake. So I need your help. The overriding
> rule is written in Makefile.am, the other is automatically generated
> by automake. Automake won't generate its rule if I remove
> bfin-parse.tab.h from the rule in Makefile.am. However, creating both
> bfin-parse.c and bfin-parse.tab.h is a common way to write yacc/bison
> rule in Makefile. Why can automake not recognize such rules? And I
> also found that there is a rule creating both itbl-parse.c and
> itbl-parse.h but automake doesn't generate a rule for
> itbl-parse.c. How is this accomplished in Makefile.am?

I am hardly an automake expert.  I don't know how automake decides
when to generate a rule.  I don't know why itbl-parse.[ch] doesn't
have the same problem.  The obvious difference is that I see
itbl-parse.c and itbl-parse.h, but I see bfin-parse.c and
bfin-parse.tab.h.  Perhaps if you change bfin-parse.tab.h to
bfin-parse.h automake will recognize what is going on.

Ian


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