fix bug 4483, 'cannot open certain links anymore'
[claws.git] / src / plugins / smime / 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 smime.deps
7
8 IFLAGS = \
9         -I$(top_builddir)/src \
10         -I$(top_srcdir)/src \
11         -I$(top_srcdir)/src/common \
12         -I$(top_builddir)/src/common \
13         -I$(top_srcdir)/src/gtk
14
15 if OS_WIN32
16
17 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
18      `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
19      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
20
21 %.lo : %.rc
22         $(LTRCCOMPILE) -i $< -o $@
23
24 plugin_res = version.lo
25 plugin_res_ldflag = -Wl,.libs/version.o
26
27 export_symbols = -export-symbols $(srcdir)/plugin.def
28
29 plugin_deps = libclaws.a libmypgpcore.a $(plugin_res) plugin.def
30
31 libclaws.a: claws.def
32         $(DLLTOOL) --output-lib $@ --def $<
33
34 libmypgpcore.a: mypgpcore.def
35         $(DLLTOOL) --output-lib $@ --def $<
36
37 plugin_ldadd = -L. -lclaws  -lmypgpcore
38
39 else
40 plugin_res =
41 plugin_res_ldflag =
42 export_symbols =
43 plugin_deps =
44 plugin_ldadd =
45 endif
46
47 if PLATFORM_WIN32
48 no_undefined = -no-undefined
49 else
50 no_undefined =
51 endif
52
53 if CYGWIN
54 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
55 pgpcore_lib = ../pgpcore/pgpcore.la
56 else
57 cygwin_export_lib = 
58 pgpcore_lib = 
59 endif
60
61 plugindir = $(pkglibdir)/plugins
62 plugin_DATA=smime.deps
63
64 if BUILD_SMIME_PLUGIN
65 plugin_LTLIBRARIES = smime.la
66 endif
67
68 smime_la_SOURCES = \
69         plugin.c \
70         smime.c smime.h
71
72 smime_la_LDFLAGS = \
73         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
74         -avoid-version -module 
75 smime_la_DEPENDENCIES = $(plugin_deps)
76 smime_la_LIBADD = $(plugin_ldadd) $(pgpcore_lib) $(cygwin_export_lib) \
77         $(GTK_LIBS)  \
78         $(GPGME_LIBS) \
79         $(ENCHANT_LIBS)
80
81 smime_la_CPPFLAGS = \
82         $(IFLAGS) \
83         $(GLIB_CFLAGS) \
84         $(GTK_CFLAGS) \
85         $(GPGME_CFLAGS) \
86         $(ENCHANT_CFLAGS) \
87         -Wno-deprecated-declarations
88
89 clean-local:
90         rm -f libclaws.a
91
92 .PHONY: test