+# Makefile.am for "src/plugins/pgpmime" directory
+# This file is part of Claws Mail package.
+# See COPYING file for license details.
+
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 $(RC) \
- `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
+ `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
%.lo : %.rc
libmypgpcore.a: mypgpcore.def
$(DLLTOOL) --output-lib $@ --def $<
-plugin_ldadd = -L . -lclaws -lmypgpcore
+plugin_ldadd = -L. -lclaws -lmypgpcore
else
plugin_res =
plugindir = $(pkglibdir)/plugins
plugin_DATA=pgpmime.deps
+if BUILD_PGPMIME_PLUGIN
plugin_LTLIBRARIES = pgpmime.la
-
+endif
pgpmime_la_SOURCES = \
plugin.c \
pgpmime_la_LIBADD = $(plugin_ldadd) $(pgpcore_lib) $(cygwin_export_lib) \
$(GTK_LIBS) \
$(GPGME_LIBS) \
- $(MAEMO_LIBS) \
- $(CONIC_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) \
- $(MAEMO_CFLAGS) \
- $(CONIC_CFLAGS) \
$(ENCHANT_CFLAGS) \
-Wno-deprecated-declarations