eutilincludedir = $(privincludedir)/e-util
econdincludedir = $(privincludedir)/e-conduit

INCLUDES =								\
	-I$(top_srcdir)							\
	-DEVOLUTION_IMAGES=\""$(imagesdir)"\"				\
	-DEVOLUTION_CATEGORY_ICONS=\""$(imagesdir)/categories"\"	\
	-DG_LOG_DOMAIN=\"e-utils\"					\
	$(GNOME_PILOT_CFLAGS)						\
	$(E_UTIL_CFLAGS)

privlib_LTLIBRARIES = libeutil.la libeconduit.la

eutilinclude_HEADERS = 				\
	e-account-list.h			\
	e-account.h				\
	e-bconf-map.h				\
	e-categories-config.h			\
	e-categories-master-list-wombat.h	\
	e-component-listener.h			\
	e-config-listener.h			\
	e-corba-utils.h				\
	e-dialog-utils.h			\
	e-dialog-widgets.h			\
	e-folder-map.h				\
	e-gtk-utils.h				\
	e-gui-utils.h				\
	e-host-utils.h				\
	e-html-utils.h				\
	e-iterator.h				\
	e-lang-utils.h				\
	e-list-iterator.h			\
	e-list.h				\
	e-memory.h				\
	e-meta.h				\
	e-mktemp.h				\
	e-msgport.h				\
	e-passwords.h				\
	e-path.h				\
	e-request.h				\
	e-sexp.h				\
	e-signature.h				\
	e-signature-list.h			\
	e-time-utils.h				\
	e-trie.h				\
	e-uid.h					\
	e-url.h					\
	md5-utils.h

libeutil_la_SOURCES =				\
	$(MARSHAL_GENERATED)			\
	$(eutilinclude_HEADERS)			\
	e-account-list.c			\
	e-account.c				\
	e-bconf-map.c				\
	e-folder-map.c				\
	e-categories-config.c			\
	e-categories-master-list-wombat.c	\
	e-component-listener.c			\
	e-config-listener.c			\
	e-corba-utils.c				\
	e-dialog-utils.c			\
	e-dialog-widgets.c			\
	e-gtk-utils.c				\
	e-gui-utils.c				\
	e-host-utils.c				\
	e-html-utils.c				\
	e-iterator.c				\
	e-lang-utils.c				\
	e-list-iterator.c			\
	e-list.c				\
	e-memory.c				\
	e-meta.c				\
	e-mktemp.c				\
	e-msgport.c				\
	e-passwords.c				\
	e-path.c				\
	e-request.c				\
	e-sexp.c				\
	e-signature.c				\
	e-signature-list.c			\
	e-time-utils.c				\
	e-trie.c				\
	e-uid.c					\
	e-url.c					\
	eggtrayicon.c				\
	eggtrayicon.h				\
	md5-utils.c

MARSHAL_GENERATED = e-util-marshal.c e-util-marshal.h
@EVO_MARSHAL_RULE@

libeutil_la_LIBADD = $(E_UTIL_LIBS)

econdinclude_HEADERS =		\
	e-pilot-map.h		\
	e-pilot-settings.h	\
	e-pilot-util.h

pilot_sources = \
	$(econdinclude_HEADERS)	\
	e-pilot-map.c		\
	e-pilot-settings.c	\
	e-pilot-util.c

if ENABLE_PILOT_CONDUITS
pilot_compile = $(pilot_sources)
else
pilot_compile = md5-utils.c
endif

libeconduit_la_SOURCES = $(pilot_compile)

EXTRA_DIST =				\
	$(pilot_sources)		\
	ChangeLog.pre-1-4		\
	e-util-marshal.list

BUILT_SOURCES = $(MARSHAL_GENERATED)
CLEANFILES    = $(BUILT_SOURCES)

dist-hook:
	cd $(distdir); rm -f $(BUILT_SOURCES)