imagesdir = $(datadir)/images/evolution

bin_PROGRAMS = evolution

INCLUDES = 						\
	-I$(top_srcdir)/widgets				\
	-I$(top_srcdir)/widgets/misc			\
	-I$(top_srcdir)					\
	$(BONOBO_GNOME_CFLAGS)				\
	-DEVOLUTION_IMAGES=\""$(imagesdir)"\"		\
	-DEVOLUTION_VERSION=\""$(VERSION)"\"		\
	-DEVOLUTION_LOCALEDIR=\""$(datadir)/locale"\"   \
	-DEVOLUTION_DATADIR=\""$(datadir)"\"            \
	-DG_LOG_DOMAIN=\"evolution-shell\"

EVOLUTION_CORBA_GENERATED = 	\
	Evolution.h		\
	Evolution-common.c	\
	Evolution-skels.c	\
	Evolution-stubs.c

CLEANFILES = $(EVOLUTION_CORBA_GENERATED)

IDLS = 					\
	Evolution.idl			\
	Evolution-Shell.idl		\
	Evolution-ShellComponent.idl	\
	Evolution-Storage.idl

evolution_SOURCES = 			\
	$(EVOLUTION_CORBA_GENERATED)	\
	e-corba-storage.c		\
	e-corba-storage.h		\
	e-corba-storage-registry.c	\
	e-corba-storage-registry.h	\
	e-folder-type-registry.c	\
	e-folder-type-registry.h	\
	e-folder.c			\
	e-folder.h			\
	e-local-folder.c		\
	e-local-folder.h		\
	e-local-storage.c		\
	e-local-storage.h		\
	e-setup.c			\
	e-setup.h			\
	e-component-registry.h		\
	e-component-registry.c		\
	e-shell-constants.h		\
	e-shell-folder-title-bar.c	\
	e-shell-folder-title-bar.h	\
	e-shell-utils.c			\
	e-shell-utils.h			\
	e-shell-view-menu.c		\
	e-shell-view-menu.h		\
	e-shell-view.c			\
	e-shell-view.h			\
	e-shell.c			\
	e-shell.h			\
	e-shortcuts-view.c		\
	e-shortcuts-view.h		\
	e-shortcuts.c			\
	e-shortcuts.h			\
	e-storage-set-view.c		\
	e-storage-set-view.h		\
	e-storage-set.c			\
	e-storage-set.h			\
	e-storage.c			\
	e-storage.h			\
	evolution-shell-component.c	\
	evolution-shell-component.h	\
	evolution-storage.c		\
	evolution-storage.h		\
	main.c

Evolution-impl.o: Evolution.h

$(EVOLUTION_CORBA_GENERATED): $(IDLS)
	$(ORBIT_IDL) -I$(datadir)/idl -I`$(GNOME_CONFIG) --datadir`/idl -I$(srcdir) $(srcdir)/Evolution.idl

evolution_LDADD =						\
	$(top_builddir)/widgets/shortcut-bar/libshortcut-bar.a  \
	$(top_builddir)/widgets/e-paned/libepaned.a		\
	$(top_builddir)/widgets/e-text/libetext.a		\
	$(top_builddir)/widgets/misc/libemiscwidgets.a		\
	$(top_builddir)/e-util/libeutil.la			\
	$(BONOBO_GNOME_LIBS)

EXTRA_DIST = $(IDLS)

if ENABLE_PURIFY
PLINK = $(LIBTOOL) --mode=link $(PURIFY) $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@

all-local: evolution.pure

evolution.pure: evolution
	@rm -f evolution.pure
	$(PLINK) $(evolution_LDFLAGS) $(evolution_OBJECTS) $(evolution_LDADD) $(LIBS)

endif