This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
flex -lfl
- To: automake at gnu dot org
- Subject: flex -lfl
- From: Sascha Ziemann <szi at aibon dot ping dot de>
- Date: 24 Mar 2000 06:49:21 +0100
Hi,
I have defined two programs:
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
One needs -lfl and the other not. But the makefile generated by
automake compiles it in this way:
gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -g -c rlpd.c
gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -g -c rlp.c
gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -g -c errwrap.c
gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -g -c conf_parser.c
gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -g -c conf_lexer.c
gcc -g -o rlpd rlpd.o rlp.o errwrap.o conf_parser.o conf_lexer.o -lfl
gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -g -c rlpc.c
gcc -g -o rlpc rlpc.o rlp.o errwrap.o -lfl
How can I prevent the second program (rlpc) from beeing linked with
the flex lib?
Sascha
--
Freie Software ist der Ausgang des Menschen aus seiner
selbstverschuldeten Unmündigkeit. (Immanuel Kant, 1784)