KDE_OPTIONS = noautodist

METASOURCES = AUTO
INCLUDES = $(all_includes)  -I$(top_srcdir) -I.

# since some of the subdirs are conditional, we need to define DIST_SUBDIRS
SUBDIRS = interfaces @OFX_IMPORTERPLUGIN@
DIST_SUBDIRS = interfaces ofximport

# The library containing the plugin base class
lib_LTLIBRARIES = libkmm_plugin.la
libkmm_plugin_la_SOURCES = kmymoneyplugin.cpp pluginloader.cpp viewinterface.cpp statementinterface.cpp importinterface.cpp
libkmm_plugin_la_LDFLAGS = $(all_libraries) -version-info 0:0:0

#definition of the service type
kde_servicetypes_DATA = kmymoneyplugin.desktop kmymoneyimporterplugin.desktop

# make sure this lib is build before any subdirectory
BUILT_SOURCES = libkmm_plugin.la

pluginsincludedir = $(includedir)/kmymoney
pluginsinclude_HEADERS = kmymoneyplugin.h pluginloader.h viewinterface.h statementinterface.h importinterface.h

EXTRA_DIST = kmymoneyplugin.desktop kmymoneyimporterplugin.desktop
