Fix bug #3380. Initialize widget before callback handler for 'clicked'
[claws.git] / src / plugins / pgpmime / 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 mypgpcore.def pgpmime.deps
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 libmypgpcore.a $(plugin_res) plugin.def
29
30 libclaws.a: claws.def
31         $(DLLTOOL) --output-lib $@ --def $<
32
33 libmypgpcore.a: mypgpcore.def
34         $(DLLTOOL) --output-lib $@ --def $<
35
36 plugin_ldadd = -L. -lclaws -lmypgpcore
37
38 else
39 plugin_res =
40 plugin_res_ldflag =
41 export_symbols =
42 plugin_deps =
43 plugin_ldadd =
44 endif
45
46 if PLATFORM_WIN32
47 no_undefined = -no-undefined
48 else
49 no_undefined =
50 endif
51
52 if CYGWIN
53 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
54 pgpcore_lib = ../pgpcore/pgpcore.la
55 else
56 pgpcore_lib = 
57 endif
58
59 plugindir = $(pkglibdir)/plugins
60 plugin_DATA=pgpmime.deps
61
62 if BUILD_PGPMIME_PLUGIN
63 plugin_LTLIBRARIES = pgpmime.la
64 endif
65
66 pgpmime_la_SOURCES = \
67         plugin.c \
68         pgpmime.c
69
70 pluginincludedir = $(pkgincludedir)/plugins/pgpmime
71 plugininclude_HEADERS = \
72         pgpmime.h 
73
74 pgpmime_la_LDFLAGS = \
75         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
76         -avoid-version -module 
77 pgpmime_la_DEPENDENCIES = $(plugin_deps)
78 pgpmime_la_LIBADD = $(plugin_ldadd) $(pgpcore_lib) $(cygwin_export_lib) \
79         $(GTK_LIBS) \
80         $(GPGME_LIBS) \
81         $(ENCHANT_LIBS)
82
83 pgpmime_la_CPPFLAGS = \
84         $(IFLAGS) \
85         $(GLIB_CFLAGS) \
86         $(GTK_CFLAGS) \
87         $(GPGME_CFLAGS) \
88         $(ENCHANT_CFLAGS) \
89         -Wno-deprecated-declarations
90
91 clean-local:
92         rm -f libclaws.a