if include_jingle
JINGLE=jingle
JINGLE_LIBS=jingle/libkopetejabberjingle.la
JINGLE_INCLUDES=-I$(srcdir)/jingle -I$(top_builddir)/kopete/protocols/jabber/jingle
endif

METASOURCES = AUTO
SUBDIRS = ui icons libiris $(JINGLE) . tdeioslave
AM_CPPFLAGS = $(KOPETE_INCLUDES) \
	-I$(srcdir)/libiris/iris/include \
	-I$(srcdir)/libiris/iris/xmpp-im \
	-I$(srcdir)/libiris/iris/jabber \
	-I$(srcdir)/libiris/qca/src \
	-I$(srcdir)/libiris/cutestuff/util \
	-I$(srcdir)/libiris/cutestuff/network \
	-I$(srcdir)/ui \
	-I./ui \
	$(all_includes) $(JINGLE_INCLUDES)

noinst_LTLIBRARIES = libjabberclient.la
libjabberclient_la_SOURCES = \
	jabberclient.cpp \
	jabberconnector.cpp \
	jabberbytestream.cpp

kde_module_LTLIBRARIES = kopete_jabber.la

kopete_jabber_la_SOURCES = \
	jabberprotocol.cpp \
	jabberaccount.cpp \
	jabberresource.cpp \
	jabberresourcepool.cpp \
	jabberbasecontact.cpp \
	jabbercontact.cpp \
	jabbergroupcontact.cpp \
	jabbergroupmembercontact.cpp \
	jabbercontactpool.cpp \
	jabberformtranslator.cpp \
	jabberformlineedit.cpp \
	jabberchatsession.cpp \
	jabbergroupchatmanager.cpp \
	jabberfiletransfer.cpp \
	jabbercapabilitiesmanager.cpp\
	jabbertransport.cpp\
	jabberbookmarks.cpp

kopete_jabber_la_LDFLAGS = -no-undefined -module $(KDE_PLUGIN) $(all_libraries) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
kopete_jabber_la_LIBADD  = $(top_builddir)/kopete/libkopete/libkopete.la \
	ui/libkopetejabberui.la \
	libiris/iris/include/libiris.la \
	libiris/iris/jabber/libiris_jabber.la \
	libiris/iris/xmpp-core/libiris_xmpp_core.la \
	libiris/iris/xmpp-im/libiris_xmpp_im.la \
	libiris/qca/src/libqca.la \
	libiris/cutestuff/network/libcutestuff_network.la \
	libiris/cutestuff/util/libcutestuff_util.la \
	libjabberclient.la \
	$(JINGLE_LIBS)

service_DATA = kopete_jabber.desktop
servicedir = $(kde_servicesdir)

mydatadir = $(kde_datadir)/kopete_jabber
mydata_DATA = jabberchatui.rc

noinst_HEADERS = jabberresourcepool.h jabbercontact.h jabbergroupcontact.h \
	jabberclient.h
