add configure option --enable-appdata and put all appdata in appdata/
[claws.git] / src / plugins / pgpcore / Makefile.am
1 # Makefile.am for "src/plugins/pgpcore" 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
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 $(plugin_res) plugin.def
28
29 libclaws.a: claws.def
30         $(DLLTOOL) --output-lib $@ --def $<
31
32 plugin_ldadd = -L. -lclaws
33
34 else
35 plugin_res =
36 plugin_res_ldflag =
37 export_symbols =
38 plugin_deps =
39 plugin_ldadd =
40 endif
41
42 if PLATFORM_WIN32
43 no_undefined = -no-undefined
44 else
45 no_undefined =
46 endif
47
48 if CYGWIN
49 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
50 else
51 cygwin_export_lib =
52 endif
53
54 plugindir = $(pkglibdir)/plugins
55
56 if BUILD_PGPCORE_PLUGIN
57 plugin_LTLIBRARIES = pgpcore.la
58 endif
59
60 pgpcore_la_SOURCES = \
61         autocompletion.c \
62         passphrase.c \
63         plugin.c \
64         prefs_gpg.c \
65         select-keys.c \
66         sgpgme.c \
67         pgp_utils.c \
68         pgp_viewer.c
69
70 pluginincludedir = $(pkgincludedir)/plugins/pgpcore
71 plugininclude_HEADERS = \
72         autocompletion.h \
73         passphrase.h \
74         prefs_gpg.h \
75         select-keys.h \
76         sgpgme.h \
77         pgp_utils.h \
78         pgp_viewer.h
79
80 pgpcore_la_LDFLAGS = \
81         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
82         -avoid-version -module 
83 pgpcore_la_DEPENDENCIES = $(plugin_deps)
84 pgpcore_la_LIBADD = $(cygwin_export_lib) $(plugin_ldadd) \
85         $(GTK_LIBS) \
86         $(GPGME_LIBS) \
87         $(ENCHANT_LIBS)
88
89 pgpcore_la_CPPFLAGS = \
90         $(IFLAGS) \
91         $(GLIB_CFLAGS) \
92         $(GTK_CFLAGS) \
93         $(GPGME_CFLAGS) \
94         $(ENCHANT_CFLAGS) \
95         -Wno-deprecated-declarations
96
97 clean-local:
98         rm -f libclaws.a
99