Make GData plugin use the password store.
[claws.git] / src / plugins / pgpcore / Makefile.am
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.
5
6 EXTRA_DIST = version.rc plugin.def claws.def
7
8 IFLAGS = \
9         -I$(top_srcdir)/src \
10         -I$(top_srcdir)/src/common \
11         -I$(top_builddir)/src/common \
12         -I$(top_srcdir)/src/gtk
13
14 if OS_WIN32
15
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'`
19
20 %.lo : %.rc
21         $(LTRCCOMPILE) -i $< -o $@
22
23 plugin_res = version.lo
24 plugin_res_ldflag = -Wl,.libs/version.o
25
26 export_symbols = -export-symbols $(srcdir)/plugin.def
27
28 plugin_deps = libclaws.a $(plugin_res) plugin.def
29
30 libclaws.a: claws.def
31         $(DLLTOOL) --output-lib $@ --def $<
32
33 plugin_ldadd = -L. -lclaws
34
35 else
36 plugin_res =
37 plugin_res_ldflag =
38 export_symbols =
39 plugin_deps =
40 plugin_ldadd =
41 endif
42
43 if PLATFORM_WIN32
44 no_undefined = -no-undefined
45 else
46 no_undefined =
47 endif
48
49 if CYGWIN
50 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
51 else
52 cygwin_export_lib =
53 endif
54
55 plugindir = $(pkglibdir)/plugins
56
57 if BUILD_PGPCORE_PLUGIN
58 plugin_LTLIBRARIES = pgpcore.la
59 endif
60
61 pgpcore_la_SOURCES = \
62         autocompletion.c \
63         passphrase.c \
64         plugin.c \
65         prefs_gpg.c \
66         select-keys.c \
67         sgpgme.c \
68         pgp_utils.c \
69         pgp_viewer.c
70
71 pluginincludedir = $(pkgincludedir)/plugins/pgpcore
72 plugininclude_HEADERS = \
73         autocompletion.h \
74         passphrase.h \
75         prefs_gpg.h \
76         select-keys.h \
77         sgpgme.h \
78         pgp_utils.h \
79         pgp_viewer.h
80
81 pgpcore_la_LDFLAGS = \
82         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
83         -avoid-version -module 
84 pgpcore_la_DEPENDENCIES = $(plugin_deps)
85 pgpcore_la_LIBADD = $(cygwin_export_lib) $(plugin_ldadd) \
86         $(GTK_LIBS) \
87         $(GPGME_LIBS) \
88         $(ENCHANT_LIBS)
89
90 pgpcore_la_CPPFLAGS = \
91         $(IFLAGS) \
92         $(GLIB_CFLAGS) \
93         $(GTK_CFLAGS) \
94         $(GPGME_CFLAGS) \
95         $(ENCHANT_CFLAGS) \
96         -Wno-deprecated-declarations
97
98 clean-local:
99         rm -f libclaws.a
100