>>> "Aidan" == Aidan Delaney <[EMAIL PROTECTED]> writes:

 Aidan> balor@navi traditional $ make
 Aidan> flex   traditional.ll && mv lex.yy.c traditional.cc

Automake indeed does not support C++ scanners (i.e., flex -+), but 
will compile a C scanner as C++ source when asked so.

[...]
 Aidan> AFAIK it should run the @BISON@ -d first
[...]

Automake 1.7.3 will have the following paragraphs in its manual.

|    When `yacc' is invoked, it is passed `YFLAGS' and `AM_YFLAGS'.  The
| former is a user variable and the latter is intended for the
| `Makefile.am' author.
|    
|    `AM_YFLAGS' is usually used to pass the `-d' option to `yacc'.
| Automake knows what this means and will automatically adjust its rules
| to update and distribute the header file built by `yacc -d'.  What
| Automake cannot guess, though, is where this header will be used: it is
| up to you to ensure the header gets built before it is first used.
| Typically this is necessary in order for dependency tracking to work
| when the header is included by another file.  The common solution is
| listing the header file in `BUILT_SOURCES' (*note Sources::) as follows.
| 
|      BUILT_SOURCES = parser.h
|      AM_YFLAGS = -d
|      bin_PROGRAMS = foo
|      foo_SOURCES = ... parser.y ...

-- 
Alexandre Duret-Lutz



Reply via email to