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)