2005-12-23 [cleroy] 1.9.100cvs104
[claws.git] / src / plugins / pgpinline / Makefile.am
1 EXTRA_DIST = version.rc plugin.def sylpheed.def mypgpcore.def pgpinline.deps
2
3
4 if PLATFORM_WIN32
5
6 LTRCCOMPILE = $(LIBTOOL) --mode=compile $(RC) \
7      `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
8      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
9
10 %.lo : %.rc
11         $(LTRCCOMPILE) -i $< -o $@
12
13 plugin_res = version.lo
14 plugin_res_ldflag = -Wl,.libs/version.o
15
16 no_undefined = -no-undefined
17 export_symbols = -export-symbols $(srcdir)/plugin.def
18
19 plugin_deps = libsylpheed.a libmypgpcore.a $(plugin_res) plugin.def
20
21 libsylpheed.a: sylpheed.def
22         $(DLLTOOL) --output-lib $@ --def $<
23
24 libmypgpcore.a: mypgpcore.def
25         $(DLLTOOL) --output-lib $@ --def $<
26
27 plugin_ldadd = -L . -lsylpheed  -lmypgpcore
28
29 else
30 plugin_res =
31 plugin_res_ldflag =
32 no_undefined =
33 export_symbols =
34 plugin_deps =
35 plugin_ldadd =
36 endif
37
38
39 plugindir = $(pkglibdir)/plugins
40 plugin_DATA=pgpinline.deps
41
42 plugin_LTLIBRARIES = pgpinline.la
43
44 pgpinline_la_SOURCES = \
45         plugin.c \
46         pgpinline.c
47
48 pluginincludedir = $(pkgincludedir)/plugins/pgpinline
49 plugininclude_HEADERS = \
50         pgpinline.h 
51
52 pgpinline_la_LDFLAGS = \
53         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
54         -avoid-version -module \
55         $(GTK_LIBS) \
56         $(GPGME_LIBS)
57 pgpinline_la_DEPENDENCIES = $(plugin_deps)
58 pgpinline_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