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