- Workaround Automake limitations for calculating library dependencies

when installing. Should fix the problem for now.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@453 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-02-24 16:42:54 +00:00
parent 022af85ed1
commit 38f7b84909
1 changed files with 55 additions and 46 deletions

View File

@ -32,6 +32,15 @@ moddir = $(sharedir)/modules
localedir = @datadir@/locale localedir = @datadir@/locale
testsdir = $(pkgdatadir)/tests testsdir = $(pkgdatadir)/tests
#define empty global variables
bin_PROGRAMS =
mod_PYTHON =
noinst_HEADERS =
pkglib_LTLIBRARIES =
EXTRA_DIST =
MAINTAINERCLEANFILES =
MOSTLYCLEANFILES =
# ############################################################ # ############################################################
# #
# additional rules # additional rules
@ -57,14 +66,14 @@ macros = m4/compilerflags.m4 \
m4/ac_pkg_swig.m4 \ m4/ac_pkg_swig.m4 \
m4/ac_python_module.m4 m4/ac_python_module.m4
EXTRA_DIST += \
EXTRA_DIST = \
config/config.rpath \ config/config.rpath \
config/mkinstalldirs \ config/mkinstalldirs \
configure.ac \ configure.ac \
gettext.h \ gettext.h \
$(macros) $(macros)
MAINTAINERCLEANFILES = doc/API
MAINTAINERCLEANFILES += doc/API
# ############################################################ # ############################################################
# #
@ -106,47 +115,6 @@ dist-hook : apidox
distclean-local : distclean-local :
if test -d 'doc/API'; then rm -rf 'doc/API'; fi if test -d 'doc/API'; then rm -rf 'doc/API'; fi
# ############################################################
#
# source : libpyloader.la
#
# ############################################################
pkglib_LTLIBRARIES = src/backend/pyloader/libpyloader.la
src_backend_pyloader_libpyloader_la_CPPFLAGS = \
-I@top_srcdir@ \
-DPYCDIR="\"$(pycdir)\"" \
-DMODDIR="\"$(moddir)\"" \
-DLOCALEDIR="\"$(localedir)\"" \
$(PYTHON_CPPFLAGS) \
$(GLIBMM_CFLAGS)
src_backend_pyloader_libpyloader_la_CXXFLAGS = \
$(VISIB_HIDDEN)
src_backend_pyloader_libpyloader_la_LIBADD = \
$(PYTHON_LDFLAGS) \
$(PYTHON_EXTRA_LIBS) \
$(GLIBMM_LIBS) \
src/backend/libbackend.la
src_backend_pyloader_libpyloader_la_LDFLAGS = \
$(PYTHON_EXTRA_LDFLAGS) \
$(LT_LDFLAGS) \
-version-info 0:0:0
# Please keep this in sorted order:
src_backend_pyloader_libpyloader_la_SOURCES = \
src/backend/pyloader/python_policy.cc \
src/backend/pyloader/python_policy_manager.cc
noinst_HEADERS = \
src/backend/pyloader/python_policy.hh \
src/backend/pyloader/python_policy_manager.hh
mod_PYTHON = \
src/backend/pyloader/Abstract.py \
src/backend/pyloader/Policy.py \
src/backend/pyloader/ScriptAdapter.py
# ############################################################ # ############################################################
# #
# source : libbackend.la # source : libbackend.la
@ -210,7 +178,7 @@ noinst_HEADERS += \
# ############################################################ # ############################################################
# Program & library names # Program & library names
bin_PROGRAMS = sgpemv2 bin_PROGRAMS += sgpemv2
sgpemv2_CPPFLAGS = \ sgpemv2_CPPFLAGS = \
-I@top_srcdir@ \ -I@top_srcdir@ \
@ -254,6 +222,47 @@ noinst_HEADERS += \
src/start_gui.hh \ src/start_gui.hh \
src/text_simulation.hh src/text_simulation.hh
# ############################################################
#
# source : libpyloader.la
#
# ############################################################
pkglib_LTLIBRARIES += src/backend/pyloader/libpyloader.la
src_backend_pyloader_libpyloader_la_CPPFLAGS = \
-I@top_srcdir@ \
-DPYCDIR="\"$(pycdir)\"" \
-DMODDIR="\"$(moddir)\"" \
-DLOCALEDIR="\"$(localedir)\"" \
$(PYTHON_CPPFLAGS) \
$(GLIBMM_CFLAGS)
src_backend_pyloader_libpyloader_la_CXXFLAGS = \
$(VISIB_HIDDEN)
src_backend_pyloader_libpyloader_la_LIBADD = \
$(PYTHON_LDFLAGS) \
$(PYTHON_EXTRA_LIBS) \
$(GLIBMM_LIBS) \
src/backend/libbackend.la
src_backend_pyloader_libpyloader_la_LDFLAGS = \
$(PYTHON_EXTRA_LDFLAGS) \
$(LT_LDFLAGS) \
-version-info 0:0:0
# Please keep this in sorted order:
src_backend_pyloader_libpyloader_la_SOURCES = \
src/backend/pyloader/python_policy.cc \
src/backend/pyloader/python_policy_manager.cc
noinst_HEADERS += \
src/backend/pyloader/python_policy.hh \
src/backend/pyloader/python_policy_manager.hh
mod_PYTHON += \
src/backend/pyloader/Abstract.py \
src/backend/pyloader/Policy.py \
src/backend/pyloader/ScriptAdapter.py
# ############################################################ # ############################################################
# #
# C++ modules -> Python loadable modules # C++ modules -> Python loadable modules
@ -283,7 +292,7 @@ _sgpem_la_LIBADD = src/backend/libbackend.la \
_sgpem_la_SOURCES = $(wrappers) _sgpem_la_SOURCES = $(wrappers)
EXTRA_DIST += $(_sgpem_la_INTERFACES) EXTRA_DIST += $(_sgpem_la_INTERFACES)
MOSTLYCLEANFILES = $(proxies) $(wrappers) MOSTLYCLEANFILES += $(proxies) $(wrappers)
# ############################################################ # ############################################################
# #