metainfo: add vcalendar plugin
[claws.git] / src / plugins / vcalendar / Makefile.am
1 # Makefile.am for "src/plugins/vcalendar" directory
2 # This file is part of Claws Mail package.
3 # See COPYING file for license details.
4
5 appdata_files = claws-mail-vcalendar.metainfo.xml
6 appdatadir = $(datadir)/appdata
7 appdata_DATA = $(appdata_files)
8
9 SUBDIRS = libical
10 EXTRA_DIST = claws.def plugin.def version.rc $(appdata_files)
11
12 IFLAGS = \
13         -I$(top_srcdir)/src \
14         -I$(top_srcdir)/src/common \
15         -I$(top_builddir)/src/common \
16         -I$(top_srcdir)/src/gtk \
17         -I$(top_srcdir)/src/plugins/vcalendar/libical/libical
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_VCALENDAR_PLUGIN
63 plugin_LTLIBRARIES = vcalendar.la
64 endif
65
66 vcalendar_la_SOURCES = \
67         plugin.c \
68         vcalendar.c vcalendar.h \
69         vcal_manager.c vcal_manager.h \
70         vcal_folder.c vcal_folder.h \
71         vcal_meeting_gtk.c vcal_meeting_gtk.h \
72         vcal_prefs.c vcal_prefs.h \
73         vcal_dbus.c vcal_dbus.h \
74         icaltime_as_local.c icaltime_as_local.h \
75         common-views.c common-views.h \
76         day-view.c month-view.c
77
78 vcalendarincludedir = $(includedir)/claws-mail/plugins/vcalendar
79 vcalendarinclude_HEADERS = \
80         vcal_interface.h
81  
82 vcalendar_la_LDFLAGS = \
83         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
84         -avoid-version -module \
85         $(GTK_LIBS)
86
87 vcalendar_la_DEPENDENCIES = $(plugin_deps)
88
89 vcalendar_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
90         $(GTK_LIBS) \
91         $(CURL_LIBS) \
92         $(top_builddir)/src/plugins/vcalendar/libical/libical/libical.la
93
94 vcalendar_la_CPPFLAGS = \
95         $(IFLAGS) \
96         $(GLIB_CFLAGS) \
97         $(GTK_CFLAGS) \
98         $(CURL_CFLAGS)
99
100 clean-local:
101         rm -f libclaws.a