+# Makefile.am for "src/plugins/gdata" directory
+# This file is part of Claws Mail package.
+# See COPYING file for license details.
+
plugindir = $(pkglibdir)/plugins
-plugin_LTLIBRARIES = gdata_plugin.la
+if BUILD_GDATA_PLUGIN
+plugin_LTLIBRARIES = gdata.la
+endif
-gdata_plugin_la_SOURCES = \
+gdata_la_SOURCES = \
gdata_plugin.c \
gdata_plugin.h \
cm_gdata_contacts.c \
cm_gdata_prefs.c \
cm_gdata_prefs.h
-gdata_plugin_la_LDFLAGS = \
+gdata_la_LDFLAGS = \
-avoid-version -module \
$(GTK_LIBS) \
$(GDATA_LIBS)
-
-INCLUDES = \
+gdata_la_CPPFLAGS = \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/common \
- -I$(top_srcdir)/src/gtk
-
-AM_CPPFLAGS = \
- -Wall \
- $(CLAWS_MAIL_CFLAGS) \
+ -I$(top_builddir)/src/common \
+ -I$(top_srcdir)/src/gtk \
$(GLIB_CFLAGS) \
$(GTK_CFLAGS) \
- $(GDATA_CFLAGS) \
- -DLOCALEDIR=\""$(localedir)"\"
+ $(GDATA_CFLAGS)