automake
[Top][All Lists]
Advanced

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

creating a shared library from more than one src directory


From: Jens Rehsack
Subject: creating a shared library from more than one src directory
Date: Fri, 22 Oct 2004 13:18:37 +0000
User-agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.1) Gecko/20040722

Hi,

I have a problem, and even I was searching for days I couldn't found
a solution.

I need to create several shared libraries for a project, whereby
each library will be composed from several modules.

As example:

project/
  +- project/src/
  |    +- project/src/core/
  |    |    +- project/src/core/base/
  |    |    +- project/src/core/config/
  |    |    +- project/src/core/exceptions/
  |    |    +- project/src/core/logging/
  |    |    +- project/src/core/messages/
  |    +- project/src/rendering/
  |    |    +- project/src/rendering/layout/
  |    |    +- project/src/rendering/design/
  |    |    +- project/src/rendering/plugins/
  |    +- project/src/workflow/
  |    |    +- project/src/workflow/documents/
  |    |    +- project/src/workflow/components/
  |    |    +- project/src/workflow/backend/
  +- project/h/
  |    +- project/h/core/
  |    |   +- project/h/core/base
.
.
.

I think it's clear so far.

So it's planned to create libraries in the form of
lib$(prjprefix)$(part).so - e.g. libfpcore.so, libfprendering.so etc.

It seems it wont work to put some Makefile.am's into the real
source directories (as project/src/core/base/) containing some stuff
like (sample!)
  core_base_SOURCES = Strings.cc List.cc

and a Makefile.am info project/src/core/ containing
  lib_LTLIBRARIES = libfpbase.so
  libfpbase_so_SOURCES = $(core_base_SOURCES) $(core_config_SOURCES) ...
because of 2 things:
1) The Makefile.am in project/src/core/ do not know anything about
   the sources in project/src/core/base etc.
2) the sources defined in project/src/core/base/Makefile.am cannot
   be found in project/src/core

Are there any tips how to write such Makefile.am's?

Thanks in advance,
Jens




reply via email to

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