autoconf
[Top][All Lists]
Advanced

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

Re: Bison and flex target


From: Philip Herron
Subject: Re: Bison and flex target
Date: Fri, 03 Apr 2009 22:42:07 +0100
User-agent: Thunderbird 2.0.0.21 (X11/20090318)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 @address@hidden
> 
> 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

iEYEARECAAYFAknWgqoACgkQAhcOgIaQQ2GsUwCfQSoFPGuziDKnt6wgEK7d5gU5
JaYAniIWqWKx/QKd8LA6AbFZda5R5WuN
=OyzE
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]