INCLUDES = -I$(top_srcdir)/libtdenetwork $(GPGME_CFLAGS) $(all_includes)

SUBDIRS = pics kleo backends ui . tests

lib_LTLIBRARIES = libkleopatra.la

libkleopatra_la_SOURCES = \
			cryptplug.cpp \
			cryptplugwrapper.cpp \
			cryptplugwrapperlist.cpp \
			cryptplugfactory.cpp

libkleopatra_la_LIBADD = \
			kleo/libkleopatra_core.la \
			backends/qgpgme/libkleopatra_backend_qgpgme.la \
			backends/chiasmus/libkleopatra_backend_chiasmus.la \
			ui/libkleopatra_ui.la \
			\
			$(top_builddir)/libtdenetwork/qgpgme/libqgpgme.la \
			$(LIB_TDEIO) $(LIB_TDEUI)

# Disabled for tdepim-3.3, see also kleo/cryptobackendfactory.cpp
# backends/kpgp/libkleopatra_backend_kpgp.la

# --version-info CURRENT:REVISION:AGE
#   (Code changed:                      REVISION++)
#   (Interfaces added/removed/changed:  CURRENT++, REVISION=0)
#   (Interfaces added:                  AGE++)
#   (Interfaces removed/changed:        AGE=0)
libkleopatra_la_LDFLAGS = $(all_libraries) -version-info 1:0:0 -no-undefined

METASOURCES = AUTO

# remove the .desktop suffix on install (which is needed for translation)
install-data-local:
	$(mkinstalldirs) $(DESTDIR)$(kde_confdir)
	$(INSTALL_DATA) $(srcdir)/libkleopatrarc.desktop $(DESTDIR)$(kde_confdir)/libkleopatrarc

uninstall-local:
	rm -f $(DESTDIR)$(kde_confdir)/libkleopatrarc

messages: #rc.cpp
	$(EXTRACTRC) */*.ui > rc.cpp
	$(XGETTEXT) *.cpp *.h \
	kleo/*.cpp kleo/*.h \
	ui/*.cpp ui/*.h \
	backends/*/*.cpp backends/*/*.h -o $(podir)/libkleopatra.pot

include $(top_srcdir)/admin/Doxyfile.am
