a0e662c2d53adc561763340b725fcf0020497218
[claws.git] / src / plugins / mailmbox / Makefile.am
1 # Copyright 1999-2014 the Claws Mail team.
2 # This file is part of Claws Mail package, and distributed under the
3 # terms of the General Public License version 3 (or later).
4 # See COPYING file for license details.
5
6 EXTRA_DIST = claws.def plugin.def version.rc
7
8 IFLAGS = \
9         -I$(top_srcdir)/src \
10         -I$(top_srcdir)/src/common \
11         -I$(top_builddir)/src/common \
12         -I$(top_srcdir)/src/gtk
13
14 if OS_WIN32
15
16 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
17      `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
18      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
19
20 %.lo : %.rc
21         $(LTRCCOMPILE) -i $< -o $@
22
23 plugin_res = version.lo
24 plugin_res_ldflag = -Wl,.libs/version.o
25
26 export_symbols = -export-symbols $(srcdir)/plugin.def
27
28 plugin_deps = libclaws.a $(plugin_res) plugin.def
29
30 libclaws.a: claws.def
31         $(DLLTOOL) --output-lib $@ --def $<
32
33 plugin_ldadd = -L. -lclaws
34
35 else
36 plugin_res =
37 plugin_res_ldflag =
38 export_symbols =
39 plugin_deps =
40 plugin_ldadd =
41 endif
42
43 if PLATFORM_WIN32
44 no_undefined = -no-undefined
45 else
46 no_undefined =
47 endif
48
49 if CYGWIN
50 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
51 else
52 cygwin_export_lib = 
53 endif
54
55 plugindir = $(pkglibdir)/plugins
56
57 if BUILD_MAILMBOX_PLUGIN
58 plugin_LTLIBRARIES = mailmbox.la
59 endif
60
61 ## Mailmbox folder plugin
62
63 mailmbox_la_SOURCES = \
64         plugin.c plugin_gtk.c \
65         carray.c carray.h \
66         chash.c chash.h \
67         clist.c clist.h \
68         mailimf.c mailimf.h \
69         mailimf_types.c mailimf_types.h \
70         mailimf_types_helper.c mailimf_types_helper.h \
71         mailimf_write.c mailimf_write.h \
72         maillock.c maillock.h \
73         mailmbox.c mailmbox.h \
74         mailmbox_folder.c mailmbox_folder.h \
75         mailmbox_parse.c mailmbox_parse.h \
76         mailmbox_types.c mailmbox_types.h \
77         mmapstring.c mmapstring.h \
78         plugin_gtk.h
79
80 mailmbox_la_LDFLAGS = \
81         -avoid-version -module
82
83 mailmbox_la_LIBADD = \
84         $(GTK_LIBS)
85
86 mailmbox_la_CPPFLAGS = \
87         $(IFLAGS) \
88         $(GLIB_CFLAGS) \
89         $(GTK_CFLAGS)