5876615a384522c8cb763c0ce47facf3e09fc49d
[claws.git] / src / plugins / pgpcore / Makefile.am
1 EXTRA_DIST = version.rc plugin.def claws.def
2
3 if OS_WIN32
4
5 LTRCCOMPILE = $(LIBTOOL) --mode=compile $(RC) \
6      `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
7      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
8
9 %.lo : %.rc
10         $(LTRCCOMPILE) -i $< -o $@
11
12 plugin_res = version.lo
13 plugin_res_ldflag = -Wl,.libs/version.o
14
15 export_symbols = -export-symbols $(srcdir)/plugin.def
16
17 plugin_deps = libclaws.a $(plugin_res) plugin.def
18
19 libclaws.a: claws.def
20         $(DLLTOOL) --output-lib $@ --def $<
21
22 plugin_ldadd = -L . -lclaws
23
24 else
25 plugin_res =
26 plugin_res_ldflag =
27 export_symbols =
28 plugin_deps =
29 plugin_ldadd =
30 endif
31
32 if PLATFORM_WIN32
33 no_undefined = -no-undefined
34 else
35 no_undefined =
36 endif
37
38 if CYGWIN
39 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
40 else
41 cygwin_export_lib =
42 endif
43
44 plugindir = $(pkglibdir)/plugins
45
46 plugin_LTLIBRARIES = pgpcore.la
47
48 pgpcore_la_SOURCES = \
49         passphrase.c \
50         plugin.c \
51         prefs_gpg.c \
52         select-keys.c \
53         sgpgme.c \
54         pgp_viewer.c
55
56 pluginincludedir = $(pkgincludedir)/plugins/pgpcore
57 plugininclude_HEADERS = \
58         passphrase.h \
59         prefs_gpg.h \
60         select-keys.h \
61         sgpgme.h \
62         pgp_viewer.h
63
64 pgpcore_la_LDFLAGS = \
65         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
66         -avoid-version -module 
67 pgpcore_la_DEPENDENCIES = $(plugin_deps)
68 pgpcore_la_LIBADD = $(cygwin_export_lib) $(plugin_ldadd) \
69         $(GTK_LIBS) \
70         $(GPGME_LIBS) \
71         $(MAEMO_LIBS) \
72         $(CONIC_LIBS) \
73         $(ENCHANT_LIBS)
74
75 INCLUDES = \
76         -I$(top_srcdir)/src \
77         -I$(top_srcdir)/src/common \
78         -I$(top_builddir)/src/common \
79         -I$(top_srcdir)/src/gtk
80
81 AM_CPPFLAGS = \
82         $(GLIB_CFLAGS) \
83         $(GTK_CFLAGS) \
84         $(GPGME_CFLAGS) \
85         $(MAEMO_CFLAGS) \
86         $(CONIC_CFLAGS) \
87         $(ENCHANT_CFLAGS) \
88         -Wno-deprecated-declarations
89
90 clean-local:
91         rm -f libclaws.a
92