# $Id$

mimedir = $(kde_mimedir)/text
picsdir  = $(kde_datadir)/kscd/pics

INCLUDES= -I$(top_srcdir) -I$(top_builddir)/libkcddb $(all_includes)
METASOURCES = AUTO

####### Files

noinst_HEADERS = kscd.h bwlednum.h ledlamp.h \
                 version.h docking.h configWidget.h

kscd_SOURCES = panel.ui kscd.cpp kscd.skel ledlamp.cpp \
               docking.cpp bwlednum.cpp \
               configWidget.cpp configWidgetUI.ui prefs.kcfgc cddbdlg.cpp

noinst_LTLIBRARIES = libkcompactdisc.la
libkcompactdisc_la_SOURCES = kcompactdisc.cpp

libkcompactdisc_la_LIBADD = $(top_builddir)/kscd/libwm/libworkman.la
libkcompactdisc_la_LDFLAGS = $(all_libraries) -lpthread

kde_kcfg_DATA = kscd.kcfg

kscd_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
kscd_LDADD = $(LIBCDROM) $(LIBCDAUDIO) \
	     $(LIBFPE) $(LIB_KIO) -lkutils $(top_builddir)/libkcddb/libkcddb.la \
	     libkcompactdisc.la -lpthread

profiledata_DATA = kscd.profile.xml
profiledatadir = $(kde_datadir)/profiles

servicedata_DATA = audiocd_play.desktop
servicedatadir = $(kde_datadir)/konqueror/servicemenus

DISTCLEANFILES = config.h

bin_PROGRAMS = kscd
# Don't Build cddaslave. It doesn't work.
# cddaslave

#config.h: kscd-script
#$(SHELL) $(srcdir)/kscd-script

SUBDIRS = bitmaps libwm

bin_SCRIPTS = workman2cddb.pl

kscdicondir = $(kde_datadir)/kscd/icons
kscdicon_ICON = cdsmall
KDE_ICON = kscd

xdg_apps_DATA = kscd.desktop

mime_DATA = xmcd.desktop

messages: rc.cpp
	$(XGETTEXT) *.cpp -o $(podir)/kscd.pot

cdrom.c:config.h
plat_bsd386.c:config.h
plat_freebsd.c:config.h
plat_hpux.c:config.h
plat_irix.c:config.h
plat_linux.c:config.h
plat_news.c:config.h
plat_osf1.c:config.h
plat_scor5.c:config.h
plat_sun.c:config.h
plat_sun_audio.c:config.h
plat_sun_cdda.c:config.h
plat_svr4.c:config.h
plat_ultrix.c:config.h

KDE_OPTIONS = nofinal


cddbdlg.o: ../libkcddb/configbase.h ../libkcddb/cdinfodialogbase.h
configWidget.o: ../libkcddb/configbase.h
docking.o: ../libkcddb/configbase.h
kscd.o: ../libkcddb/configbase.h
kscd_skel.o: ../libkcddb/configbase.h panel.h prefs.h configWidgetUI.h