This is the mail archive of the automake@gnu.org mailing list for the automake project.


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

Re: yacc and flex


>>>>> "Sascha" == Sascha Ziemann <szi@aibon.ping.de> writes:

Sascha> flex  conf_lexer.l && mv lex.yy.c conf_lexer.c
Sascha> gcc   -c conf_lexer.c
Sascha> bison -y  conf_parser.y && mv y.tab.c conf_parser.c
Sascha> gcc   -c conf_parser.c

Sascha> And this means, that the tokens are not available in the
Sascha> conf_lexer.c file.  How can I solve this problem?

Add an explicit dependency:

conf_parser.o: conf_lexer.c

We're trying to come up with a better solution for this problem.

Tom




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