2013-02-20 [colin] 3.9.0cvs95
[claws.git] / src / plugins / rssyl / 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_RSSYL_PLUGIN
47 plugin_LTLIBRARIES = rssyl.la
48 endif
49
50 INCLUDES= \
51         -I$(top_srcdir)/src \
52         -I$(top_srcdir)/src/common \
53         -I$(top_builddir)/src/common \
54         -I$(top_srcdir)/src/gtk
55
56 rssyl_la_LDFLAGS = \
57         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
58         -avoid-version -module \
59         $(GTK_LIBS)
60
61 rssyl_la_DEPENDENCIES = $(plugin_deps)
62
63 rssyl_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
64         $(GTK_LIBS) $(LIBXML_LIBS) $(CURL_LIBS)
65
66 AM_CPPFLAGS = \
67         -Wall \
68         $(CLAWS_MAIL_CFLAGS) \
69         $(GLIB_CFLAGS) \
70         $(GTK_CFLAGS) \
71         $(LIBXML_CFLAGS) \
72         $(CURL_CFLAGS) \
73         -DLOCALEDIR=\""$(localedir)"\" 
74
75 rssyl_la_SOURCES = \
76         date.c date.h \
77         feed.c feed.h \
78         feedprops.c feedprops.h \
79         opml.c opml.h \
80         parsers.c parsers.h \
81         plugin.c \
82         rssyl.c rssyl.h \
83         rssyl_cb_gtk.c rssyl_cb_gtk.h \
84         rssyl_cb_menu.c rssyl_cb_menu.h \
85         rssyl_gtk.c rssyl_gtk.h \
86         rssyl_prefs.c rssyl_prefs.h \
87         strreplace.c strreplace.h
88