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