c639cf1e1182253cb36e0c76e29a9cacbc9d78b8
[claws.git] / src / plugins / pgpinline / Makefile.am
1 # Makefile.am for "src/plugins/pgpinline" directory
2 # This file is part of Claws Mail package.
3 # See COPYING file for license details.
4
5 EXTRA_DIST = version.rc plugin.def claws.def mypgpcore.def pgpinline.deps
6
7 IFLAGS = \
8         -I$(top_srcdir)/src \
9         -I$(top_srcdir)/src/common \
10         -I$(top_builddir)/src/common \
11         -I$(top_srcdir)/src/gtk
12
13 if OS_WIN32
14
15 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
16      `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
17      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
18
19 %.lo : %.rc
20         $(LTRCCOMPILE) -i $< -o $@
21
22 plugin_res = version.lo
23 plugin_res_ldflag = -Wl,.libs/version.o
24
25 export_symbols = -export-symbols $(srcdir)/plugin.def
26
27 plugin_deps = libclaws.a libmypgpcore.a $(plugin_res) plugin.def
28
29 libclaws.a: claws.def
30         $(DLLTOOL) --output-lib $@ --def $<
31
32 libmypgpcore.a: mypgpcore.def
33         $(DLLTOOL) --output-lib $@ --def $<
34
35 plugin_ldadd = -L. -lclaws  -lmypgpcore
36
37 else
38 plugin_res =
39 plugin_res_ldflag =
40 export_symbols =
41 plugin_deps =
42 plugin_ldadd =
43 endif
44
45 if PLATFORM_WIN32
46 no_undefined = -no-undefined
47 else
48 no_undefined =
49 endif
50
51 if CYGWIN
52 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
53 pgpcore_lib = ../pgpcore/pgpcore.la
54 else
55 cygwin_export_lib = 
56 pgpcore_lib = 
57 endif
58
59 plugindir = $(pkglibdir)/plugins
60 plugin_DATA=pgpinline.deps
61
62 if BUILD_PGPINLINE_PLUGIN
63 plugin_LTLIBRARIES = pgpinline.la
64 endif
65
66 pgpinline_la_SOURCES = \
67         plugin.c \
68         pgpinline.c
69
70 pluginincludedir = $(pkgincludedir)/plugins/pgpinline
71 plugininclude_HEADERS = \
72         pgpinline.h 
73
74 pgpinline_la_LDFLAGS = \
75         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
76         -avoid-version -module 
77 pgpinline_la_DEPENDENCIES = $(plugin_deps)
78 pgpinline_la_LIBADD = $(plugin_ldadd) $(pgpcore_lib) $(cygwin_export_lib) \
79         $(GTK_LIBS)  \
80         $(GPGME_LIBS)
81
82 pgpinline_la_CPPFLAGS = \
83         $(IFLAGS) \
84         $(GLIB_CFLAGS) \
85         $(GTK_CFLAGS) \
86         $(GPGME_CFLAGS) \
87         -Wno-deprecated-declarations
88
89 clean-local:
90         rm -f libclaws.a