2011-08-29 [colin] 3.7.10cvs6
[claws.git] / src / plugins / smime / Makefile.am
1 EXTRA_DIST = version.rc plugin.def claws.def mypgpcore.def smime.deps
2
3
4 if OS_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 export_symbols = -export-symbols $(srcdir)/plugin.def
17
18 plugin_deps = libclaws.a libmypgpcore.a $(plugin_res) plugin.def
19
20 libclaws.a: claws.def
21         $(DLLTOOL) --output-lib $@ --def $<
22
23 libmypgpcore.a: mypgpcore.def
24         $(DLLTOOL) --output-lib $@ --def $<
25
26 plugin_ldadd = -L. -lclaws  -lmypgpcore
27
28 else
29 plugin_res =
30 plugin_res_ldflag =
31 export_symbols =
32 plugin_deps =
33 plugin_ldadd =
34 endif
35
36 if PLATFORM_WIN32
37 no_undefined = -no-undefined
38 else
39 no_undefined =
40 endif
41
42 if CYGWIN
43 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
44 pgpcore_lib = ../pgpcore/pgpcore.la
45 else
46 cygwin_export_lib = 
47 pgpcore_lib = 
48 endif
49
50 plugindir = $(pkglibdir)/plugins
51 plugin_DATA=smime.deps
52
53 plugin_LTLIBRARIES = smime.la
54
55 smime_la_SOURCES = \
56         plugin.c \
57         smime.c
58
59 pluginincludedir = $(pkgincludedir)/plugins/smime
60 plugininclude_HEADERS = \
61         smime.h 
62
63 smime_la_LDFLAGS = \
64         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
65         -avoid-version -module 
66 smime_la_DEPENDENCIES = $(plugin_deps)
67 smime_la_LIBADD = $(plugin_ldadd) $(pgpcore_lib) $(cygwin_export_lib) \
68         $(GTK_LIBS)  \
69         $(GPGME_LIBS) \
70         $(CONIC_LIBS) \
71         $(ENCHANT_LIBS)
72
73 INCLUDES = \
74         -I$(top_srcdir)/src \
75         -I$(top_srcdir)/src/common \
76         -I$(top_builddir)/src/common \
77         -I$(top_srcdir)/src/gtk
78
79 AM_CPPFLAGS = \
80         $(GLIB_CFLAGS) \
81         $(GTK_CFLAGS) \
82         $(GPGME_CFLAGS) \
83         $(MAEMO_CFLAGS) \
84         $(CONIC_CFLAGS) \
85         $(ENCHANT_CFLAGS) \
86         -Wno-deprecated-declarations
87
88 clean-local:
89         rm -f libclaws.a