-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hey This works for me. But i have a problem it works only if i use 1 yacc/lex. But when i move to add in multiple lexer's etc not too sure how to make this work.. I see stuff on the gdb hack to redefine all the variables but not too sure how this is meant to work. I am not a total guru with bison and flex yet so sorry if this is basic :) - -Phil Philip Herron wrote: > Ralf Wildenhues wrote: >> 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 > > Hey > > Thanks for that i am using automake but all i did was just specify my c > files to compile. > > I'll give a go and just add my lex and yacc stuff in like that i didn't > think it would work as easy as that. I'll try it tomorrow > > Thanks > > -Phil -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkncpHQACgkQAhcOgIaQQ2FfiQCggSwNRrF12jfLeCq5P9r6NIa8 ohAAnAukPEqbv7QWUFgzBAy5lANIJP9/ =JO7G -----END PGP SIGNATURE----- _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf