]> www.fi.muni.cz Git - evince.git/commitdiff
Make frontends depend on just libev. Rework and group CFLAGS/LIBS
authorMarco Pesenti Gritti <mpg@redhat.com>
Thu, 7 Jul 2005 12:11:25 +0000 (12:11 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Thu, 7 Jul 2005 12:11:25 +0000 (12:11 +0000)
2005-07-07  Marco Pesenti Gritti  <mpg@redhat.com>

        * Makefile.am:
        * backend/Makefile.am:
        * configure.ac:
        * cut-n-paste/recent-files/Makefile.am:
        * cut-n-paste/toolbar-editor/Makefile.am:
        * cut-n-paste/zoom-control/Makefile.am:
        * lib/Makefile.am:
        * pdf/Makefile.am:
        * pixbuf/Makefile.am:
        * properties/Makefile.am:
        * ps/Makefile.am:
        * shell/Makefile.am:
        * thumbnailer/Makefile.am:
        * tiff/Makefile.am:

        Make frontends depend on just libev.
        Rework and group CFLAGS/LIBS definitions.
        Cleanups.

13 files changed:
ChangeLog
Makefile.am
backend/Makefile.am
configure.ac
cut-n-paste/recent-files/Makefile.am
cut-n-paste/toolbar-editor/Makefile.am
cut-n-paste/zoom-control/Makefile.am
lib/Makefile.am
pdf/Makefile.am
properties/Makefile.am
ps/Makefile.am
thumbnailer/Makefile.am
tiff/Makefile.am

index 1f9dabe4c23eb9c8aa7aebe68f438fd899e25389..06090bc42958937a0b7e54c1c4dc22de29637a95 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,24 @@
+2005-07-07  Marco Pesenti Gritti  <mpg@redhat.com>
+
+       * Makefile.am:
+       * backend/Makefile.am:
+       * configure.ac:
+       * cut-n-paste/recent-files/Makefile.am:
+       * cut-n-paste/toolbar-editor/Makefile.am:
+       * cut-n-paste/zoom-control/Makefile.am:
+       * lib/Makefile.am:
+       * pdf/Makefile.am:
+       * pixbuf/Makefile.am:
+       * properties/Makefile.am:
+       * ps/Makefile.am:
+       * shell/Makefile.am:
+       * thumbnailer/Makefile.am:
+       * tiff/Makefile.am:
+
+       Make frontends depend on just libev.
+       Rework and group CFLAGS/LIBS definitions.
+       Cleanups.
+
 2005-07-07  Marco Pesenti Gritti  <mpg@redhat.com>
 
        * shell/ev-window:
index abf8666c6f1c3fafda18adb1f97247c704d5507c..67de01832b9bfea22150d15c64ad15426bc96f2c 100644 (file)
@@ -1,4 +1,4 @@
-SUBDIRS = lib cut-n-paste po help data
+SUBDIRS = cut-n-paste po help data
 
 # Backends
 
@@ -18,6 +18,10 @@ endif
 
 SUBDIRS += backend
 
+# Library
+
+SUBDIRS += lib
+
 # Properties (library and application)
 
 SUBDIRS += properties
index 391a9debd22420b8546822b2c4c6a1ec80764d94..30318d88e5b569bbf1be69cc8c21719094b48ef7 100644 (file)
@@ -1,5 +1,3 @@
-NULL=
-
 INCLUDES=                                      \
        -DEVINCE_UIDIR=\"$(pkgdatadir)\"        \
        -DGNOMELOCALEDIR=\"$(datadir)/locale\"  \
@@ -11,8 +9,7 @@ INCLUDES=                                      \
        -I$(top_srcdir)/dvi                     \
        $(BACKEND_CFLAGS)                       \
        $(WARN_CFLAGS)                          \
-       $(DISABLE_DEPRECATED)                   \
-       $(NULL)
+       $(DISABLE_DEPRECATED)
 
 noinst_LTLIBRARIES = libevbackend.la
 
@@ -44,31 +41,26 @@ libevbackend_la_SOURCES=                    \
        ev-selection.h                          \
        ev-selection.c                          \
        ev-document-misc.h                      \
-       ev-document-misc.c                      \
-       $(NULL)
+       ev-document-misc.c
 
 libevbackend_la_LIBADD =                               \
        $(top_builddir)/pdf/libpdfdocument.la           \
        $(top_builddir)/pixbuf/libpixbufdocument.la     \
-       $(top_builddir)/ps/libpsdocument.la             \
-       $(NULL)
+       $(top_builddir)/ps/libpsdocument.la
 
 if ENABLE_DJVU
 libevbackend_la_LIBADD +=                      \
-       $(top_builddir)/djvu/libgtkdjvu.la      \
-       $(NULL)
+       $(top_builddir)/djvu/libgtkdjvu.la
 endif
 
 if ENABLE_TIFF
 libevbackend_la_LIBADD +=                      \
-       $(top_builddir)/tiff/libtiffdocument.la \
-       $(NULL)
+       $(top_builddir)/tiff/libtiffdocument.la
 endif
 
 if ENABLE_DVI
 libevbackend_la_LIBADD +=                      \
-       $(top_builddir)/dvi/libgtkdvi.la        \
-       $(NULL)
+       $(top_builddir)/dvi/libgtkdvi.la
 endif
 
 BUILT_SOURCES=                         \
index d333c89fc6ba29cabd4004e0e660f6d2d08baa14..a0459df966007391e8e8ea8e090a921b41b36361 100644 (file)
@@ -34,26 +34,24 @@ AC_SUBST(GETTEXT_PACKAGE)
 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
 
 dnl Check dependencies
+
+# LIB_CFLAGS       for helpers and generic widgets. (lib, cut-and-paste)
+# BACKEND_CFLAGS   for backend implementations.
+# FRONTEND_CFLAGS  for frontend implementations. (properties, thumbnailer)
+# FRONTEND_LIBS
+# SHELL_CFLAGS     for shell implementation.
+# SHELL_LIBS
+
 POPPLER_REQUIRED=0.3.3
 DBUS_GLIB_REQUIRED=0.33
 GTK_REQUIRED=2.6.0
 LIBGNOMEUI_REQUIRED=2.6.0
 
-PKG_CHECK_MODULES(LIB, gtk+-2.0 >= $GTK_REQUIRED libgnome-2.0)
-PKG_CHECK_MODULES(TOOLBAR_EDITOR, gtk+-2.0 >= $GTK_REQUIRED libxml-2.0)
-PKG_CHECK_MODULES(RECENT_FILES, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED)
-PKG_CHECK_MODULES(ZOOM_CONTROL, gtk+-2.0 >= $GTK_REQUIRED)
-
-PKG_CHECK_MODULES(SHELL, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gnome-vfs-2.0 libgnomeprint-2.2 >= 2.5.1 libgnomeprintui-2.2 libglade-2.0 gconf-2.0 poppler-glib >= $POPPLER_REQUIRED)
-PKG_CHECK_MODULES(THUMBNAILER, gtk+-2.0 >= $GTK_REQUIRED gnome-vfs-2.0)
-PKG_CHECK_MODULES(PROPERTIES, gtk+-2.0 >= $GTK_REQUIRED libglade-2.0)
-
+PKG_CHECK_MODULES(LIB, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED)
 PKG_CHECK_MODULES(BACKEND, gtk+-2.0 >= $GTK_REQUIRED)
-PKG_CHECK_MODULES(DVI, gtk+-2.0 >= $GTK_REQUIRED)
-PKG_CHECK_MODULES(PS, gtk+-2.0 >= $GTK_REQUIRED)
-PKG_CHECK_MODULES(PDF, gtk+-2.0 >= $GTK_REQUIRED poppler-glib >= $POPPLER_REQUIRED)
-PKG_CHECK_MODULES(PIXBUF, gtk+-2.0 >= $GTK_REQUIRED)
-PKG_CHECK_MODULES(TIFF, gtk+-2.0 >= $GTK_REQUIRED)
+PKG_CHECK_MODULES(FRONTEND_CORE, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libglade-2.0 poppler-glib >= $POPPLER_REQUIRED)
+PKG_CHECK_MODULES(POPPLER, poppler-glib >= $POPPLER_REQUIRED)
+PKG_CHECK_MODULES(SHELL_CORE, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gnome-vfs-2.0 libgnomeprint-2.2 >= 2.5.1 libgnomeprintui-2.2 libglade-2.0 gconf-2.0 poppler-glib >= $POPPLER_REQUIRED)
 
 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`  
 AC_SUBST(GLIB_GENMARSHAL)
@@ -81,6 +79,16 @@ if test "x$enable_dbus" = "xyes" ; then
        AC_DEFINE_UNQUOTED(DBUS_VERSION, $DBUS_VERSION, [DBUS version.])
 fi
 
+SHELL_CFLAGS="$SHELL_CORE_CFLAGS $DBUS_CFLAGS"
+SHELL_LIBS="$SHELL_CORE_LIBS $DBUS_LIBS -ltiff -lz"
+AC_SUBST(SHELL_CFLAGS)
+AC_SUBST(SHELL_LIBS)
+
+FRONTEND_CFLAGS="$FRONTEND_CORE_CFLAGS"
+FRONTEND_LIBS="$FRONTEND_CORE_LIBS -ltiff -lz"
+AC_SUBST(FRONTEND_CFLAGS)
+AC_SUBST(FRONTEND_LIBS)
+
 AM_CONDITIONAL([ENABLE_DBUS], [test "x$enable_dbus" = "xyes"])
 AM_CONDITIONAL([ENABLE_METADATA], [test "x$enable_dbus" = "xyes"])
 AM_CONDITIONAL([DBUS_TOOL_NO_PREFIX], [test "x$DBUS_VERSION" = "x33"])
index fc00718ca8d4bd0cd8ef21c5573891752202003f..8550d78f216465700e146811d1102fee49240630 100644 (file)
@@ -1,9 +1,6 @@
-NULL =
-
 INCLUDES = \
-       $(RECENT_FILES_CFLAGS) \
-       $(WARN_CFLAGS) \
-       $(NULL)
+       $(LIB_CFLAGS) \
+       $(WARN_CFLAGS)
 
 #      $(DISABLE_DEPRECATED)
 
index c2b86e6119c8395a8be902c4db3a5081dbd800dd..fe172f8cbcb8e78da2f2be342bf1306261c7996d 100644 (file)
@@ -20,14 +20,12 @@ libtoolbareditor_la_SOURCES =       \
        $(EGGSOURCES)           \
        $(EGGHEADERS) 
 
-libtoolbareditor_la_LIBADD = $(TOOLBAR_EDITOR_LIBS)
-
 libtoolbareditor_la_CPPFLAGS = \
        -I$(top_builddir)/lib/egg               \
        $(AM_CPPFLAGS)
 
 libtoolbareditor_la_CFLAGS = \
-       $(TOOLBAR_EDITOR_CFLAGS)                \
+       $(LIB_CFLAGS)                           \
        $(WARN_CFLAGS)                          \
        $(DISABLE_DEPRECATED)                   \
        -DCURSOR_DIR=\"$(pkgdatadir)\"          \
index ec8737fafa1f85b153a8dfa6051e61bd68824014..8b382f9ca2c130247946cf835a9cba6eff5cc20f 100644 (file)
@@ -1,39 +1,15 @@
-noinst_LTLIBRARIES = libephymisc.la libephywidgets.la
+noinst_LTLIBRARIES = libephyzoom.la
 
-libephywidgets_la_SOURCES = \
+libephyzoom_la_SOURCES = \
        ephy-zoom-action.h                      \
        ephy-zoom-action.c                      \
        ephy-zoom-control.c                     \
-       ephy-zoom-control.h
-
-libephywidgets_la_CPPFLAGS = \
-       -I$(top_builddir)/lib           \
-       -I$(top_srcdir)/lib             \
-       -DSHARE_DIR=\"$(pkgdatadir)\"   \
-       $(AM_CPPFLAGS)
-
-libephywidgets_la_CFLAGS = \
-       $(ZOOM_CONTROL_CFLAGS)  \
-       $(WARNING_CFLAGS)       \
-       $(DISABLE_DEPRECATED)   \
-       $(AM_CFLAGS)
-
-libephywidgets_la_LIBADD = \
-       $(ZOOM_CONTROL_LIBS)
-       libephymisc.la
-
-NOINST_H_FILES = \
-       ephy-zoom.h
-
-libephymisc_la_SOURCES = \
+       ephy-zoom-control.h                     \
        ephy-zoom.c                             \
-       $(NOINST_H_FILES)
-
-libephymisc_la_CPPFLAGS = \
-       -I$(top_builddir)/lib                   \
-       -DSHARE_DIR=\"$(pkgdatadir)\"           \
-       $(AM_CPPFLAGS)
+       ephy-zoom.h
 
-libephymisc_la_CFLAGS = \
-        $(ZOOM_CONTROL_CFLAGS) \
-       $(AM_CFLAGS)
+libephyzoom_la_CFLAGS = \
+       -I$(top_srcdir)/lib     \
+       $(LIB_CFLAGS)           \
+       $(WARNING_CFLAGS)       \
+       $(DISABLE_DEPRECATED)
index f425bee3c1a6ff651c2251afb57d774877670119..148ed613a3ade434c32014312a01892132f01d90 100644 (file)
@@ -1,22 +1,17 @@
-NULL=
-
-INCLUDES=                                      \
-       -DEVINCE_UIDIR=\"$(pkgdatadir)\"        \
-       -DGNOMELOCALEDIR=\"$(datadir)/locale\"  \
+INCLUDES =                                     \
        $(LIB_CFLAGS)                           \
        $(WARN_CFLAGS)                          \
-       $(DISABLE_DEPRECATED)                   \
-       $(NULL)
+       $(DISABLE_DEPRECATED)
 
 noinst_LTLIBRARIES = libev.la
 
-libev_la_SOURCES                             \
+libev_la_SOURCES =                             \
        ev-debug.c                              \
        ev-debug.h                              \
        ev-file-helpers.c                       \
        ev-file-helpers.h                       \
        ev-gui.c                                \
-       ev-gui.h                                \
-       $(NULL)
+       ev-gui.h
 
-libev_la_LIBADD = $(LIB_LIBS)
+libev_la_LIBADD =                                      \
+       $(top_builddir)/backend/libevbackend.la
index a2fdea880ac7122539e691f9bee09280895c7ada..bd3522f34e74f777d7f5966f1f900e4bfd4903ee 100644 (file)
@@ -1,15 +1,13 @@
 INCLUDES =                                     \
        -I$(top_srcdir)                         \
        -I$(top_srcdir)/backend                 \
-       $(PDF_CFLAGS)                           \
+       $(BACKEND_CFLAGS)                       \
+       $(POPPLER_CFLAGS)                       \
        $(WARN_CXXFLAGS)                        \
-       $(DISABLE_DEPRECATED)                   \
-       -DDATADIR=\""$(datadir)"\"
+       $(DISABLE_DEPRECATED)
 
 noinst_LTLIBRARIES = libpdfdocument.la
 
 libpdfdocument_la_SOURCES =                    \
        ev-poppler.cc                           \
        ev-poppler.h
-
-libpdfdocument_la_LIBADD = $(PDF_LIBS)
index 5f824aa2770d8285a76a9b7c9e59d6fd0e03aa80..5f9b65d1fcbc7953709910ccff081a2629bfefe8 100644 (file)
@@ -1,23 +1,17 @@
-NULL=
-
 INCLUDES=                                      \
        -DDATADIR=\"$(pkgdatadir)\"             \
        -DGNOMELOCALEDIR=\"$(datadir)/locale\"  \
        -I$(top_srcdir)/backend                 \
-       $(PROPERTIES_CFLAGS)                    \
+       $(FRONTEND_CFLAGS)                      \
        $(NAUTILUS_CFLAGS)                      \
        $(DISABLE_DEPRECATED)                   \
-       $(WARN_CFLAGS)                          \
-       $(NULL)
+       $(WARN_CFLAGS)
 
 noinst_LTLIBRARIES = libevproperties.la
 
 libevproperties_la_SOURCES=                    \
        ev-properties-view.c                    \
-       ev-properties-view.h                    \
-       $(NULL)
-
-libevproperties_la_LIBADD = $(PROPERTIES_LIBS)
+       ev-properties-view.h
 
 if HAVE_NAUTILUS
 EVINCE_PROPERTIES_PAGE = libevince-properties-page.la
@@ -32,8 +26,8 @@ libevince_properties_page_la_CFLAGS = -I$(top_srcdir)
 libevince_properties_page_la_SOURCES =         \
        ev-properties-main.c
 
-libevince_properties_page_la_LIBADD =                  \
-       $(PROPERTIES_LIBS)                              \
-       libevproperties.la                              \
-       $(top_builddir)/backend/libevbackend.la         \
-       $(top_builddir)/lib/libev.la
+libevince_properties_page_la_LIBADD =          \
+       $(FRONTEND_LIBS)                        \
+       $(NAUTILUS_LIBS)                        \
+       $(top_builddir)/lib/libev.la            \
+       libevproperties.la
index df66b4a5196e2cec2957e9a65fcd8b17d56b06a8..a0ba27cbe2d2952116c9ffd643f14cd020da91e1 100644 (file)
@@ -2,8 +2,7 @@ INCLUDES = \
        -I$(top_srcdir)                                         \
        -I$(top_srcdir)/backend                                 \
        -I$(top_srcdir)/lib                                     \
-       -DGNOMEICONDIR=\""${prefix}/${DATADIRNAME}/pixmaps"\"   \
-       $(PS_CFLAGS)                                            \
+       $(BACKEND_CFLAGS)                                       \
        $(WARN_CFLAGS)
 
 #      $(DISABLE_DEPRECATED)
index c98df7a0558a8e6d10531f1475fefcfbcdcde563..04cb71c27b90e0520a7cc9dfe4cefe47ebab19d4 100644 (file)
@@ -1,29 +1,23 @@
 @INTLTOOL_SCHEMAS_RULE@
 
-NULL=
-
 INCLUDES=                                      \
        -DDATADIR=\"$(pkgdatadir)\"             \
        -I$(top_srcdir)/lib                     \
        -I$(top_srcdir)/backend                 \
        -DGNOMELOCALEDIR=\"$(datadir)/locale\"  \
        -DGNOMEICONDIR=\""$(datadir)/pixmaps"\" \
-       $(THUMBNAILER_CFLAGS)                   \
+       $(FRONTEND_CFLAGS)                      \
        $(DISABLE_DEPRECATED)                   \
-       $(WARN_CFLAGS)                          \
-       $(NULL)
+       $(WARN_CFLAGS)
 
 bin_PROGRAMS=evince-thumbnailer
 
 evince_thumbnailer_SOURCES=    \
        evince-thumbnailer.c
-       $(NULL)
 
 evince_thumbnailer_LDADD=                              \
-       $(THUMBNAILER_LIBS)                             \
-       $(top_builddir)/lib/libev.la                    \
-       $(top_builddir)/backend/libevbackend.la         \
-       $(NULL)
+       $(FRONTEND_LIBS)                                \
+       $(top_builddir)/lib/libev.la
 
 pixmapdir = $(pkgdatadir)
 pixmap_DATA = pdf-icon.png
index 8d936ee3ddc98831f4f86f0bf227b3b26a67a4e0..d8652adda036a5aa7b556bcc41c40a6c5aac9d98 100644 (file)
@@ -1,8 +1,7 @@
 INCLUDES =                                                     \
        -I$(top_srcdir)                                         \
        -I$(top_srcdir)/backend                                 \
-       $(TIFF_CFLAGS)                                          \
-       -DDATADIR=\""$(datadir)"\"
+       $(BACKEND_CFLAGS)
 
 noinst_LTLIBRARIES = libtiffdocument.la
 
@@ -11,7 +10,3 @@ libtiffdocument_la_SOURCES =  \
        tiff-document.h         \
        tiff2ps.c               \
        tiff2ps.h
-
-libtiffdocument_la_LIBADD =    \
-       $(TIFF_LIBS)            \
-       -ltiff