add configure option --enable-appdata and put all appdata in appdata/
[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 SUBDIRS = libical
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         -I$(top_srcdir)/src/plugins/vcalendar/libical/libical
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_VCALENDAR_PLUGIN
59 plugin_LTLIBRARIES = vcalendar.la
60 endif
61
62 vcalendar_la_SOURCES = \
63         plugin.c \
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         icaltime_as_local.c icaltime_as_local.h \
71         common-views.c common-views.h \
72         day-view.c month-view.c
73
74 vcalendarincludedir = $(includedir)/claws-mail/plugins/vcalendar
75 vcalendarinclude_HEADERS = \
76         vcal_interface.h
77  
78 vcalendar_la_LDFLAGS = \
79         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
80         -avoid-version -module \
81         $(GTK_LIBS)
82
83 vcalendar_la_DEPENDENCIES = $(plugin_deps)
84
85 vcalendar_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
86         $(GTK_LIBS) \
87         $(CURL_LIBS) \
88         $(top_builddir)/src/plugins/vcalendar/libical/libical/libical.la
89
90 vcalendar_la_CPPFLAGS = \
91         $(IFLAGS) \
92         $(GLIB_CFLAGS) \
93         $(GTK_CFLAGS) \
94         $(CURL_CFLAGS)
95
96 clean-local:
97         rm -f libclaws.a