RSSyl: Allow use of .netrc by libcurl. Bug/enhancement #3309, by Vincent Pelletier
[claws.git] / src / plugins / pgpinline / 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 pgpinline.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 cygwin_export_lib = 
57 pgpcore_lib = 
58 endif
59
60 plugindir = $(pkglibdir)/plugins
61 plugin_DATA=pgpinline.deps
62
63 if BUILD_PGPINLINE_PLUGIN
64 plugin_LTLIBRARIES = pgpinline.la
65 endif
66
67 pgpinline_la_SOURCES = \
68         plugin.c \
69         pgpinline.c
70
71 pluginincludedir = $(pkgincludedir)/plugins/pgpinline
72 plugininclude_HEADERS = \
73         pgpinline.h 
74
75 pgpinline_la_LDFLAGS = \
76         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
77         -avoid-version -module 
78 pgpinline_la_DEPENDENCIES = $(plugin_deps)
79 pgpinline_la_LIBADD = $(plugin_ldadd) $(pgpcore_lib) $(cygwin_export_lib) \
80         $(GTK_LIBS)  \
81         $(GPGME_LIBS)
82
83 pgpinline_la_CPPFLAGS = \
84         $(IFLAGS) \
85         $(GLIB_CFLAGS) \
86         $(GTK_CFLAGS) \
87         $(GPGME_CFLAGS) \
88         -Wno-deprecated-declarations
89
90 clean-local:
91         rm -f libclaws.a