1 # Makefile.am for "src/plugins/pgpmime" directory
2 # This file is part of Claws Mail package.
3 # See COPYING file for license details.
5 appdata_files = claws-mail-pgpmime.metainfo.xml
6 appdatadir = $(datadir)/appdata
7 appdata_DATA = $(appdata_files)
8 EXTRA_DIST = version.rc plugin.def claws.def mypgpcore.def pgpmime.deps \
13 -I$(top_srcdir)/src/common \
14 -I$(top_builddir)/src/common \
15 -I$(top_srcdir)/src/gtk
19 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
20 `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
21 sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
24 $(LTRCCOMPILE) -i $< -o $@
26 plugin_res = version.lo
27 plugin_res_ldflag = -Wl,.libs/version.o
29 export_symbols = -export-symbols $(srcdir)/plugin.def
31 plugin_deps = libclaws.a libmypgpcore.a $(plugin_res) plugin.def
34 $(DLLTOOL) --output-lib $@ --def $<
36 libmypgpcore.a: mypgpcore.def
37 $(DLLTOOL) --output-lib $@ --def $<
39 plugin_ldadd = -L. -lclaws -lmypgpcore
50 no_undefined = -no-undefined
56 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
57 pgpcore_lib = ../pgpcore/pgpcore.la
62 plugindir = $(pkglibdir)/plugins
63 plugin_DATA=pgpmime.deps
65 if BUILD_PGPMIME_PLUGIN
66 plugin_LTLIBRARIES = pgpmime.la
69 pgpmime_la_SOURCES = \
73 pluginincludedir = $(pkgincludedir)/plugins/pgpmime
74 plugininclude_HEADERS = \
77 pgpmime_la_LDFLAGS = \
78 $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
79 -avoid-version -module
80 pgpmime_la_DEPENDENCIES = $(plugin_deps)
81 pgpmime_la_LIBADD = $(plugin_ldadd) $(pgpcore_lib) $(cygwin_export_lib) \
86 pgpmime_la_CPPFLAGS = \
92 -Wno-deprecated-declarations