On Sun, Jul 22, 2007 at 11:32:07AM +0200, Ralf Wildenhues wrote: > Hi Bob, > > * Bob Rossi wrote on Fri, Jul 20, 2007 at 05:34:57PM CEST: > > > > What I want to do is this: > > > > PLUGINS = plugin1 plugin2 > > > > lib_LTLIBRARIES += $(patsubst %, lib%.la, $(PLUGINS)) > > $(patsubst %, lib%_la_SOURCES, $(PLUGINS)) = [EMAIL PROTECTED] > > $(patsubst %, lib%_la_CPPFLAGS, $(PLUGINS)) = -I$(top_srcdir)/lib > > $(patsubst %, lib%_la_LDFLAGS, $(PLUGINS)) = "-no-undefined" > > > > Is this possible? > > First, actually this is entirely an Automake issue, not a Libtool one. > automake is not able to parse GNU make-specific constructs like patsubst > and similar. If in this Makefile.am, you build no other stuff, you can > turn flags globally by setting AM_CPPFLAGS and AM_LDFLAGS, but I'm > afraid you'll have to list libraries and their sources explicitly.
I see, sorry about spamming this list. I'm still slightly fuzzy on the libtool/automake boundries. > If I were you, I'd write a script generating a makefile snippet to be > included from Makefile.am. Hmm, great idea! That is exactly what I will do. Thank you. Bob Rossi _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool
