Remove warning with poppler 0.90 and greaterĀ¹
[claws.git] / src / plugins / vcalendar / Makefile.am
1 # Copyright 1999-2014 the Claws Mail team.
2 # This file is part of Claws Mail package, and distributed under the
3 # terms of the General Public License version 3 (or later).
4 # See COPYING file for license details.
5
6 EXTRA_DIST = claws.def plugin.def version.rc
7
8 IFLAGS = \
9         -I$(top_srcdir)/src \
10         -I$(top_srcdir)/src/common \
11         -I$(top_builddir)/src/common \
12         -I$(top_srcdir)/src/gtk
13
14 if OS_WIN32
15
16 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
17      `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
18      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
19
20 %.lo : %.rc
21         $(LTRCCOMPILE) -i $< -o $@
22
23 plugin_res = version.lo
24 plugin_res_ldflag = -Wl,.libs/version.o
25
26 export_symbols = -export-symbols $(srcdir)/plugin.def
27
28 plugin_deps = libclaws.a $(plugin_res) plugin.def
29
30 libclaws.a: claws.def
31         $(DLLTOOL) --output-lib $@ --def $<
32
33 plugin_ldadd = -L. -lclaws
34
35 else
36 plugin_res =
37 plugin_res_ldflag =
38 export_symbols =
39 plugin_deps =
40 plugin_ldadd =
41 endif
42
43 if PLATFORM_WIN32
44 no_undefined = -no-undefined
45 else
46 no_undefined =
47 endif
48
49 if CYGWIN
50 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
51 else
52 cygwin_export_lib = 
53 endif
54
55 plugindir = $(pkglibdir)/plugins
56
57 if BUILD_VCALENDAR_PLUGIN
58 plugin_LTLIBRARIES = vcalendar.la
59 endif
60
61 vcalendar_la_SOURCES = \
62         plugin.c \
63         vcal_interface.h \
64         vcalendar.c vcalendar.h \
65         vcal_manager.c vcal_manager.h \
66         vcal_folder.c vcal_folder.h \
67         vcal_meeting_gtk.c vcal_meeting_gtk.h \
68         vcal_prefs.c vcal_prefs.h \
69         vcal_dbus.c vcal_dbus.h \
70         common-views.c common-views.h \
71         day-view.c month-view.c
72
73 vcalendar_la_LDFLAGS = \
74         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
75         -avoid-version -module \
76         $(GTK_LIBS) $(LIBICAL_LIBS)
77
78 vcalendar_la_DEPENDENCIES = $(plugin_deps)
79
80 vcalendar_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
81         $(GTK_LIBS) \
82         $(CURL_LIBS) \
83   $(LIBICAL_LIBS)
84
85 vcalendar_la_CPPFLAGS = \
86         $(IFLAGS) \
87         $(GLIB_CFLAGS) \
88         $(GTK_CFLAGS) \
89         $(ENCHANT_CFLAGS) \
90         $(CURL_CFLAGS) \
91   $(LIBICAL_CFLAGS)
92
93 clean-local:
94         rm -f libclaws.a
95
96 .PHONY: test