This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: flex -lfl
- To: Bob Friesenhahn <bfriesen at simple dot dallas dot tx dot us>, Akim Demaille <akim at epita dot fr>
- Subject: Re: flex -lfl
- From: Sascha Ziemann <szi at aibon dot ping dot de>
- Date: 24 Mar 2000 18:34:16 +0100
- Cc: automake at gnu dot org
- References: <Pine.SO4.4.05.10003240814380.12062-100000@scooby.simplesystems.org>
Bob Friesenhahn <bfriesen@simple.dallas.tx.us> writes:
| Use LIBADD rather than LIBS. LIBS use used by all libraries, while
| LIBADD must be specified individually for each library.
Akim Demaille <akim@epita.fr> writes:
| Just don't use -lfl at all.
I don't specify -lfl and I don't use LIBS, so I can not use LIBADD
instead. This is the whole Makefile.am:
----------------------------------------------------------------------
CFLAGS+=-g
YACC+=-d
bin_PROGRAMS = rlpd rlpc
rlpd_SOURCES = rlpd.c rlp.c errwrap.c conf_parser.y conf_lexer.l
rlpc_SOURCES = rlpc.c rlp.c errwrap.c
EXTRA_DIST = doc/rfc887.txt
DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)\"
----------------------------------------------------------------------
How can I tell automake to stop using -lfl either for all programs or
only for one? I tried to set LEXLIB to nothing, but that had no
effect.
Another questions:
- How can I check for flex and bison instead of lex and yacc? I use
some flex/bison specific features, which would not work with
lex/yacc.
- How can I get the evaluated value of sysconfdir into a file? When I
put @sysconfdir@ in a .in file, it will be replaced by
"$(prefix)/etc". And this does not help much in a header file for
example.
- Is there something like YACCFLAGS, that can be used for the -d
option of yacc?
Sascha
--
Freie Software ist der Ausgang des Menschen aus seiner
selbstverschuldeten Unmündigkeit. (Immanuel Kant, 1784)