baca92a0f7f24211420f01b52c4ad520a370bb3f
[claws.git] / src / plugins / vcalendar / Makefile.am
1 SUBDIRS = libical
2 EXTRA_DIST = claws.def plugin.def version.rc
3
4 if OS_WIN32
5
6 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
7      `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
8      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
9
10 %.lo : %.rc
11         $(LTRCCOMPILE) -i $< -o $@
12
13 plugin_res = version.lo
14 plugin_res_ldflag = -Wl,.libs/version.o
15
16 export_symbols = -export-symbols $(srcdir)/plugin.def
17
18 plugin_deps = libclaws.a $(plugin_res) plugin.def
19
20 libclaws.a: claws.def
21         $(DLLTOOL) --output-lib $@ --def $<
22
23 plugin_ldadd = -L. -lclaws
24
25 else
26 plugin_res =
27 plugin_res_ldflag =
28 export_symbols =
29 plugin_deps =
30 plugin_ldadd =
31 endif
32
33 if PLATFORM_WIN32
34 no_undefined = -no-undefined
35 else
36 no_undefined =
37 endif
38
39 if CYGWIN
40 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
41 else
42 cygwin_export_lib = 
43 endif
44
45 plugindir = $(pkglibdir)/plugins
46
47 plugin_LTLIBRARIES = vcalendar.la
48
49 INCLUDES= \
50         -I$(top_srcdir)/src \
51         -I$(top_srcdir)/src/common \
52         -I$(top_builddir)/src/common \
53         -I$(top_srcdir)/src/gtk \
54         -I$(top_srcdir)/src/plugins/vcalendar/libical/libical
55
56 vcalendar_la_SOURCES = \
57         plugin.c \
58         vcalendar.c vcalendar.h \
59         vcal_manager.c vcal_manager.h \
60         vcal_folder.c vcal_folder.h \
61         vcal_meeting_gtk.c vcal_meeting_gtk.h \
62         vcal_prefs.c vcal_prefs.h \
63         vcal_dbus.c vcal_dbus.h \
64         icaltime_as_local.c icaltime_as_local.h \
65         common-views.c common-views.h \
66         day-view.c month-view.c
67
68 vcalendarincludedir = $(includedir)/claws-mail/plugins/vcalendar
69 vcalendarinclude_HEADERS = \
70         vcal_interface.h
71  
72 vcalendar_la_LDFLAGS = \
73         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
74         -avoid-version -module \
75         $(GTK_LIBS)
76
77 vcalendar_la_DEPENDENCIES = $(plugin_deps)
78
79 vcalendar_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
80         $(GTK_LIBS) \
81         $(top_builddir)/src/plugins/vcalendar/libical/libical/libical.la
82
83 AM_CPPFLAGS = \
84         $(CLAWS_MAIL_CFLAGS) \
85         $(GLIB_CFLAGS) \
86         $(GTK_CFLAGS) \
87         -DLOCALEDIR=\""$(localedir)"\"
88
89 clean-local:
90         rm -f libclaws.a