bin_PROGRAMS = juk
check_PROGRAMS = tagguessertest

juk_SOURCES = \
	advancedsearchdialog.cpp \
	actioncollection.cpp \
	akodeplayer.cpp \
	artsplayer.cpp \
	cache.cpp \
	categoryreaderinterface.cpp \
	collectionlist.cpp \
	coverdialog.cpp \
	coverdialogbase.ui \
	covericonview.cpp \
	coverinfo.cpp \
	covermanager.cpp \
	deletedialog.cpp \
	deletedialogbase.ui \
	directorylist.cpp \
	directorylistbase.ui \
	dynamicplaylist.cpp \
	exampleoptions.cpp \
	exampleoptionsbase.ui \
	folderplaylist.cpp \
	filehandle.cpp \
	filerenamer.cpp \
	filerenamerbase.ui \
	filerenameroptions.cpp \
	filerenameroptionsbase.ui \
	filerenamerconfigdlg.cpp \
	gstreamerplayer.cpp \
	webimagefetcher.cpp \
	webimagefetcherdialog.cpp \
	historyplaylist.cpp \
	juk.cpp \
	jukIface.skel \
	k3bexporter.cpp \
	keydialog.cpp \
	main.cpp \
	mediafiles.cpp \
	musicbrainzquery.cpp \
	nowplaying.cpp \
	playermanager.cpp \
	playlist.cpp \
	playlistbox.cpp \
	playlistcollection.cpp \
	playlistinterface.cpp \
	playlistitem.cpp \
	playlistsearch.cpp \
	playlistsplitter.cpp \
	searchplaylist.cpp \
	searchwidget.cpp \
	slideraction.cpp \
	sortedstringlist.cpp \
	splashscreen.cpp \
	statuslabel.cpp \
	stringshare.cpp \
	systemtray.cpp \
	tag.cpp \
	tageditor.cpp \
	tagguesser.cpp \
	tagguesserconfigdlg.cpp \
	tagguesserconfigdlgwidget.ui \
	tagrenameroptions.cpp \
	tagtransactionmanager.cpp \
	trackpickerdialog.cpp \
	trackpickerdialogbase.ui \
	tracksequenceiterator.cpp \
	tracksequencemanager.cpp \
	treeviewitemplaylist.cpp \
	upcomingplaylist.cpp \
	ktrm.cpp \
	viewmode.cpp

tagguessertest_SOURCES = tagguessertest.cpp tagguesser.cpp

INCLUDES= $(all_includes) $(taglib_includes) $(akode_includes) $(GST_CFLAGS) $(ARTS_CFLAGS)

##################################################
# check to see if MusicBrainz is available
##################################################
if link_lib_MB
mblibs = -ltunepimp
endif
##################################################

juk_LDADD = -lm $(LDADD_GST) $(mblibs) $(LIB_TDEIO) $(taglib_libs) $(akode_libs) $(LIB_TDEHTML) $(LIB_ARTS)
juk_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LDFLAGS_GST) $(LIB_TQT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor -lmcop -lartsflow_idl -lkmedia2_idl -lsoundserver_idl $(akode_libs)

KDE_CXXFLAGS = $(USE_EXCEPTIONS)

tagguessertest_LDADD = $(LIB_TDECORE)
tagguessertest_LDFLAGS = $(all_libraries) $(LIB_TQT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor -lmcop -lartsflow_idl -lkmedia2_idl -lsoundserver_idl

SUBDIRS = pics

rcdir = $(kde_datadir)/juk
rc_DATA = jukui.rc jukui-rtl.rc

servicemenudir = $(kde_datadir)/konqueror/servicemenus
servicemenu_DATA = jukservicemenu.desktop

METASOURCES = AUTO
KDE_ICON = AUTO
POFILES = AUTO

xdg_apps_DATA = juk.desktop

messages: rc.cpp
	$(EXTRACTRC) *.rc >> rc.cpp
	$(XGETTEXT) *.rc *.cpp *.h -o $(podir)/juk.pot
	-rm rc.cpp
KDE_OPTIONS=nofinal
