Makefile.am 1.12 KB
Newer Older
1 2 3 4
keystoredir = $(pluginsdir)/keystore

libplaintext_keystore_plugin_la_SOURCES = keystore/plaintext.c
keystore_LTLIBRARIES = libplaintext_keystore_plugin.la
5 6 7 8 9 10

libsecret_plugin_la_SOURCES = keystore/secret.c
libsecret_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(SECRET_CFLAGS)
libsecret_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(keystoredir)'
libsecret_plugin_la_LIBADD = $(SECRET_LIBS)

11 12 13 14 15 16 17 18 19 20 21 22

# Meta-object compilation

SUFFIXES += .hpp .moc.cpp
moc_verbose = $(moc_verbose_$(V))
moc_verbose_ = $(moc_verbose__$(AM_DEFAULT_VERBOSITY))
moc_verbose_0 = @echo "  MOC   " $@;
moc_verbose__0 = $(moc_verbose_0)

.hpp.moc.cpp:
	$(moc_verbose)$(MOC) $(MOC_CPPFLAGS) -o $@ $<

23 24 25
nodist_libkwallet_plugin_la_SOURCES = keystore/kwallet.moc.cpp
CLEANFILES += $(nodist_libkwallet_plugin_la_SOURCES)
libkwallet_plugin_la_SOURCES = keystore/kwallet.cpp keystore/kwallet.hpp
26 27 28 29 30 31 32
libkwallet_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
libkwallet_plugin_la_CXXFLAGS = $(KWALLET_CXXFLAGS)
libkwallet_plugin_la_LIBADD = $(KWALLET_LIBS)
if HAVE_KWALLET
keystore_LTLIBRARIES += libkwallet_plugin.la
endif

33 34 35 36 37
keystore_LTLIBRARIES += \
	$(LTLIBsecret)

EXTRA_LTLIBRARIES += \
	libsecret_plugin.la