This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]