INCLUDES = -I$(srcdir)/../../taskmanager $(all_includes)
METASOURCES = AUTO

#
# Library implementing the core functionality
#
lib_LTLIBRARIES = libkasbar.la

libkasbar_la_SOURCES =	kasbar.cpp kasitem.cpp \
			kastaskitem.cpp	kastasker.cpp kaspopup.cpp \
			kastaskpopup.cpp kasstartupitem.cpp \
			kasaboutdlg.cpp kasprefsdlg.cpp kasclockitem.cpp \
			kasgroupitem.cpp kasresources.cpp kasgrouper.cpp \
			kasloaditem.cpp

libkasbar_la_LDFLAGS = $(all_libraries) -version-info 1:0:0 -no-undefined
libkasbar_la_LIBADD = $(LIB_TDEUI) ../../taskmanager/libtaskmanager.la

#
# Panel Extension
#
kde_module_LTLIBRARIES = kasbar_panelextension.la

kasbar_panelextension_la_SOURCES =  kasbarextension.cpp
kasbar_panelextension_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries)
kasbar_panelextension_la_LIBADD =  libkasbar.la

noinst_HEADERS = kasbar.h kasitem.h kasbarextension.h \
		kastaskitem.h kastasker.h kaspopup.h kasstartupitem.h \
		kasaboutdlg.h kasprefsdlg.h version.h kasclockitem.cpp \
		kasgroupitem.h kasresources.h kasgrouper.h kasloaditem.cpp

lnkdir = $(kde_datadir)/kicker/extensions
lnk_DATA = kasbarextension.desktop

EXTRA_DIST = $(lnk_DATA)

bin_PROGRAMS = kasbar
kasbar_SOURCES = kasbarapp.cpp
kasbar_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_TQT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
kasbar_LDADD = 	libkasbar.la \
		$(LIB_TQT) $(LIB_TDECORE) $(LIB_TDEUI)


messages:
	$(XGETTEXT) *.cpp *.h -o $(podir)/kasbarextension.pot

srcdoc:
	$(kde_bindir)/kdoc -a -p -d classdocs -n 'Kasbar2' ../../taskmanager/*.h *.h -lqt -ltdecore -ltdeui

.PHONY:	changes
changes:
	cvs2cl.pl --window 3600 -w --hide-filenames -I '.desktop'

KDE_OPTIONS = nofinal
