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