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