Skip to content

Commit

Permalink
build: Don't use INCLUDES
Browse files Browse the repository at this point in the history
It's deprecated. Instead use *_CPPFLAGS.
  • Loading branch information
Christian Persch committed Jul 26, 2013
1 parent fc9b6d1 commit d4216cc
Show file tree
Hide file tree
Showing 23 changed files with 127 additions and 124 deletions.
5 changes: 0 additions & 5 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}

# Set the minimum required Windows version to Windows 2000 (0x0500).
if PLATFORM_WIN32
AM_CPPFLAGS = -D_WIN32_WINNT=0x0500
endif

SUBDIRS = \
cut-n-paste \
data \
Expand Down
22 changes: 12 additions & 10 deletions backend/comics/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
INCLUDES = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEVINCE_COMPILATION \
$(BACKEND_CFLAGS) \
$(LIB_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED)

backend_LTLIBRARIES = libcomicsdocument.la

libcomicsdocument_la_SOURCES = \
comics-document.c \
comics-document.h

libcomicsdocument_la_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEVINCE_COMPILATION \
$(AM_CPPFLAGS)

libcomicsdocument_la_CFLAGS = \
$(BACKEND_CFLAGS) \
$(LIB_CFLAGS) \
$(AM_CFLAGS)

libcomicsdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
libcomicsdocument_la_LIBADD = \
$(top_builddir)/libdocument/libevdocument3.la \
Expand Down
24 changes: 13 additions & 11 deletions backend/djvu/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
INCLUDES = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-DGNOMEICONDIR=\""${prefix}/${DATADIRNAME}/pixmaps"\" \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEVINCE_COMPILATION \
$(BACKEND_CFLAGS) \
$(DJVU_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED)

backend_LTLIBRARIES = libdjvudocument.la

libdjvudocument_la_SOURCES = \
Expand All @@ -20,6 +9,19 @@ libdjvudocument_la_SOURCES = \
djvu-text-page.c \
djvu-text-page.h

libdjvudocument_la_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-DGNOMEICONDIR=\""${prefix}/${DATADIRNAME}/pixmaps"\" \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEVINCE_COMPILATION \
$(AM_CPPFLAGS)

libdjvudocument_la_CFLAGS = \
$(BACKEND_CFLAGS) \
$(DJVU_CFLAGS) \
$(AM_CFLAGS)

libdjvudocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
libdjvudocument_la_LIBADD = \
$(top_builddir)/libdocument/libevdocument3.la \
Expand Down
24 changes: 13 additions & 11 deletions backend/dvi/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
SUBDIRS = mdvi-lib

INCLUDES = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-I$(srcdir)/mdvi-lib \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEVINCE_COMPILATION \
$(WARN_CFLAGS) \
$(BACKEND_CFLAGS) \
$(SPECTRE_CFLAGS) \
$(DISABLE_DEPRECATED)

backend_LTLIBRARIES = libdvidocument.la

libdvidocument_la_SOURCES = \
Expand All @@ -23,6 +12,19 @@ libdvidocument_la_SOURCES = \
fonts.c \
fonts.h

libdvidocument_la_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-I$(srcdir)/mdvi-lib \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEVINCE_COMPILATION \
$(AM_CPPFLAGS)

libdvidocument_la_CFLAGS = \
$(BACKEND_CFLAGS) \
$(SPECTRE_CFLAGS) \
$(AM_CFLAGS)

libdvidocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
libdvidocument_la_LIBADD = \
mdvi-lib/libmdvi.la \
Expand Down
1 change: 0 additions & 1 deletion backend/dvi/mdvi-lib/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
INCLUDES = $(WARN_CFLAGS)
noinst_LTLIBRARIES = libmdvi.la

libmdvi_la_SOURCES = \
Expand Down
22 changes: 12 additions & 10 deletions backend/pdf/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
INCLUDES = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEVINCE_COMPILATION \
$(BACKEND_CFLAGS) \
$(POPPLER_CFLAGS) \
$(WARN_CXXFLAGS) \
$(DISABLE_DEPRECATED)

backend_LTLIBRARIES = libpdfdocument.la

libpdfdocument_la_SOURCES = \
ev-poppler.cc \
ev-poppler.h

libpdfdocument_la_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEVINCE_COMPILATION \
$(AM_CPPFLAGS)

libpdfdocument_la_CXXFLAGS = \
$(BACKEND_CFLAGS) \
$(POPPLER_CFLAGS) \
$(AM_CXXFLAGS)

libpdfdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
libpdfdocument_la_LIBADD = \
$(top_builddir)/libdocument/libevdocument3.la \
Expand Down
22 changes: 12 additions & 10 deletions backend/ps/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
INCLUDES = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEVINCE_COMPILATION \
$(BACKEND_CFLAGS) \
$(SPECTRE_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED)

backend_LTLIBRARIES = libpsdocument.la

libpsdocument_la_SOURCES = \
ev-spectre.c \
ev-spectre.h

libpsdocument_la_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEVINCE_COMPILATION \
$(AM_CPPFLAGS)

libpsdocument_la_CFLAGS = \
$(BACKEND_CFLAGS) \
$(SPECTRE_CFLAGS) \
$(AM_CFLAGS)

libpsdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
libpsdocument_la_LIBADD = \
$(top_builddir)/libdocument/libevdocument3.la \
Expand Down
20 changes: 11 additions & 9 deletions backend/tiff/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
INCLUDES = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEVINCE_COMPILATION \
$(BACKEND_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED)

backend_LTLIBRARIES = libtiffdocument.la

libtiffdocument_la_SOURCES = \
Expand All @@ -15,6 +6,17 @@ libtiffdocument_la_SOURCES = \
tiff2ps.c \
tiff2ps.h

libtiffdocument_la_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEVINCE_COMPILATION \
$(AM_CPPFLAGS)

libtiffdocument_la_CFLAGS = \
$(BACKEND_CFLAGS) \
$(AM_CFLAGS)

libtiffdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
libtiffdocument_la_LIBADD = \
$(top_builddir)/libdocument/libevdocument3.la \
Expand Down
3 changes: 1 addition & 2 deletions backend/xps/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ libxpsdocument_la_CPPFLAGS = \
libxpsdocument_la_CFLAGS = \
$(BACKEND_CFLAGS) \
$(GXPS_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED)
$(AM_CFLAGS)

libxpsdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
libxpsdocument_la_LIBADD = \
Expand Down
4 changes: 3 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ if test "$with_platform" = "win32"; then
;;
esac
AC_MSG_RESULT([$os_win32])

AM_CFLAGS="$AM_CFLAGS -D_WIN32_WINNT=0x0500"
fi

AM_CONDITIONAL([PLATFORM_WIN32],[test "$with_platform" = "win32"])
Expand Down Expand Up @@ -316,7 +318,7 @@ AC_ARG_ENABLE([dbus],
if test "$enable_dbus" = "yes"; then
AC_DEFINE([ENABLE_DBUS],[1],[Define if DBUS support is enabled])

PKG_CHECK_MODULES([EV_DAEMON], [gio-2.0 >= $GLIB_REQUIRED])
PKG_CHECK_MODULES([EV_DAEMON], [gio-2.0 >= $GLIB_REQUIRED gio-unix-2.0])
fi

AM_CONDITIONAL([ENABLE_DBUS], [test "$enable_dbus" = "yes"])
Expand Down
3 changes: 1 addition & 2 deletions cut-n-paste/gimpcellrenderertoggle/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ libgimpcellrenderertoggle_la_sources = \

libgimpcellrenderertoggle_la_CFLAGS = \
$(SHELL_CORE_CFLAGS) \
$(WARNING_CFLAGS) \
$(DISABLE_DEPRECATED)
$(AM_CFLAGS)

libgimpcellrenderertoggle_la_built_sources = \
gimpwidgetsmarshal.h \
Expand Down
2 changes: 0 additions & 2 deletions cut-n-paste/smclient/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ libsmclient_la_SOURCES = \

libsmclient_la_CPPFLAGS = \
-DG_LOG_DOMAIN=\""EggSMClient"\" \
$(DISABLE_DEPRECATED) \
$(AM_CPPFLAGS)

libsmclient_la_CFLAGS = \
$(SMCLIENT_CFLAGS) \
$(WARNING_CFLAGS) \
$(AM_CFLAGS)

libsmclient_la_LIBADD = \
Expand Down
3 changes: 1 addition & 2 deletions cut-n-paste/synctex/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ libsynctex_la_SOURCES = \

libsynctex_la_CFLAGS = \
$(SHELL_CORE_CFLAGS) \
$(WARNING_CFLAGS) \
$(DISABLE_DEPRECATED)
$(AM_CFLAGS)

-include $(top_srcdir)/git.mk
4 changes: 1 addition & 3 deletions help/reference/libdocument/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ GTKDOC_CFLAGS = \
-DEV_BACKENDSDIR=\"$(backenddir)\" \
-DEVINCE_COMPILATION \
$(AM_CFLAGS) \
$(LIBDOCUMENT_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED)
$(LIBDOCUMENT_CFLAGS)

GTKDOC_LIBS = \
$(top_builddir)/libdocument/libevdocument3.la \
Expand Down
4 changes: 1 addition & 3 deletions help/reference/libview/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ GTKDOC_CFLAGS = \
-DEV_BACKENDSDIR=\"$(backenddir)\" \
-DEVINCE_COMPILATION \
$(AM_CFLAGS) \
$(LIBVIEW_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED)
$(LIBVIEW_CFLAGS)

GTKDOC_LIBS = \
$(top_builddir)/libdocument/libevdocument3.la \
Expand Down
2 changes: 0 additions & 2 deletions help/reference/shell/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ GTKDOC_CFLAGS = \
-DGNOMEICONDIR=\""$(datadir)/pixmaps"\" \
-DEVINCE_COMPILATION \
$(SHELL_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED) \
$(GTK_PRINT_CFLAGS)

FILTER_OUT = \
Expand Down
2 changes: 0 additions & 2 deletions libdocument/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ libevdocument3_la_CPPFLAGS = \
libevdocument3_la_CFLAGS = \
$(LIBDOCUMENT_CFLAGS) \
-I$(top_srcdir)/cut-n-paste/synctex \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED) \
$(AM_CFLAGS)

libevdocument3_la_LDFLAGS = \
Expand Down
4 changes: 1 addition & 3 deletions libmisc/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ libevmisc_la_CFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-I$(top_srcdir)/libview \
$(SHELL_CORE_CFLAGS) \
$(WARNING_CFLAGS) \
$(DISABLE_DEPRECATED)
$(SHELL_CORE_CFLAGS)

libevmisc_la_LIBADD = \
$(top_builddir)/libdocument/libevdocument3.la \
Expand Down
2 changes: 0 additions & 2 deletions libview/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ libevview3_la_CPPFLAGS = \

libevview3_la_CFLAGS = \
$(LIBVIEW_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED) \
$(AM_CFLAGS)

libevview3_la_LDFLAGS = \
Expand Down
2 changes: 0 additions & 2 deletions previewer/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ evince_previewer_CPPFLAGS = \

evince_previewer_CFLAGS = \
$(PREVIEWER_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED) \
$(AM_CFLAGS)

evince_previewer_LDFLAGS = $(AM_LDFLAGS)
Expand Down
28 changes: 19 additions & 9 deletions properties/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,26 +1,36 @@
INCLUDES= \
-I$(top_srcdir) \
-I$(top_builddir) \
$(FRONTEND_CFLAGS) \
$(NAUTILUS_CFLAGS) \
$(DISABLE_DEPRECATED) \
$(WARN_CFLAGS)

noinst_LTLIBRARIES = libevproperties.la

libevproperties_la_SOURCES= \
ev-properties-view.c \
ev-properties-view.h

libevproperties_la_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir) \
$(AM_CPPFLAGS)

libevproperties_la_CFLAGS = \
$(FRONTEND_CFLAGS) \
$(AM_CFLAGS)

if ENABLE_NAUTILUS

nautilusextensiondir=$(libdir)/$(NAUTILUS_EXTENSION_DIR)
nautilusextension_LTLIBRARIES = libevince-properties-page.la

libevince_properties_page_la_CFLAGS = -I$(top_srcdir)
libevince_properties_page_la_SOURCES = \
ev-properties-main.c

libevince_properties_page_la_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir) \
$(AM_CPPFLAGS)

libevince_properties_page_la_CFLAGS = \
$(FRONTEND_CFLAGS) \
$(NAUTILUS_CFLAGS) \
$(AM_CFLAGS)

libevince_properties_page_la_LIBADD = \
libevproperties.la \
$(top_builddir)/libdocument/libevdocument3.la \
Expand Down
Loading

0 comments on commit d4216cc

Please sign in to comment.