1 # Copyright 1999-2014 the Claws Mail team.
2 # This file is part of Claws Mail package, and distributed under the
3 # terms of the General Public License version 3 (or later).
4 # See COPYING file for license details.
6 EXTRA_DIST = version.rc plugin.def claws.def mypgpcore.def pgpmime.deps
10 -I$(top_srcdir)/src/common \
11 -I$(top_builddir)/src/common \
12 -I$(top_srcdir)/src/gtk
16 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
17 `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
18 sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
21 $(LTRCCOMPILE) -i $< -o $@
23 plugin_res = version.lo
24 plugin_res_ldflag = -Wl,.libs/version.o
26 export_symbols = -export-symbols $(srcdir)/plugin.def
28 plugin_deps = libclaws.a libmypgpcore.a $(plugin_res) plugin.def
31 $(DLLTOOL) --output-lib $@ --def $<
33 libmypgpcore.a: mypgpcore.def
34 $(DLLTOOL) --output-lib $@ --def $<
36 plugin_ldadd = -L. -lclaws -lmypgpcore
47 no_undefined = -no-undefined
53 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
54 pgpcore_lib = ../pgpcore/pgpcore.la
59 plugindir = $(pkglibdir)/plugins
60 plugin_DATA=pgpmime.deps
62 if BUILD_PGPMIME_PLUGIN
63 plugin_LTLIBRARIES = pgpmime.la
66 pgpmime_la_SOURCES = \
70 pgpmime_la_LDFLAGS = \
71 $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
72 -avoid-version -module
73 pgpmime_la_DEPENDENCIES = $(plugin_deps)
74 pgpmime_la_LIBADD = $(plugin_ldadd) $(pgpcore_lib) $(cygwin_export_lib) \
79 pgpmime_la_CPPFLAGS = \
85 -Wno-deprecated-declarations