
INCLUDES =						\
	-I$(top_srcdir)					\
	$(EVOLUTION_MAIL_CFLAGS)

@EVO_PLUGIN_RULE@

plugin_DATA = org-gnome-evolution-mail-remote.eplug
plugin_LTLIBRARIES = liborg-gnome-evolution-mail-remote.la

liborg_gnome_evolution_mail_remote_la_SOURCES = \
	$(IDL_GENERATED_C)			\
	$(IDL_GENERATED_H)			\
	e-corba-utils.c				\
	e-corba-utils.h				\
	em-message-stream.c			\
	em-message-stream.h			\
	evolution-mail-folder.c			\
	evolution-mail-folder.h			\
	evolution-mail-folderlistener.c		\
	evolution-mail-folderlistener.h		\
	evolution-mail-marshal.c		\
	evolution-mail-marshal.h		\
	evolution-mail-messageiterator.c	\
	evolution-mail-messageiterator.h	\
	evolution-mail-messagestream.c		\
	evolution-mail-messagestream.h		\
	evolution-mail-session.c		\
	evolution-mail-session.h		\
	evolution-mail-sessionlistener.c	\
	evolution-mail-sessionlistener.h	\
	evolution-mail-store.c			\
	evolution-mail-store.h			\
	evolution-mail-storelistener.c		\
	evolution-mail-storelistener.h		\
	mail-remote.c

liborg_gnome_evolution_mail_remote_la_LDFLAGS = -module -avoid-version

client_SOURCES = \
	client.c

client_LDADD = \
	$(EVOLUTION_MAIL_LIBS)			\
	evolution-mail-sessionlistener.o	\
	evolution-mail-storelistener.o		\
	evolution-mail-folderlistener.o		\
	evolution-mail-marshal.o		\
	evolution-mail-messagestream.o		\
	Evolution-DataServer-Mail-common.o	\
	Evolution-DataServer-Mail-stubs.o	\
	Evolution-DataServer-Mail-skels.o	\
	Evolution-common.o			\
	Evolution-stubs.o

noinst_PROGRAMS =				\
	client

# mail idl

IDL = Evolution-DataServer-Mail.idl

IDL_GENERATED_H = \
	Evolution-DataServer-Mail.h

IDL_GENERATED_C = \
	Evolution-DataServer-Mail-common.c	\
	Evolution-DataServer-Mail-skels.c	\
	Evolution-DataServer-Mail-stubs.c

EVO_GENERATED = Evolution.h Evolution-common.c Evolution-stubs.c Evolution-skels.c

$(IDL_GENERATED_H) $(IDL_GENERATED_C): $(IDL)
	$(ORBIT_IDL) -I $(srcdir) -I $(datadir)/idl $(IDL_INCLUDES) $^

$(EVO_GENERATED): $(srcdir)/Evolution.idl
	$(ORBIT_IDL) -I $(top_srcdir) -I $(top_srcdir)/shell -I $(datadir)/idl $(IDL_INCLUDES) $^

# installed idls

#idl_DATA = $(IDL)

# marshallers for glib
MARSHAL_GENERATED = evolution-mail-marshal.c evolution-mail-marshal.h
@EVO_MARSHAL_RULE@

EXTRA_DIST = 				\
	$(IDL)				\
	Evolution.idl			\
	evolution-mail-marshal.list

BUILT_SOURCES = $(IDL_GENERATED_H) $(IDL_GENERATED_C) $(MARSHAL_GENERATED) $(SHELL_GENERATED)
CLEANFILES = $(BUILT_SOURCES)
