[gspell] build: list deps only in the helper Libtool library



commit c1d49bc1b38b31bbe4adbefa806d2657bef242c4
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Dec 22 22:21:30 2016 +0100

    build: list deps only in the helper Libtool library
    
    No need to duplicate the list of dependencies for each
    library/executable. When linking to a *.la file, the dependencies are
    taken from the *.la file as well.

 gspell/Makefile.am    |   10 ++++------
 tests/Makefile.am     |    4 +---
 testsuite/Makefile.am |    3 +--
 3 files changed, 6 insertions(+), 11 deletions(-)
---
diff --git a/gspell/Makefile.am b/gspell/Makefile.am
index 076a9fd..e5b03fc 100644
--- a/gspell/Makefile.am
+++ b/gspell/Makefile.am
@@ -91,6 +91,8 @@ nodist_libgspell_core_la_SOURCES = \
        $(BUILT_SOURCES)
 
 libgspell_core_la_LIBADD =     \
+       $(DEP_LIBS)             \
+       $(GTK_MAC_LIBS)         \
        $(CODE_COVERAGE_LIBS)
 
 libgspell_core_la_CFLAGS =     \
@@ -106,13 +108,9 @@ lib_LTLIBRARIES = libgspell-@GSPELL_API_VERSION@.la
 libgspell_@GSPELL_API_VERSION@_la_SOURCES =
 
 libgspell_@GSPELL_API_VERSION@_la_LIBADD =     \
-       libgspell-core.la                       \
-       $(DEP_LIBS)                             \
-       $(GTK_MAC_LIBS)                         \
-       $(CODE_COVERAGE_LIBS)
+       libgspell-core.la
 
-libgspell_@GSPELL_API_VERSION@_la_CFLAGS =     \
-       $(CODE_COVERAGE_CFLAGS)
+libgspell_@GSPELL_API_VERSION@_la_CFLAGS =
 
 libgspell_@GSPELL_API_VERSION@_la_LDFLAGS =    \
        -version-info $(GSPELL_LT_VERSION)      \
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 7d208f9..c43ac9a 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -6,9 +6,7 @@ AM_CPPFLAGS =                   \
 
 AM_LDFLAGS = $(WARN_LDFLAGS)
 
-LDADD =        $(top_builddir)/gspell/libgspell-@GSPELL_API_VERSION@.la        \
-       $(DEP_LIBS)                                                     \
-       $(GTK_MAC_LIBS)
+LDADD = $(top_builddir)/gspell/libgspell-@GSPELL_API_VERSION@.la
 
 TEST_PROGS =
 
diff --git a/testsuite/Makefile.am b/testsuite/Makefile.am
index 4384baf..5fde22d 100644
--- a/testsuite/Makefile.am
+++ b/testsuite/Makefile.am
@@ -18,8 +18,7 @@ AM_CPPFLAGS =                         \
 
 AM_LDFLAGS = $(WARN_LDFLAGS)
 
-LDADD = $(top_builddir)/gspell/libgspell-core.la       \
-       $(DEP_LIBS)
+LDADD = $(top_builddir)/gspell/libgspell-core.la
 
 UNIT_TEST_PROGS =
 


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