clean up former extra-plugins Makefiles
[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 if BUILD_VCALENDAR_PLUGIN
48 plugin_LTLIBRARIES = vcalendar.la
49 endif
50
51 INCLUDES= \
52         -I$(top_srcdir)/src \
53         -I$(top_srcdir)/src/common \
54         -I$(top_builddir)/src/common \
55         -I$(top_srcdir)/src/gtk \
56         -I$(top_srcdir)/src/plugins/vcalendar/libical/libical
57
58 vcalendar_la_SOURCES = \
59         plugin.c \
60         vcalendar.c vcalendar.h \
61         vcal_manager.c vcal_manager.h \
62         vcal_folder.c vcal_folder.h \
63         vcal_meeting_gtk.c vcal_meeting_gtk.h \
64         vcal_prefs.c vcal_prefs.h \
65         vcal_dbus.c vcal_dbus.h \
66         icaltime_as_local.c icaltime_as_local.h \
67         common-views.c common-views.h \
68         day-view.c month-view.c
69
70 vcalendarincludedir = $(includedir)/claws-mail/plugins/vcalendar
71 vcalendarinclude_HEADERS = \
72         vcal_interface.h
73  
74 vcalendar_la_LDFLAGS = \
75         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
76         -avoid-version -module \
77         $(GTK_LIBS)
78
79 vcalendar_la_DEPENDENCIES = $(plugin_deps)
80
81 vcalendar_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
82         $(GTK_LIBS) \
83         $(CURL_LIBS) \
84         $(top_builddir)/src/plugins/vcalendar/libical/libical/libical.la
85
86 AM_CPPFLAGS = \
87         $(GLIB_CFLAGS) \
88         $(GTK_CFLAGS) \
89         $(CURL_CFLAGS)
90
91 clean-local:
92         rm -f libclaws.a