INCLUDES = 					\
	-I$(top_srcdir)				\
	-I$(top_srcdir)/calendar		\
	-I$(top_builddir)/calendar/cal-client	\
	-I$(top_srcdir)/libical/src/libical	\
	-I$(top_builddir)/libical/src/libical	\
	-I$(top_srcdir)/e-util			\
	-I$(top_builddir)/e-util		\
	$(BONOBO_GNOME_CFLAGS)			\
	$(BONOBO_CONF_CFLAGS)			\
	$(PISOCK_CFLAGS)			\
	$(GNOME_PILOT_CFLAGS)

# Calendar Conduit
e_calendar_conduitsdir=$(libdir)/gnome-pilot/conduits
e_calendar_conduits_LTLIBRARIES = libecalendar_conduit.la

libecalendar_conduit_la_SOURCES = 	\
	calendar-conduit.c		\
	calendar-conduit.h		\
	calendar-conduit-config.h

libecalendar_conduit_la_LDFLAGS = -module -avoid-version
libecalendar_conduit_la_LIBADD = 					\
	$(top_builddir)/calendar/cal-client/libcal-client-static.la	\
	$(top_builddir)/calendar/cal-util/libcal-util-static.la		\
	$(top_builddir)/libversit/libversit.la				\
	$(top_builddir)/libical/src/libical/libical-static.la		\
	$(top_builddir)/libwombat/libwombat-static.la		 	\
	$(top_builddir)/e-util/libeconduit-static.la	 		\
	$(BONOBO_GNOME_LIBS)						\
	$(BONOBO_CONF_LIBS)						\
	$(PISOCK_LIBS) 							\
	$(GNOME_LIBDIR) 						\
	$(GNOME_LIBS)

e-calendar.conduit: e-calendar.conduit.in Makefile
	sed -e 's^\@prefix\@^$(prefix)^g' 				\
	    -e 's^\@datadir\@^$(datadir)^g' 				\
	    < $(srcdir)/e-calendar.conduit.in > e-calendar.conduit.tmp 	\
	&& mv e-calendar.conduit.tmp e-calendar.conduit

Conduitdir = $(datadir)/gnome-pilot/conduits/
Conduit_DATA = e-calendar.conduit

EXTRA_DIST = \
	e-calendar.conduit.in

install-data-local:
	$(mkinstalldirs) $(Conduitdir)
