2005-12-20 [colin] 1.9.100cvs97
[claws.git] / src / plugins / pgpmime / Makefile.am
1 EXTRA_DIST = version.rc plugin.def sylpheed.def mypgpcore.def pgpmime.deps
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 libmypgpcore.a $(plugin_res) plugin.def
19
20 libsylpheed.a: sylpheed.def
21         $(DLLTOOL) --output-lib $@ --def $<
22
23 libmypgpcore.a: mypgpcore.def
24         $(DLLTOOL) --output-lib $@ --def $<
25
26 plugin_ldadd = -L . -lsylpheed -lmypgpcore
27
28 else
29 plugin_res =
30 plugin_res_ldflag =
31 no_undefined =
32 export_symbols =
33 plugin_deps =
34 plugin_ldadd =
35 endif
36
37
38 plugindir = $(pkglibdir)/plugins
39 plugin_DATA=pgpmime.deps
40
41 plugin_LTLIBRARIES = pgpmime.la
42
43
44 pgpmime_la_SOURCES = \
45         plugin.c \
46         pgpmime.c
47
48 pluginincludedir = $(pkgincludedir)/plugins/pgpmime
49 plugininclude_HEADERS = \
50         pgpmime.h 
51
52 pgpmime_la_LDFLAGS = \
53         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
54         -avoid-version -module \
55         $(GTK_LIBS) \
56         $(GPGME_LIBS)
57 pgpmime_la_DEPENDENCIES = $(plugin_deps)
58 pgpmime_la_LIBADD = $(plugin_ldadd)
59
60 INCLUDES = \
61         -I$(top_srcdir)/src \
62         -I$(top_srcdir)/src/common \
63         -I$(top_srcdir)/src/gtk
64
65 AM_CPPFLAGS = \
66         $(GLIB_CFLAGS) \
67         $(GTK_CFLAGS) \
68         $(GPGME_CFLAGS) \
69         -Wno-deprecated-declarations
70
71 clean-local:
72         rm -f libsylpheed.a