This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
object `foo.$(OBJEXT)' created both with libtool and without
- From: Harlan Stenn <Harlan dot Stenn at pfcs dot com>
- To: automake at gnu dot org
- Date: Mon, 19 Aug 2002 23:58:28 -0400
- Subject: object `foo.$(OBJEXT)' created both with libtool and without
Automake-1.6.3.
So I have a Makefile.am that build both PROGRAMS and LTLIBRARIES.
One of the .c modules is used by both a program and a library.
I get the warning:
automake: foo/Makefile:NN: object `foo.$(OBJEXT)' created both with libtool
and without
and I'm assuming it's because this case is not being caught by the same code
that handles:
bin_PROGRAMS = ctags etags
ctags_SOURCES = etags.c
ctags_CFLAGS = -DCTAGS
etags_SOURCES = etags.c
etags_CFLAGS = -DETAGS
or maybe it would if I had target-specific CFLAGS (which I don't, at
present).
Suggestions on how I can remedy this problem?
H