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