add configure option --enable-appdata and put all appdata in appdata/
[claws.git] / src / plugins / pgpmime / Makefile.am
1 # Makefile.am for "src/plugins/pgpmime" 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 pgpmime.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 pgpcore_lib = 
56 endif
57
58 plugindir = $(pkglibdir)/plugins
59 plugin_DATA=pgpmime.deps
60
61 if BUILD_PGPMIME_PLUGIN
62 plugin_LTLIBRARIES = pgpmime.la
63 endif
64
65 pgpmime_la_SOURCES = \
66         plugin.c \
67         pgpmime.c
68
69 pluginincludedir = $(pkgincludedir)/plugins/pgpmime
70 plugininclude_HEADERS = \
71         pgpmime.h 
72
73 pgpmime_la_LDFLAGS = \
74         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
75         -avoid-version -module 
76 pgpmime_la_DEPENDENCIES = $(plugin_deps)
77 pgpmime_la_LIBADD = $(plugin_ldadd) $(pgpcore_lib) $(cygwin_export_lib) \
78         $(GTK_LIBS) \
79         $(GPGME_LIBS) \
80         $(ENCHANT_LIBS)
81
82 pgpmime_la_CPPFLAGS = \
83         $(IFLAGS) \
84         $(GLIB_CFLAGS) \
85         $(GTK_CFLAGS) \
86         $(GPGME_CFLAGS) \
87         $(ENCHANT_CFLAGS) \
88         -Wno-deprecated-declarations
89
90 clean-local:
91         rm -f libclaws.a