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

3 4
libmemory_keystore_plugin_la_SOURCES = keystore/memory.c
keystore_LTLIBRARIES = libmemory_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
libkwallet_plugin_la_CXXFLAGS = $(AM_CXXFLAGS) $(KWALLET_CXXFLAGS)
27 28 29 30 31
libkwallet_plugin_la_LIBADD = $(KWALLET_LIBS)
if HAVE_KWALLET
keystore_LTLIBRARIES += libkwallet_plugin.la
endif

32 33 34 35 36 37 38 39
libkeychain_plugin_la_SOURCES = keystore/keychain.m
libkeychain_plugin_la_OBJCFLAGS = $(AM_CFLAGS) -fobjc-arc
libkeychain_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(keystoredir)' -Wl,-framework,Foundation -Wl,-framework,Security

if HAVE_DARWIN
keystore_LTLIBRARIES += libkeychain_plugin.la
endif

40 41 42 43 44
keystore_LTLIBRARIES += \
	$(LTLIBsecret)

EXTRA_LTLIBRARIES += \
	libsecret_plugin.la