2005-12-20 [colin] 1.9.100cvs97
[claws.git] / src / plugins / pgpcore / Makefile.am
1 EXTRA_DIST = version.rc plugin.def sylpheed.def
2
3 if PLATFORM_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 no_undefined = -no-undefined
16 export_symbols = -export-symbols $(srcdir)/plugin.def
17
18 plugin_deps = libsylpheed.a $(plugin_res) plugin.def
19
20 libsylpheed.a: sylpheed.def
21         $(DLLTOOL) --output-lib $@ --def $<
22
23 plugin_ldadd = -L . -lsylpheed
24
25 else
26 plugin_res =
27 plugin_res_ldflag =
28 no_undefined =
29 export_symbols =
30 plugin_deps =
31 plugin_ldadd =
32 endif
33
34
35 plugindir = $(pkglibdir)/plugins
36
37 plugin_LTLIBRARIES = pgpcore.la
38
39 pgpcore_la_SOURCES = \
40         passphrase.c \
41         plugin.c \
42         prefs_gpg.c \
43         select-keys.c \
44         sgpgme.c
45
46 pluginincludedir = $(pkgincludedir)/plugins/pgpcore
47 plugininclude_HEADERS = \
48         passphrase.h \
49         prefs_gpg.h \
50         select-keys.h \
51         sgpgme.h
52
53 pgpcore_la_LDFLAGS = \
54         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
55         -avoid-version -module \
56         $(GTK_LIBS) \
57         $(GPGME_LIBS)
58 pgpcore_la_DEPENDENCIES = $(plugin_deps)
59 pgpcore_la_LIBADD = $(plugin_ldadd)
60
61 INCLUDES = \
62         -I$(top_srcdir)/src \
63         -I$(top_srcdir)/src/common \
64         -I$(top_srcdir)/src/gtk
65
66 AM_CPPFLAGS = \
67         $(GLIB_CFLAGS) \
68         $(GTK_CFLAGS) \
69         $(GPGME_CFLAGS) \
70         -Wno-deprecated-declarations
71
72 clean-local:
73         rm -f libsylpheed.a
74