78879633062c9e123d9a4c426d1b355b06852189
[claws.git] / src / plugins / rssyl / Makefile.am
1 # Makefile.am for "src/plugins/rssyl" directory
2 # This file is part of Claws Mail package.
3 # See COPYING file for license details.
4
5 EXTRA_DIST = claws.def plugin.def version.rc
6
7 IFLAGS = \
8         -I$(top_srcdir)/src \
9         -I$(top_srcdir)/src/common \
10         -I$(top_builddir)/src/common \
11         -I$(top_srcdir)/src/gtk
12
13 if OS_WIN32
14
15 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
16      `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
17      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
18
19 %.lo : %.rc
20         $(LTRCCOMPILE) -i $< -o $@
21
22 plugin_res = version.lo
23 plugin_res_ldflag = -Wl,.libs/version.o
24
25 export_symbols = -export-symbols $(srcdir)/plugin.def
26
27 plugin_deps = libclaws.a $(plugin_res) plugin.def
28
29 libclaws.a: claws.def
30         $(DLLTOOL) --output-lib $@ --def $<
31
32 plugin_ldadd = -L. -lclaws
33
34 else
35 plugin_res =
36 plugin_res_ldflag =
37 export_symbols =
38 plugin_deps =
39 plugin_ldadd =
40 endif
41
42 if PLATFORM_WIN32
43 no_undefined = -no-undefined
44 else
45 no_undefined =
46 endif
47
48 if CYGWIN
49 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
50 else
51 cygwin_export_lib = 
52 endif
53
54 plugindir = $(pkglibdir)/plugins
55
56 if BUILD_RSSYL_PLUGIN
57 plugin_LTLIBRARIES = rssyl.la
58 endif
59
60 rssyl_la_LDFLAGS = \
61         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
62         -avoid-version -module \
63         $(GTK_LIBS)
64
65 rssyl_la_DEPENDENCIES = $(plugin_deps)
66
67 rssyl_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
68         $(GTK_LIBS) $(LIBXML_LIBS) $(CURL_LIBS)
69
70 rssyl_la_CPPFLAGS = \
71         $(IFLAGS) \
72         $(GLIB_CFLAGS) \
73         $(GTK_CFLAGS) \
74         $(LIBXML_CFLAGS) \
75         $(CURL_CFLAGS)
76
77 rssyl_la_SOURCES = \
78         date.c date.h \
79         feed.c feed.h \
80         feedprops.c feedprops.h \
81         opml.c opml.h \
82         parsers.c parsers.h \
83         plugin.c \
84         rssyl.c rssyl.h \
85         rssyl_cb_gtk.c rssyl_cb_gtk.h \
86         rssyl_cb_menu.c rssyl_cb_menu.h \
87         rssyl_gtk.c rssyl_gtk.h \
88         rssyl_prefs.c rssyl_prefs.h \
89         strreplace.c strreplace.h
90