Replace deprecated INCLUDES with AM_CPPFLAGS; where needed, still
authorColin Leroy <colin@colino.net>
Fri, 25 Apr 2014 08:15:28 +0000 (10:15 +0200)
committerColin Leroy <colin@colino.net>
Fri, 25 Apr 2014 08:15:28 +0000 (10:15 +0200)
keep the -I flags separated in $(IFLAGS) for $(LTRCCOMPILE).

35 files changed:
src/Makefile.am
src/common/Makefile.am
src/etpan/Makefile.am
src/plugins/acpi_notifier/Makefile.am
src/plugins/address_keeper/Makefile.am
src/plugins/archive/Makefile.am
src/plugins/att_remover/Makefile.am
src/plugins/attachwarner/Makefile.am
src/plugins/bogofilter/Makefile.am
src/plugins/bsfilter/Makefile.am
src/plugins/clamd/Makefile.am
src/plugins/clamd/libclamd/Makefile.am
src/plugins/demo/Makefile.am
src/plugins/fancy/Makefile.am
src/plugins/fetchinfo/Makefile.am
src/plugins/gdata/Makefile.am
src/plugins/geolocation/Makefile.am
src/plugins/libravatar/Makefile.am
src/plugins/mailmbox/Makefile.am
src/plugins/newmail/Makefile.am
src/plugins/notification/Makefile.am
src/plugins/notification/gtkhotkey/Makefile.am
src/plugins/pdf_viewer/Makefile.am
src/plugins/perl/Makefile.am
src/plugins/pgpcore/Makefile.am
src/plugins/pgpinline/Makefile.am
src/plugins/pgpmime/Makefile.am
src/plugins/python/Makefile.am
src/plugins/rssyl/Makefile.am
src/plugins/smime/Makefile.am
src/plugins/spam_report/Makefile.am
src/plugins/spamassassin/Makefile.am
src/plugins/tnef_parse/Makefile.am
src/plugins/vcalendar/Makefile.am
src/plugins/vcalendar/libical/libical/Makefile.am

index 375d561923260ee19e4c402b4fe3bdde650eb0f8..dd7eea047777c659e96d70ddd8762b34fddbf274 100644 (file)
@@ -16,7 +16,7 @@ install-exec-hook:
 
 if PLATFORM_WIN32
 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
-     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+     `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
 
 %.o : %.rc
@@ -529,7 +529,7 @@ EXTRA_DIST = \
        $(abook_extra)
 
 
-INCLUDES = \
+IFLAGS = \
        -I$(srcdir)/common \
        -Icommon \
        -I$(srcdir)/gtk \
@@ -578,6 +578,7 @@ AM_CPPFLAGS = \
        -DTARGET_ALIAS=\""$(target_triplet)"\" \
        -DSYSCONFDIR=\""$(sysconfdir)"\" \
        -DDATAROOTDIR=\""$(datarootdir)"\" \
+       $(IFLAGS) \
        $(ENCHANT_CFLAGS) \
        $(GTK_CFLAGS) \
        $(GPGME_CFLAGS) \
index 1f3bdfb1be8f43033d1d63b24e72e8868f456c28..36d17d683d8faf5e2b96329fe8f2af206a45225f 100644 (file)
@@ -70,10 +70,8 @@ clawscommoninclude_HEADERS = $(arch_headers) \
        xml.h \
        xmlprops.h
 
-INCLUDES = \
-       -I$(top_srcdir)/intl
-
 AM_CPPFLAGS = \
+       -I$(top_srcdir)/intl \
        $(GLIB_CFLAGS) \
        $(VALGRIND_CFLAGS) \
        -DLOCALEDIR=\""$(localedir)"\" \
index eb343b24a4a77d9a2ca8cb118e2cfe707fca9a0b..100df435b56c2aa765af43765ee451e6089b6e67 100644 (file)
@@ -17,12 +17,10 @@ clawsetpaninclude_HEADERS = \
        nntp-thread.h \
        etpan-ssl.h
 
-INCLUDES = \
+AM_CPPFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/common \
-       -I$(top_srcdir)/src/gtk
-
-AM_CPPFLAGS = \
+       -I$(top_srcdir)/src/gtk \
        $(GTK_CFLAGS) \
        $(LIBETPAN_CFLAGS) \
        $(ENCHANT_CFLAGS)
index df1d5df410875fb0ad6b01fbd187f06ea60bc3e0..0718451f14476a2ab3be148d02f3e4daa48a2d56 100644 (file)
@@ -13,12 +13,11 @@ acpi_notifier_la_LDFLAGS = \
 acpi_notifier_la_LIBADD = \
        $(GTK_LIBS)
 
-INCLUDES = \
+
+acpi_notifier_la_CPPFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/common \
        -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
-
-AM_CPPFLAGS = \
+       -I$(top_srcdir)/src/gtk \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS)
index 48acae0ec51bb3fcd8139dd2d5966a68bd2cc461..a63531c393a770a44513886cec428a1df09eda9e 100644 (file)
@@ -1,9 +1,15 @@
 EXTRA_DIST = claws.def plugin.def version.rc
 
+IFLAGS = \
+       -I$(top_srcdir)/src \
+       -I$(top_srcdir)/src/common \
+       -I$(top_builddir)/src/common \
+       -I$(top_srcdir)/src/gtk
+
 if OS_WIN32
 
 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
-     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+     `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
 
 %.lo : %.rc
@@ -57,13 +63,8 @@ address_keeper_la_DEPENDENCIES = $(plugin_deps)
 address_keeper_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
        $(GTK_LIBS)
 
-INCLUDES = \
-       -I$(top_srcdir)/src \
-       -I$(top_srcdir)/src/common \
-       -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
-
-AM_CPPFLAGS = \
+address_keeper_la_CPPFLAGS = \
+       $(IFLAGS) \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS)
 
index ff8cfb7593a662e61c50d22cb87ab0245f5014e1..daf787e889a3b5be4ade4c490e52081f42c5b33f 100644 (file)
@@ -24,12 +24,11 @@ archive_la_LDFLAGS = \
 archive_la_LIBADD = \
                @ARCHIVE_LIBS@
 
-INCLUDES = \
+
+archive_la_CPPFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/common \
        -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
-
-AM_CPPFLAGS = \
-               $(GLIB_CFLAGS) \
-               $(GTK_CFLAGS)
+       -I$(top_srcdir)/src/gtk \
+       $(GLIB_CFLAGS) \
+       $(GTK_CFLAGS)
index 1ffecd8fd8b6bba3f9f676f3f32b9674182339e5..c2bc67a76f2652fbc0ce338effe9041f97b882d9 100644 (file)
@@ -1,9 +1,15 @@
 EXTRA_DIST = claws.def plugin.def version.rc
 
+IFLAGS = \
+       -I$(top_srcdir)/src \
+       -I$(top_srcdir)/src/common \
+       -I$(top_builddir)/src/common \
+       -I$(top_srcdir)/src/gtk
+
 if OS_WIN32
 
 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
-     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+     `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
 
 %.lo : %.rc
@@ -60,12 +66,7 @@ att_remover_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
 
 att_remover_la_DEPENDENCIES = $(plugin_deps)
 
-AM_CPPFLAGS = \
+att_remover_la_CPPFLAGS = \
+       $(IFLAGS) \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS)
-
-INCLUDES = \
-       -I$(top_srcdir)/src \
-       -I$(top_srcdir)/src/common \
-       -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
index d40ebc47e09a49959f26e883da4722742a7e56b9..62b72650c64d6236f4833ee6ee5ad5ea2d61d6a4 100644 (file)
@@ -1,9 +1,15 @@
 EXTRA_DIST = claws.def plugin.def version.rc
 
+IFLAGS = \
+       -I$(top_srcdir)/src \
+       -I$(top_srcdir)/src/common \
+       -I$(top_builddir)/src/common \
+       -I$(top_srcdir)/src/gtk
+
 if OS_WIN32
 
 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
-     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+     `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
 
 %.lo : %.rc
@@ -57,13 +63,8 @@ attachwarner_la_DEPENDENCIES = $(plugin_deps)
 attachwarner_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
        $(GTK_LIBS)
 
-INCLUDES = \
-       -I$(top_srcdir)/src \
-       -I$(top_srcdir)/src/common \
-       -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
-
-AM_CPPFLAGS = \
+attachwarner_la_CPPFLAGS = \
+       $(IFLAGS) \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS)
 
index 7aaa09b13b0588b63ca3d3d2940d184d7ee396c4..45986a4df1ffb8636d3c9b50ad4fa00ac95a3509 100644 (file)
@@ -19,13 +19,11 @@ endif
 bogofilter_la_LIBADD = $(cygwin_export_lib) \
        $(GTK_LIBS)
 
-INCLUDES = \
+bogofilter_la_CPPFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/common \
        -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
-
-AM_CPPFLAGS = \
+       -I$(top_srcdir)/src/gtk \
        $(ENCHANT_CFLAGS) \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS)
index f919b0599be836abf176b2285df9ed2bec564f1d..d30e3643141cd6c29925f15c804b75c61c1e8301 100644 (file)
@@ -1,9 +1,15 @@
 EXTRA_DIST = claws.def plugin.def version.rc
 
+IFLAGS = \
+       -I$(top_srcdir)/src \
+       -I$(top_srcdir)/src/common \
+       -I$(top_builddir)/src/common \
+       -I$(top_srcdir)/src/gtk
+
 if OS_WIN32
 
 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
-     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+     `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
 
 %.lo : %.rc
@@ -57,13 +63,14 @@ bsfilter_la_DEPENDENCIES = $(plugin_deps)
 bsfilter_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
        $(GTK_LIBS) $(PTHREAD_LIBS) 
 
-INCLUDES = \
+IFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/common \
        -I$(top_builddir)/src/common \
        -I$(top_srcdir)/src/gtk
 
-AM_CPPFLAGS = \
+bsfilter_la_CPPFLAGS = \
+       $(IFLAGS) \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS)
 
index 9ff0438c95617abecd5d045716ff0ec09311cc36..5d75965369f8061181550d12f7cb46dc977147e2 100644 (file)
@@ -18,13 +18,11 @@ clamd_la_LDFLAGS = \
 clamd_la_LIBADD = \
        -lclamd-plugin
 
-INCLUDES = \
+clamd_la_CPPFLAGS = \
        -I$(top_srcdir)/src/plugins/clamd/libclamd \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/common \
        -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
-
-AM_CPPFLAGS = \
+       -I$(top_srcdir)/src/gtk \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS)
index f984c56eec54422681ed9398a6de0e7be1956da9..3ae5f31d428fd04d465d9ea81fb2630aff182112 100644 (file)
@@ -1,22 +1,23 @@
-INCLUDES = @GLIB_CFLAGS@ \
-                       @GTK_CFLAGS@ \
-                       -I$(top_srcdir) \
-                       -I$(top_builddir) \
-                       $(CLAWS_MAIL_CFLAGS) \
-               -I$(top_srcdir)/src \
-               -I$(top_srcdir)/src/common \
-               -I$(top_srcdir)/src/gtk
+libclamd_plugin_la_CPPFLAGS = \
+       $(GLIB_CFLAGS) \
+       $(GTK_CFLAGS) \
+       $(CLAWS_MAIL_CFLAGS) \
+       -I$(top_srcdir) \
+       -I$(top_builddir) \
+        -I$(top_srcdir)/src \
+        -I$(top_srcdir)/src/common \
+        -I$(top_srcdir)/src/gtk
 
 if BUILD_CLAMD_PLUGIN
 noinst_LTLIBRARIES = libclamd-plugin.la
 endif
 
 libclamd_plugin_la_SOURCES = \
-                     clamd-plugin.h \
-                     clamd-plugin.c
+      clamd-plugin.h \
+      clamd-plugin.c
 
 noinst_HEADERS = clamd-plugin.h
 
 libclamd_plugin_la_LIBADD = \
-                               @GLIB_LIBS@ \
-                               @GTK_LIBS@
+       @GLIB_LIBS@ \
+       @GTK_LIBS@
index 73552e12595eb9f98fd2cabaa387e52790230451..91806bb0d20dfcfa359114a4105b055701c5f438 100644 (file)
@@ -18,10 +18,9 @@ endif
 
 demo_la_LIBADD = $(cygwin_export_lib) \
        $(GTK_LIBS) 
-INCLUDES = \
+
+demo_la_CPPFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/common 
-
-AM_CPPFLAGS = \
+       -I$(top_srcdir)/src/common \
        $(GLIB_CFLAGS)
index 986ee243f50bf1d833c45035ae7184c5a3cec262..2b7b9f1145fcedfa6eb7651cfafd2958c30b934f 100644 (file)
@@ -1,9 +1,15 @@
 EXTRA_DIST = claws.def plugin.def version.rc
 
+IFLAGS = \
+       -I$(top_srcdir)/src \
+       -I$(top_srcdir)/src/common \
+       -I$(top_builddir)/src/common \
+       -I$(top_srcdir)/src/gtk
+
 if OS_WIN32
 
 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
-     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+     `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
 
 %.lo : %.rc
@@ -66,13 +72,14 @@ fancy_la_LDFLAGS = \
        $(LIBSOUP_GNOME_LIBS) \
        $(CURL_LIBS)
 
-INCLUDES = \
+IFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/common \
        -I$(top_builddir)/src/common \
        -I$(top_srcdir)/src/gtk
 
-AM_CPPFLAGS = \
+fancy_la_CPPFLAGS = \
+       $(IFLAGS) \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS) \
        $(WEBKIT_CFLAGS) \
index c606743a65babb4982f63fcfb06c98f5e439aa6e..3e0430e9c816a44d9d2c24d178ff72233141e12c 100644 (file)
@@ -1,7 +1,7 @@
 if OS_WIN32
 
 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
-     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+     `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
 
 %.lo : %.rc
@@ -59,15 +59,16 @@ fetchinfo_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
 
 fetchinfo_la_DEPENDENCIES = $(plugin_deps)
 
-AM_CPPFLAGS = \
-       $(CLAWS_MAIL_CFLAGS) \
-       $(GLIB_CFLAGS) \
-       $(GTK_CFLAGS)
-
-INCLUDES = \
+IFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/common \
        -I$(top_builddir)/src/common \
        -I$(top_srcdir)/src/gtk
 
+fetchinfo_la_CPPFLAGS = \
+       $(IFLAGS) \
+       $(CLAWS_MAIL_CFLAGS) \
+       $(GLIB_CFLAGS) \
+       $(GTK_CFLAGS)
+
 EXTRA_DIST = claws.def plugin.def version.rc
index a55dd059eb677512805eeffccfc86ad7f6398063..cdecfec4bf645cd3032804009390c4bcc0754ca2 100644 (file)
@@ -17,14 +17,11 @@ gdata_la_LDFLAGS = \
        $(GTK_LIBS) \
        $(GDATA_LIBS)
 
-
-INCLUDES = \
+gdata_la_CPPFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/common \
        -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
-
-AM_CPPFLAGS = \
+       -I$(top_srcdir)/src/gtk \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS) \
        $(GDATA_CFLAGS)
index f3b98abc20ed96c5fe705647fca760053664f7f4..e15be4829dbe278c07e1c1c33906ea80f5742ab3 100644 (file)
@@ -14,14 +14,11 @@ geolocation_la_LDFLAGS = \
        $(LIBSOUP_LIBS) \
        $(CHAMPLAIN_LIBS)
 
-
-INCLUDES = \
+geolocation_la_CPPFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/common \
        -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
-
-AM_CPPFLAGS = \
+       -I$(top_srcdir)/src/gtk \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS) \
        $(LIBSOUP_CFLAGS) \
index 752c81c67fe7cf64079f675a9c187aba91973399..8d8d4db61b174645a05cc093eaabc127cfa19321 100644 (file)
@@ -1,9 +1,15 @@
 EXTRA_DIST = claws.def plugin.def version.rc
 
+IFLAGS = \
+       -I$(top_srcdir)/src \
+       -I$(top_srcdir)/src/common \
+       -I$(top_builddir)/src/common \
+       -I$(top_srcdir)/src/gtk
+
 if OS_WIN32
 
 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
-     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+     `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
 
 %.lo : %.rc
@@ -58,13 +64,8 @@ libravatar_la_DEPENDENCIES = $(plugin_deps)
 libravatar_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
        $(GTK_LIBS)
 
-INCLUDES = \
-       -I$(top_srcdir)/src \
-       -I$(top_srcdir)/src/common \
-       -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
-
-AM_CPPFLAGS = \
+libravatar_la_CPPFLAGS = \
+       $(IFLAGS) \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS) \
        $(CURL_CFLAGS)
index 4fcaa58763f2414c69b2c101db6d2904d70eee4c..e586a58071a2c451228803508e6764cab2bd1c8d 100644 (file)
@@ -1,9 +1,15 @@
 EXTRA_DIST = claws.def plugin.def version.rc
 
+IFLAGS = \
+       -I$(top_srcdir)/src \
+       -I$(top_srcdir)/src/common \
+       -I$(top_builddir)/src/common \
+       -I$(top_srcdir)/src/gtk
+
 if OS_WIN32
 
 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
-     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+     `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
 
 %.lo : %.rc
@@ -73,15 +79,6 @@ mailmbox_la_LIBADD = \
        $(GTK_LIBS)
 
 mailmbox_la_CPPFLAGS = \
+       $(IFLAGS) \
        $(GLIB_CFLAGS) \
-       $(GTK_CFLAGS)
-
-AM_CPPFLAGS = \
-       $(GLIB_CFLAGS) \
-       $(GTK_CFLAGS)
-
-INCLUDES = \
-       -I$(top_srcdir)/src \
-       -I$(top_srcdir)/src/common \
-       -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
+       $(GTK_CFLAGS)
\ No newline at end of file
index 734966b41d2d3631ed56c4f2ece7369700c85ecc..fd85453450cdddcf1a8621e5fa52fe6205b032c2 100644 (file)
@@ -10,12 +10,10 @@ newmail_la_SOURCES = \
 newmail_la_LDFLAGS = \
        -avoid-version -module
 
-AM_CPPFLAGS = \
-        $(GLIB_CFLAGS) \
-       $(GTK_CFLAGS)
-
-INCLUDES = \
+newmail_la_CPPFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/common \
        -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
+       -I$(top_srcdir)/src/gtk \
+        $(GLIB_CFLAGS) \
+       $(GTK_CFLAGS)
index 7808661a456d90d62435146f91d6c103171fc1a7..9b33429a747f49828f7773e8ff9f6f8e573b5024 100644 (file)
@@ -10,10 +10,17 @@ SUBDIRS=gtkhotkey
 EXTRA_DIST = claws.def plugin.def version.rc
 CFLAGS += "-Wall"
 
+IFLAGS = \
+       -I$(top_srcdir)/src/plugins/notification/gtkhotkey \
+       -I$(top_srcdir)/src \
+       -I$(top_srcdir)/src/common \
+       -I$(top_builddir)/src/common \
+       -I$(top_srcdir)/src/gtk
+
 if OS_WIN32
 
 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
-     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+     `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
 
 %.lo : %.rc
@@ -79,14 +86,6 @@ notification_la_LDFLAGS = \
 notification_la_DEPENDENCIES = $(plugin_deps) \
        $(hotkey_lib_path)
 
-INCLUDES = \
-       -I$(top_srcdir)/src/plugins/notification/gtkhotkey \
-       -I$(top_srcdir)/src \
-       -I$(top_srcdir)/src/common \
-       -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
-
-
 notification_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
         $(GTK_LIBS)  \
        $(libnotify_LIBS) \
@@ -95,6 +94,7 @@ notification_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
        $(hotkey_lib_path)
 
 notification_la_CPPFLAGS = \
+       $(IFLAGS) \
        $(NOTIFY_CFLAGS) \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS) \
index f6c930df1165224376098cb8281fc2776ae94766..b56fbde4c4511887acb850b73bdfe3ab80ccdd44 100644 (file)
@@ -32,7 +32,7 @@ libcmnpgtkhotkey_la_LIBADD = \
        $(GTK_LIBS) \
        $(CM_NP_HOTKEY_LIBS)
 
-AM_CPPFLAGS = \
+libcmnpgtkhotkey_la_CPPFLAGS = \
        -DGTK_HOTKEY_COMPILATION \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS) \
index 46c4e5d2c9ebe2a2d2f5ba8caca941f4b180ac43..a4beb8242fb7fde675c97b782869bcf5dc95ac71 100644 (file)
@@ -13,13 +13,11 @@ pdf_viewer_la_LDFLAGS = \
        $(GTK_LIBS) \
        $(POPPLER_LIBS)
 
-INCLUDES = \
+pdf_viewer_la_CPPFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/common \
        -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
-
-AM_CPPFLAGS = \
+       -I$(top_srcdir)/src/gtk \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS) \
        $(POPPLER_CFLAGS)
\ No newline at end of file
index 6fd4ba541a676e4fe54c5387da8b9724b31ba34d..b696d50aac846c88a532127528dd044f46a12c56 100644 (file)
@@ -17,16 +17,14 @@ perl_la_LIBADD = \
        $(PERL_LDFLAGS) \
        $(GTK_LIBS)
 
-AM_CPPFLAGS = \
-       $(GLIB_CFLAGS) \
-       $(GTK_CFLAGS) \
-       $(PERL_CFLAGS)
-
-INCLUDES = \
+perl_la_CPPFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/common \
        -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
+       -I$(top_srcdir)/src/gtk \
+       $(GLIB_CFLAGS) \
+       $(GTK_CFLAGS) \
+       $(PERL_CFLAGS)
 
 EXTRA_DIST = cm_perl.pod
 
index 31568ae795dd6c48e1983e72e6623e67a7eaca17..5b572f63318b27c147898a74c7c362597a96d91e 100644 (file)
@@ -1,9 +1,15 @@
 EXTRA_DIST = version.rc plugin.def claws.def
 
+IFLAGS = \
+       -I$(top_srcdir)/src \
+       -I$(top_srcdir)/src/common \
+       -I$(top_builddir)/src/common \
+       -I$(top_srcdir)/src/gtk
+
 if OS_WIN32
 
 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
-     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+     `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
 
 %.lo : %.rc
@@ -76,13 +82,8 @@ pgpcore_la_LIBADD = $(cygwin_export_lib) $(plugin_ldadd) \
        $(GPGME_LIBS) \
        $(ENCHANT_LIBS)
 
-INCLUDES = \
-       -I$(top_srcdir)/src \
-       -I$(top_srcdir)/src/common \
-       -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
-
-AM_CPPFLAGS = \
+pgpcore_la_CPPFLAGS = \
+       $(IFLAGS) \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS) \
        $(GPGME_CFLAGS) \
index 810c1a69f17ab301e18dd3061fb809616b44d555..bd67cf4816ada7810666e95aa19599dab38abbfe 100644 (file)
@@ -1,10 +1,15 @@
 EXTRA_DIST = version.rc plugin.def claws.def mypgpcore.def pgpinline.deps
 
+IFLAGS = \
+       -I$(top_srcdir)/src \
+       -I$(top_srcdir)/src/common \
+       -I$(top_builddir)/src/common \
+       -I$(top_srcdir)/src/gtk
 
 if OS_WIN32
 
 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
-     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+     `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
 
 %.lo : %.rc
@@ -70,13 +75,8 @@ pgpinline_la_LIBADD = $(plugin_ldadd) $(pgpcore_lib) $(cygwin_export_lib) \
         $(GTK_LIBS)  \
        $(GPGME_LIBS)
 
-INCLUDES = \
-       -I$(top_srcdir)/src \
-       -I$(top_srcdir)/src/common \
-       -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
-
-AM_CPPFLAGS = \
+pgpinline_la_CPPFLAGS = \
+       $(IFLAGS) \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS) \
        $(GPGME_CFLAGS) \
index 999e4e6bde420f1f5ddb9460f678ff2ab6159393..43f9a47a47bc7af50ea29aa49918a553d76d0906 100644 (file)
@@ -1,9 +1,15 @@
 EXTRA_DIST = version.rc plugin.def claws.def mypgpcore.def pgpmime.deps
 
+IFLAGS = \
+       -I$(top_srcdir)/src \
+       -I$(top_srcdir)/src/common \
+       -I$(top_builddir)/src/common \
+       -I$(top_srcdir)/src/gtk
+
 if OS_WIN32
 
 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
-     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+     `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
 
 %.lo : %.rc
@@ -69,13 +75,8 @@ pgpmime_la_LIBADD = $(plugin_ldadd) $(pgpcore_lib) $(cygwin_export_lib) \
        $(GPGME_LIBS) \
        $(ENCHANT_LIBS)
 
-INCLUDES = \
-       -I$(top_srcdir)/src \
-       -I$(top_srcdir)/src/common \
-       -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
-
-AM_CPPFLAGS = \
+pgpmime_la_CPPFLAGS = \
+       $(IFLAGS) \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS) \
        $(GPGME_CFLAGS) \
index dcade0b485fc9cbb4322427c26a0eaa2519fd995..d969ca3ad60410164b61011f1b77b336450cd883 100644 (file)
@@ -36,13 +36,12 @@ python_la_LDFLAGS = \
        $(PYGTK_LIBS) \
        $(PYTHON_LIBS)
 
-INCLUDES = \
+
+python_la_CPPFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/common \
        -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
-
-AM_CPPFLAGS = \
+       -I$(top_srcdir)/src/gtk \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS) \
        $(PYTHON_CFLAGS) \
index 50605c31a4d5f2cabf106aad2ff52b14984d0f5f..ff93d121734d942ed86ff843c7f174f153cefe75 100644 (file)
@@ -1,9 +1,15 @@
 EXTRA_DIST = claws.def plugin.def version.rc
 
+IFLAGS = \
+       -I$(top_srcdir)/src \
+       -I$(top_srcdir)/src/common \
+       -I$(top_builddir)/src/common \
+       -I$(top_srcdir)/src/gtk
+
 if OS_WIN32
 
 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
-     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+     `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
 
 %.lo : %.rc
@@ -47,12 +53,6 @@ if BUILD_RSSYL_PLUGIN
 plugin_LTLIBRARIES = rssyl.la
 endif
 
-INCLUDES= \
-       -I$(top_srcdir)/src \
-       -I$(top_srcdir)/src/common \
-       -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
-
 rssyl_la_LDFLAGS = \
        $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
        -avoid-version -module \
@@ -63,7 +63,8 @@ rssyl_la_DEPENDENCIES = $(plugin_deps)
 rssyl_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
        $(GTK_LIBS) $(LIBXML_LIBS) $(CURL_LIBS)
 
-AM_CPPFLAGS = \
+rssyl_la_CPPFLAGS = \
+       $(IFLAGS) \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS) \
        $(LIBXML_CFLAGS) \
index 9b34c3b992ec06313a39f53608434f4afa0be9a7..0b843d61b5c7f756f20c70b395abd8430527a4df 100644 (file)
@@ -1,10 +1,15 @@
 EXTRA_DIST = version.rc plugin.def claws.def mypgpcore.def smime.deps
 
+IFLAGS = \
+       -I$(top_srcdir)/src \
+       -I$(top_srcdir)/src/common \
+       -I$(top_builddir)/src/common \
+       -I$(top_srcdir)/src/gtk
 
 if OS_WIN32
 
 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
-     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+     `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
 
 %.lo : %.rc
@@ -71,13 +76,8 @@ smime_la_LIBADD = $(plugin_ldadd) $(pgpcore_lib) $(cygwin_export_lib) \
        $(GPGME_LIBS) \
        $(ENCHANT_LIBS)
 
-INCLUDES = \
-       -I$(top_srcdir)/src \
-       -I$(top_srcdir)/src/common \
-       -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
-
-AM_CPPFLAGS = \
+smime_la_CPPFLAGS = \
+       $(IFLAGS) \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS) \
        $(GPGME_CFLAGS) \
index 21f39940841ede17ae79f0b0e04c2e8ab78bde56..585fe4b33dd18bd0505dd65738c6796726eb5c9e 100644 (file)
@@ -1,9 +1,15 @@
 EXTRA_DIST = claws.def plugin.def version.rc
 
+IFLAGS = \
+       -I$(top_srcdir)/src \
+       -I$(top_srcdir)/src/common \
+       -I$(top_builddir)/src/common \
+       -I$(top_srcdir)/src/gtk
+
 if OS_WIN32
 
 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
-     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+     `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
 
 %.lo : %.rc
@@ -63,13 +69,14 @@ spamreport_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
 
 spamreport_la_DEPENDENCIES = $(plugin_deps)
 
-INCLUDES = \
+IFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/common \
        -I$(top_builddir)/src/common \
        -I$(top_srcdir)/src/gtk
 
-AM_CPPFLAGS = \
+spamreport_la_CPPFLAGS = \
+       $(IFLAGS) \
        $(GLIB_CFLAGS) \
        $(CURL_CFLAGS) \
        $(GTK_CFLAGS)
index 4377260e673b2f2dd1a5a30e7e06360969dec763..56efafe3d61778ddc84c0e8ee4fed67ef9264fc3 100644 (file)
@@ -21,13 +21,11 @@ endif
 spamassassin_la_LIBADD = $(cygwin_export_lib) \
        $(GTK_LIBS)
 
-INCLUDES = \
+spamassassin_la_CPPFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/common \
        -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk
-
-AM_CPPFLAGS = \
+       -I$(top_srcdir)/src/gtk \
        $(ENCHANT_CFLAGS) \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS)
index 941eaffb30c931b0492c6f935bcda1596f53572b..020a17e40b47ea97abfa6f8d016718e62f3594cc 100644 (file)
@@ -3,7 +3,7 @@ EXTRA_DIST = claws.def plugin.def version.rc
 if OS_WIN32
 
 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
-     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+     `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
 
 %.lo : %.rc
@@ -72,12 +72,13 @@ noinst_HEADERS = \
        tnef-types.h \
        ytnef.h
 
-INCLUDES = \
+IFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/common \
        -I$(top_builddir)/src/common \
        -I$(top_srcdir)/src/gtk
 
-AM_CPPFLAGS = \
+tnef_parse_la_CPPFLAGS = \
+       $(IFLAGS) \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS)
index 022efabb6de3933f1f272a75d4b80f8291721ca4..98c79252023f75d4a660bd9adb67ce30a2381020 100644 (file)
@@ -1,10 +1,17 @@
 SUBDIRS = libical
 EXTRA_DIST = claws.def plugin.def version.rc
 
+IFLAGS = \
+       -I$(top_srcdir)/src \
+       -I$(top_srcdir)/src/common \
+       -I$(top_builddir)/src/common \
+       -I$(top_srcdir)/src/gtk \
+       -I$(top_srcdir)/src/plugins/vcalendar/libical/libical
+
 if OS_WIN32
 
 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
-     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+     `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
 
 %.lo : %.rc
@@ -48,13 +55,6 @@ if BUILD_VCALENDAR_PLUGIN
 plugin_LTLIBRARIES = vcalendar.la
 endif
 
-INCLUDES= \
-       -I$(top_srcdir)/src \
-       -I$(top_srcdir)/src/common \
-       -I$(top_builddir)/src/common \
-       -I$(top_srcdir)/src/gtk \
-       -I$(top_srcdir)/src/plugins/vcalendar/libical/libical
-
 vcalendar_la_SOURCES = \
        plugin.c \
        vcalendar.c vcalendar.h \
@@ -83,7 +83,8 @@ vcalendar_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
        $(CURL_LIBS) \
         $(top_builddir)/src/plugins/vcalendar/libical/libical/libical.la
 
-AM_CPPFLAGS = \
+vcalendar_la_CPPFLAGS = \
+       $(IFLAGS) \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS) \
        $(CURL_CFLAGS)
index 16714aec0c1eb8c2b19868e5dc254b346ff88d05..e7d886f4254f48b638cd4ab22b785d4cbb9c770d 100644 (file)
@@ -34,14 +34,6 @@ YFLAGS = -d -v -t -pical_yy
 LFLAGS = -Pical_yy
 LEX_OUTPUT_ROOT = lex.ical_yy
 
-INCLUDES =                     \
-       -I$(top_builddir)       \
-       -I$(top_srcdir)         \
-       -I$(top_builddir)       \
-       -I$(srcdir)             \
-       -I$(top_srcdir)/src/plugins/vcalendar/libical \
-       -I$(top_srcdir)/src/plugins/vcalendar/libical/libical
-
 libical_la_LDFLAGS = -version-info 0:0:0
 
 libical_la_SOURCES =           \
@@ -225,4 +217,11 @@ EXTRA_DIST =                       \
        icallexer.c             \
        icalyacc.c
 
-AM_CPPFLAGS = -DNDEBUG $(GLIB_CFLAGS) 
+libical_la_CPPFLAGS = -DNDEBUG $(GLIB_CFLAGS) \
+       -I$(top_builddir)       \
+       -I$(top_srcdir)         \
+       -I$(top_builddir)       \
+       -I$(srcdir)             \
+       -I$(top_srcdir)/src/plugins/vcalendar/libical \
+       -I$(top_srcdir)/src/plugins/vcalendar/libical/libical
+