libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Howto tell libtool to generate multiple libraries from a variable?


From: Bob Rossi
Subject: Howto tell libtool to generate multiple libraries from a variable?
Date: Fri, 20 Jul 2007 11:34:57 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

Hi,

I'm using libtool, and I use it to create some loadable plugins for me.
I essentially have this currently,

  lib_LTLIBRARIES += libplugin1.la
  libplugin1_la_SOURCES = plugin1.cc
  libplugin1_la_CPPFLAGS = -I$(top_srcdir)/lib
  libplugin1_la_LDFLAGS = "-no-undefined"

What I want to do is this:

  PLUGINS = plugin1 plugin2

  lib_LTLIBRARIES += $(patsubst %, lib%.la, $(PLUGINS))
  $(patsubst %, lib%_la_SOURCES, $(PLUGINS)) = address@hidden
  $(patsubst %, lib%_la_CPPFLAGS, $(PLUGINS)) = -I$(top_srcdir)/lib
  $(patsubst %, lib%_la_LDFLAGS, $(PLUGINS)) = "-no-undefined"

Is this possible?

Thanks!
Bob Rossi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]