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