
AM_YFLAGS = -d
AM_LFLAGS = 

if include_libkstkmdi
KMDI_SUBDIR=libkstkmdi
endif
if include_libkstkcalendarsystem
KCALENDARSYSTEM_SUBDIR=libkstkcalendarsystem
endif
if include_linux
PROCPS_COPY=sysinfo.c psversion.c
endif

SUBDIRS=$(KMDI_SUBDIR) $(KCALENDARSYSTEM_SUBDIR) . datasources extensions

bin_PROGRAMS = kst d2asc

lib_LTLIBRARIES = libkst.la
libkst_la_SOURCES = kstobject.cpp \
	kstdatasource.cpp \
	stdinsource.cpp \
	kstextension.cpp \
	kstdatacollection.cpp \
	kstdebug.cpp \
	rwlock.cpp \
	kstscalar.cpp $(PROCPS_COPY) \
	kststring.cpp

libkst_la_LDFLAGS = -version-info 1:0:0 -no-undefined $(all_libraries)
libkst_la_LIBADD = $(LIB_KPARTS) $(LIB_KMDI)

d2asc_LDFLAGS = $(all_libraries) $(KDE_RPATH)
d2asc_LDADD = libkst.la

d2asc_SOURCES = \
	d2asc.cpp \
	kstdataobject.cpp \
	kstdatacollection-nogui.cpp \
	kstvector.cpp \
	kstrvector.cpp \
	enodes.cpp \
	enodefactory.cpp \
	plugincollection.cpp \
	plugin.cpp \
	pluginxmlparser.cpp \
	pluginloader.cpp \
	eparse.c \
	escan.c

kst_SOURCES = \
	kstiface.skel \
	kstiface_impl.cpp \
	kstcombobox.cpp \
	kstwaitcondition_unix.cpp \
	kstdatadialog.ui \
	stringselector.ui \
	draggablelistbox.cpp \
	plotlistbox.cpp \
	kstdataobject.cpp \
	kstquickprogressbar.cpp \
	kstquicklabel.cpp \
	kstscalartable.cpp \
	kstvectortable.cpp \
	kstfittable.cpp \
	kstlogtable.cpp \
	kstplotbase.cpp \
	kst2dplot.cpp \
	kstbackbuffer.cpp \
	kstviewwidget.cpp \
	kstviewlabel.cpp \
	kstviewobjectfactory.cpp \
	kstviewobject.cpp \
	kstplotgroup.cpp \
	kstborderedviewobject.cpp \
	ksttoplevelview.cpp \
	kstmetaplot.cpp \
	kstdrag.cpp \
	kstplotdrag.cpp \
	kstplugin.cpp \
	kstplugindialog_i.cpp \
	fitdialog.ui \
	filterdialog.ui \
	plotdialog.ui \
	kstplotdialog_i.cpp \
	kstfitdialog_i.cpp \
	kstfilterdialog_i.cpp \
	plugin.cpp \
	pluginxmlparser.cpp \
	pluginloader.cpp \
	plugincollection.cpp \
	extensiondlg.ui \
	extensionmgr.cpp \
	kstcolorsequence.cpp \
	kstdatacollection-gui.cpp \
	kstdatamanager_i.cpp \
	kstvectordialog_i.cpp \
	ksteqdialog_i.cpp \
	ksthsdialog_i.cpp \
	kstpsddialog_i.cpp \
	kstgraphfiledialog_i.cpp \
	kstimagedialog_i.cpp \
	kstquickstartdialog_i.cpp \
	updatethread.cpp \
	emailthread.cpp \
	enodes.cpp \
	enodefactory.cpp \
	kstequation.cpp \
	kstcurvehint.cpp \
	kstprintoptionspage.cpp \
	kstviewscalarsdialog_i.cpp \
	kstviewvectorsdialog_i.cpp \
	kstviewfitsdialog_i.cpp \
	kstchangenptsdialog_i.cpp \
	kstchangefiledialog_i.cpp \
	ksteventmonitor_i.cpp \
	kstdebugdialog_i.cpp \
	kstlabeldialog_i.cpp \
	kstviewlabeldialog_i.cpp \
	kstmatrixdialog_i.cpp \
	kstpsd.cpp \
	kstbasecurve.cpp \
	kstrvector.cpp \
	kstpoint.cpp \
	kstlabel.cpp \
	kstlegend.cpp \
	kstvcurve.cpp \
	kstvector.cpp \
	kstmatrix.cpp \
	kstimage.cpp \
	kstvectordefaults.cpp \
	kstdefaultnames.cpp \
	kstalignment.cpp \
	ksteventmonitorentry.cpp \
	ksthistogram.cpp \
	kstcurvedialog_i.cpp \
	fftsg_h.c \
	eventmonitor.ui \
	debugdialog.ui \
	datawizard.ui \
	matrixselector.ui \
	stringeditor.ui \
	scalarselector.ui \
	scalareditor.ui \
	vectorselector.ui \
	datarangewidget.ui \
	fftoptionswidget.ui \
	curveplacementwidget.ui \
	curveappearancewidget.ui \
	changefiledialog.ui \
	graphfiledialog.ui \
	viewscalarsdialog.ui \
	viewvectorsdialog.ui \
	viewfitsdialog.ui \
	changenptsdialog.ui \
	vectordialog.ui \
	curvedialog.ui \
	eqdialog.ui \
	hsdialog.ui \
	psddialog.ui \
	imagedialog.ui \
	matrixdialog.ui \
	datamanager.ui \
	plugindialog.ui \
	pluginmanager.ui \
	vectorsavedialog.ui \
	kstlabeldialog.ui \
	kstviewlabeldialog.ui \
	kstsettingsdlg.ui \
	quickstartdialog.ui \
	kstsettings.cpp \
	kstdoc.cpp \
	kstviewwindow.cpp \
	kst.cpp \
	main.cpp \
	eparse.c \
	escan.c

#	eparse.y \
#	escan.l

include_HEADERS = kstdatasource.h kstobject.h

kst_LDADD = $(LIB_KDEPRINT) $(LIB_KCALENDARSYSTEM) libkst.la
kst_LDFLAGS = $(all_libraries) $(KDE_RPATH)

KDE_ICON = kst

services_DATA = kstplugin.desktop kstdatasourceplugin.desktop kstfilter.desktop kstextension.desktop
servicesdir = $(kde_servicetypesdir)/kst

apps_DATA = kst.desktop
appsdir = $(kde_appsdir)/Applications/Sciences

iconsdir = $(kde_icondir)/hicolor/22x22/actions/
icons_DATA = kst_zoomtie.png kst_zoomxy.png kst_zoomx.png kst_zoomy.png \
	kst_changefile.png kst_changenpts.png kst_editplots.png \
	kst_datamanager.png kst_back.png kst_advance.png \
	kst_graphfile.png kst_layoutmode.png kst_datamode.png \
	kst_datawizard.png

mimedir = $(kde_mimedir)/application
mime_DATA = x-kst.desktop

# set the include path for X, qt and KDE
INCLUDES= $(KMDI_INCLUDES) $(KCALENDARSYSTEM_INCLUDES) $(all_includes)

rcdir = $(kde_datadir)/kst
rc_DATA = kstui.rc

messages: rc.cpp
	LIST=`find . -name \*.h -o -name \*.hh -o -name \*.H -o -name \*.hxx -o -name \*.hpp -o -name \*.cpp -o -name \*.cc -o -name \*.cxx -o -name \*.ecpp -o -name \*.C`; \
	if test -n "$$LIST"; then \
	 $(XGETTEXT) $$LIST -o $(podir)/kst.pot; \
	fi

curveappearancewidget.o: curveappearancewidget.ui.h curveappearancewidget.ui
curveplacementwidget.o: curveplacementwidget.ui.h curveplacementwidget.ui
pluginmanager.o: pluginmanager.ui.h pluginmanager.ui
matrixselector.o: matrixselector.ui.h matrixselector.ui
vectorselector.o: vectorselector.ui.h vectorselector.ui
scalarselector.o: scalarselector.ui.h scalarselector.ui
stringselector.o: stringselector.ui.h stringselector.ui
vectorsavedialog.o: vectorsavedialog.ui.h vectorsavedialog.ui
kstsettingsdlg.o: kstsettingsdlg.ui.h kstsettingsdlg.ui
datawizard.o: datawizard.ui.h datawizard.ui
debugdialog.o: debugdialog.ui.h debugdialog.ui
kstdatadialog.o: kstdatadialog.ui.h kstdatadialog.ui
fftoptionswidget.o: fftoptionswidget.ui.h fftoptionswidget.ui

METASOURCES=AUTO
