Re: Bison and flex target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Philip,

* Philip Herron wrote on Fri, Apr 03, 2009 at 02:51:50PM CEST:
> I am not sure if this is autoconf or automake.

If you use Automake, then this is an Automake question.  :-)

> I see there is AC_PROG_YACC and AC_PROG_LEX to get the apropriate
> programs for the configure.ac. But how do you go about adding them as
> build targets so:
> 
> yacc -d foo.yy
> lex foo.l
> 
> are run to get y.tab.{c,h} and lex.yy.c

Try something like

bin_PROGRAMS = foo
foo_SOURCES = foo.yy bar.l

If you are not using Automake, well, you can use @LEX@ and @LEXLIB@ in
your Makefile.in, as well as @YACC@.

Cheers,
Ralf


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux