Commit 0b751a90 authored by Stef Walter's avatar Stef Walter

Makefile.am: Use a single non-recursive Makefile

This allows all the code to be built in parallel, and only
rebuilding stuff that's changed when developing. Much quicker.

In the meantime disable the p11-tests checks, which
were very rarely used. We'll need to migrate them to TAP.
parent 93008940
NULL =
if WITH_PAM
PAM_DIR = pam
else
PAM_DIR =
endif
SUBDIRS = \
. \
egg \
pkcs11 \
schema \
daemon \
tool \
testing \
$(PAM_DIR) \
po
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
......@@ -49,7 +36,7 @@ dist-hook:
echo Creating ChangeLog && \
( cd "$(top_srcdir)" && \
echo '# Generate automatically. Do not edit.'; echo; \
$(top_srcdir)/missing --run git log $(CHANGELOG_START).. --stat --date=short ) > ChangeLog.tmp \
git log $(CHANGELOG_START).. --stat --date=short ) > ChangeLog.tmp \
&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
|| ( rm -f ChangeLog.tmp ; \
echo Failed to generate ChangeLog >&2 ); \
......@@ -60,22 +47,8 @@ dist-hook:
install-pam:
@echo "WARNING: install-pam is no longer used, use the --with-pam-dir configure option instead"
if WITH_COVERAGE
coverage:
mkdir -p testing/coverage
$(LCOV) --directory docs/ --zerocounters
$(LCOV) --directory . --capture --output-file testing/coverage.info
$(GENHTML) --output-directory testing/coverage testing/coverage.info
$(LCOV) --directory . --zerocounters
@echo "file://$(abs_top_builddir)/testing/coverage/index.html"
clear-coverage:
$(LCOV) --directory . --zerocounters
endif
if ENABLE_DOC
SUBDIRS += docs
# include docs/Makefile.am
distcheck-hook:
@true
......@@ -89,3 +62,140 @@ endif
upload-release: $(DIST_ARCHIVES)
scp $(DIST_ARCHIVES) master.gnome.org:
ssh master.gnome.org ftpadmin install $(DIST_ARCHIVES)
asn1-reparse:
for a in $(ASN1_FILES); do \
asn1Parser -o $$a.h $a \
sed -i 's|#include.*|/* \0 */|' $$a.h \
done
test: $(TEST_PROGS)
gtester --verbose -m $(TEST_MODE) --g-fatal-warnings $(TEST_PROGS)
check-local: test
all-local: $(check_PROGRAMS)
TEST_ARGS =
TEST_SUPPRESSIONS = $(top_builddir)/build/valgrind-suppressions
perform-memcheck: $(TEST_PROGS)
make -C $(top_builddir)/build all
@for test in $(TEST_PROGS); do \
G_SLICE=always-malloc libtool --mode=execute \
valgrind --trace-children=no --gen-suppressions=all \
--suppressions=$(TEST_SUPPRESSIONS) \
--leak-check=full --show-reachable=yes --num-callers=16 \
--quiet --error-exitcode=3 \
$(builddir)/$$test $(TEST_ARGS) || exit 3; \
done
coverage:
mkdir -p $(top_builddir)/build/coverage
$(LCOV) --directory . --capture --output-file $(top_builddir)/build/coverage.info
$(GENHTML) --output-directory $(top_builddir)/build/coverage $(top_builddir)/build/coverage.info
$(LCOV) --directory . --zerocounters
@echo "file://$(abs_top_builddir)/build/coverage/index.html"
clear-coverage:
$(LCOV) --directory . --zerocounters
# Set the relevant capabilities on the daemon
if WITH_CAPS
install-caps:
setcap cap_ipc_lock=ep $(DESTDIR)$(bindir)/gnome-keyring-daemon || true
else
install-caps:
@true
endif
# Install a link from gnome-keyring > gnome-keyring-@GKR_MAJOR@ to maintain compatibility
install-exec-hook: install-caps
@test -e "$(DESTDIR)$(bindir)/gnome-keyring" || (cd $(DESTDIR)$(bindir) && $(LN_S) gnome-keyring-@GKR_MAJOR@ gnome-keyring)
V_SED = $(V_SED_$(V))
V_SED_ = $(V_SED_$(AM_DEFAULT_VERBOSITY))
V_SED_0 = @echo " SED " $@;
SED_SUBST = sed \
-e 's,[@]datadir[@],$(datadir),g' \
-e 's,[@]libexecdir[@],$(libexecdir),g' \
-e 's,[@]libdir[@],$(libdir),g' \
-e 's,[@]includedir[@],$(includedir),g' \
-e 's,[@]datarootdir[@],$(datarootdir),g' \
-e 's,[@]sysconfdir[@],$(sysconfdir),g' \
-e 's,[@]bindir[@],$(bindir),g' \
-e 's,[@]exec_prefix[@],$(exec_prefix),g' \
-e 's,[@]prefix[@],$(prefix),g' \
-e 's,[@]abs_srcdir[@],$(abs_srcdir),g' \
-e 's,[@]srcdir[@],$(srcdir),g' \
-e 's,[@]PACKAGE[@],$(PACKAGE),g' \
-e 's,[@]VERSION[@],$(VERSION),g' \
$(NULL)
SUFFIXES = .desktop.in .desktop.in.in .service .service.in
.service.in.service:
$(V_SED) ( $(SED_SUBST) $< > $@.tmp ) && mv $@.tmp $@
.desktop.in.in.desktop.in:
$(V_SED) ( $(SED_SUBST) $< > $@.tmp ) && mv $@.tmp $@
@INTLTOOL_DESKTOP_RULE@
prep-builddir:
$(MKDIR_P) $(builddir)/daemon
$(MKDIR_P) $(builddir)/schema
AM_CPPFLAGS = \
-DPREFIX=\""$(prefix)"\" \
-DBINDIR=\""$(bindir)"\" \
-DLIBEXECDIR=\""$(libexecdir)"\" \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-DSRCDIR="\"@abs_srcdir@\"" \
-DBUILDDIR="\"@abs_builddir@\"" \
-I$(top_srcdir) \
-I$(top_builddir) \
-I$(top_srcdir)/pkcs11 \
$(GLIB_CFLAGS)
bin_PROGRAMS =
check_PROGRAMS = $(TEST_PROGS)
noinst_DATA =
noinst_LIBRARIES =
noinst_LTLIBRARIES =
noinst_PROGRAMS =
ASN1_FILES =
BUILT_SOURCES = prep-builddir
CLEANFILES = $(BUILT_SOURCES)
TEST_PROGS =
moduledir = $(pkcs11standalonedir)
module_LTLIBRARIES =
EXTRA_DIST += \
$(ASN1_FILES)
include egg/Makefile.am
include daemon/Makefile.am
include daemon/control/Makefile.am
include daemon/dbus/Makefile.am
include daemon/gpg-agent/Makefile.am
include daemon/login/Makefile.am
include daemon/ssh-agent/Makefile.am
include pkcs11/Makefile.am
include pkcs11/gkm/Makefile.am
include pkcs11/gnome2-store/Makefile.am
include pkcs11/rpc-layer/Makefile.am
include pkcs11/secret-store/Makefile.am
include pkcs11/ssh-store/Makefile.am
include pkcs11/wrap-layer/Makefile.am
include pkcs11/xdg-store/Makefile.am
include schema/Makefile.am
include tool/Makefile.am
#ifdef WITH_PAM
include pam/Makefile.am
#endif
NULL =
TEST_ARGS =
TEST_SUPPRESSIONS = $(top_builddir)/build/valgrind-suppressions
perform-memcheck: $(TEST_PROGS)
make -C $(top_builddir)/build all
@for test in $(TEST_PROGS); do \
G_SLICE=always-malloc libtool --mode=execute \
valgrind --trace-children=no --gen-suppressions=all \
--suppressions=$(TEST_SUPPRESSIONS) \
--leak-check=full --show-reachable=yes --num-callers=16 \
--quiet --error-exitcode=3 \
$(builddir)/$$test $(TEST_ARGS) || exit 3; \
done
coverage:
mkdir -p $(top_builddir)/build/coverage
$(LCOV) --directory . --capture --output-file $(top_builddir)/build/coverage.info
$(GENHTML) --output-directory $(top_builddir)/build/coverage $(top_builddir)/build/coverage.info
$(LCOV) --directory . --zerocounters
@echo "file://$(abs_top_builddir)/build/coverage/index.html"
clear-coverage:
$(LCOV) --directory . --zerocounters
V_SED = $(V_SED_$(V))
V_SED_ = $(V_SED_$(AM_DEFAULT_VERBOSITY))
V_SED_0 = @echo " SED " $@;
SED_SUBST = sed \
-e 's,[@]datadir[@],$(datadir),g' \
-e 's,[@]libexecdir[@],$(libexecdir),g' \
-e 's,[@]libdir[@],$(libdir),g' \
-e 's,[@]includedir[@],$(includedir),g' \
-e 's,[@]datarootdir[@],$(datarootdir),g' \
-e 's,[@]sysconfdir[@],$(sysconfdir),g' \
-e 's,[@]bindir[@],$(bindir),g' \
-e 's,[@]exec_prefix[@],$(exec_prefix),g' \
-e 's,[@]prefix[@],$(prefix),g' \
-e 's,[@]abs_srcdir[@],$(abs_srcdir),g' \
-e 's,[@]srcdir[@],$(srcdir),g' \
-e 's,[@]PACKAGE[@],$(PACKAGE),g' \
-e 's,[@]VERSION[@],$(VERSION),g' \
-e 's,[@]VALGRIND_RUN[@],$(VALGRIND_RUN),g' \
$(NULL)
.desktop.in.in.desktop.in:
$(V_SED) $(SED_SUBST) $< > $@
@INTLTOOL_DESKTOP_RULE@
.service.in.service:
$(V_SED) $(SED_SUBST) $< > $@
.conf.in.conf:
$(V_SED) $(SED_SUBST) $< > $@
SUFFIXES = .conf .conf.in .desktop.in .desktop.in.in .service .service.in
......@@ -222,6 +222,9 @@ AC_SUBST(GCK_LIBS)
AC_SUBST(GCR_LIBS)
AC_SUBST(GCR_BASE_LIBS)
AC_DEFINE(GCK_API_SUBJECT_TO_CHANGE, 1, [Nod nod])
AC_DEFINE(GCR_API_SUBJECT_TO_CHANGE, 1, [Nod nod])
# --------------------------------------------------------------------
# DBus Checks
#
......@@ -617,27 +620,6 @@ valgrind_status="yes"
AM_CONDITIONAL(WITH_VALGRIND, test "$enable_valgrind" = "run")
# Run gnome-keyring-daemon under valgrind as default
if test "$enable_valgrind" = "run"; then
AC_PATH_PROG(VALGRIND, valgrind, no)
if test "$VALGRIND" = "no" ; then
AC_MSG_ERROR(valgrind tool is not installed)
fi
VALGRIND_ARG="--log-file=/tmp/gkr-valgrind.log.%p"
VALGRIND_RUN="$VALGRIND $VALGRIND_ARG "
AC_DEFINE_UNQUOTED(VALGRIND, "$VALGRIND", [Path to valgrind executable])
AC_DEFINE_UNQUOTED(VALGRIND_ARG, "$VALGRIND_ARG", [Valgrind arguments])
enable_valgrind="yes"
valgrind_status="run"
fi
AC_SUBST(VALGRIND)
AC_SUBST(VALGRIND_ARG)
AC_SUBST(VALGRIND_RUN)
# Build valgrind support into code
if test "$enable_valgrind" = "yes"; then
AC_CHECK_HEADER([valgrind/valgrind.h], have_valgrind=yes, have_valgrind=no)
......@@ -666,28 +648,8 @@ AC_SUBST(P11_TESTS_LIBS)
AC_OUTPUT([
Makefile
daemon/Makefile
daemon/control/Makefile
daemon/dbus/Makefile
daemon/gpg-agent/Makefile
daemon/login/Makefile
daemon/ssh-agent/Makefile
docs/Makefile
egg/Makefile
pam/Makefile
pkcs11/Makefile
pkcs11/gkm/Makefile
pkcs11/gnome2-store/Makefile
pkcs11/rpc-layer/Makefile
pkcs11/rpc-layer/gnome-keyring.module
pkcs11/secret-store/Makefile
pkcs11/ssh-store/Makefile
pkcs11/wrap-layer/Makefile
pkcs11/xdg-store/Makefile
po/Makefile.in
schema/Makefile
testing/Makefile
tool/Makefile
])
# ------------------------------------------------------------------------------
......
include $(top_srcdir)/Makefile.decl
SUBDIRS = \
login \
control \
ssh-agent \
gpg-agent \
dbus
bin_PROGRAMS= \
bin_PROGRAMS += \
gnome-keyring-daemon
INCLUDES= \
-DPREFIX=\""$(prefix)"\" \
-DBINDIR=\""$(bindir)"\" \
-DLIBEXECDIR=\""$(libexecdir)"\" \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir) \
-I$(top_srcdir)/daemon \
-I$(top_builddir) \
$(DAEMON_CFLAGS) \
-DGCK_API_SUBJECT_TO_CHANGE
gnome_keyring_daemon_SOURCES = \
gkd-glue.c gkd-glue.h \
gkd-main.c gkd-main.h \
gkd-capability.c gkd-capability.h \
gkd-pkcs11.c gkd-pkcs11.h \
gkd-util.c gkd-util.h
daemon/gkd-glue.c \
daemon/gkd-glue.h \
daemon/gkd-main.c \
daemon/gkd-main.h \
daemon/gkd-capability.c \
daemon/gkd-capability.h \
daemon/gkd-pkcs11.c \
daemon/gkd-pkcs11.h \
daemon/gkd-util.c \
daemon/gkd-util.h \
$(NULL)
gnome_keyring_daemon_LDADD = \
$(top_builddir)/daemon/dbus/libgkd-dbus.la \
$(top_builddir)/daemon/login/libgkd-login.la \
$(top_builddir)/daemon/control/libgkd-control.la \
$(top_builddir)/daemon/ssh-agent/libgkd-ssh-agent.la \
$(top_builddir)/daemon/gpg-agent/libgkd-gpg-agent.la \
$(top_builddir)/pkcs11/wrap-layer/libgkm-wrap-layer.la \
$(top_builddir)/pkcs11/rpc-layer/libgkm-rpc-layer.la \
$(top_builddir)/pkcs11/secret-store/libgkm-secret-store.la \
$(top_builddir)/pkcs11/ssh-store/libgkm-ssh-store.la \
$(top_builddir)/pkcs11/gnome2-store/libgkm-gnome2-store.la \
$(top_builddir)/pkcs11/xdg-store/libgkm-xdg-store.la \
$(top_builddir)/pkcs11/gkm/libgkm.la \
$(top_builddir)/egg/libegg-dbus.la \
libgkd-dbus.la \
libgkd-login.la \
libgkd-control.la \
libgkd-ssh-agent.la \
libgkd-gpg-agent.la \
libgkm-wrap-layer.la \
libgkm-rpc-layer.la \
libgkm-secret-store.la \
libgkm-ssh-store.la \
libgkm-gnome2-store.la \
libgkm-xdg-store.la \
libgkm.la \
libegg-dbus.la \
$(DAEMON_LIBS)
service_in_files = \
org.gnome.keyring.service.in \
org.freedesktop.secrets.service.in
servicedir = $(DBUS_SERVICES_DIR)
service_DATA = $(service_in_files:.service.in=.service)
service_PATH = $(VALGRIND_RUN)$(bindir)
daemon/org.gnome.keyring.service.in \
daemon/org.freedesktop.secrets.service.in
servicedir = $(DBUS_SERVICES_DIR)
service_DATA = $(service_in_files:.service.in=.service)
desktopdir = $(sysconfdir)/xdg/autostart
desktop_in_in_files = \
gnome-keyring-pkcs11.desktop.in.in \
gnome-keyring-secrets.desktop.in.in \
gnome-keyring-ssh.desktop.in.in \
gnome-keyring-gpg.desktop.in.in
daemon/gnome-keyring-pkcs11.desktop.in.in \
daemon/gnome-keyring-secrets.desktop.in.in \
daemon/gnome-keyring-ssh.desktop.in.in \
daemon/gnome-keyring-gpg.desktop.in.in
desktop_in_files = $(desktop_in_in_files:.desktop.in.in=.desktop.in)
desktopdir = $(sysconfdir)/xdg/autostart
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
EXTRA_DIST = \
EXTRA_DIST += \
$(service_in_files) \
$(desktop_in_in_files)
CLEANFILES = \
$(desktop_in_files) \
CLEANFILES += \
$(service_DATA) \
$(desktop_DATA)
if WITH_CAPS
# Set the relevant capabilities on the daemon
install-exec-hook:
setcap cap_ipc_lock=ep $(DESTDIR)$(bindir)/gnome-keyring-daemon || true
endif
INCLUDES= \
-DPREFIX=\""$(prefix)"\" \
-DBINDIR=\""$(bindir)"\" \
-DLIBEXECDIR=\""$(libexecdir)"\" \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir) \
-I$(top_srcdir)/daemon \
-I$(top_builddir) \
$(GLIB_CFLAGS)
LIBS = \
$(GLIB_LIBS) \
$(GTHREAD_LIBS) \
$(P11_TESTS_LIBS)
# ------------------------------------------------------------------
# DAEMON CODE
noinst_LTLIBRARIES = \
noinst_LTLIBRARIES += \
libgkd-control.la \
libgkd-control-client.la
libgkd_control_la_SOURCES = \
gkd-control-server.c gkd-control-client.c \
gkd-control.h gkd-control-codes.h
daemon/control/gkd-control-server.c \
daemon/control/gkd-control-client.c \
daemon/control/gkd-control.h \
daemon/control/gkd-control-codes.h
libgkd_control_client_la_SOURCES = \
gkd-control-client.c gkd-control.h
daemon/control/gkd-control-client.c \
daemon/control/gkd-control.h
# -------------------------------------------------------------------
# TESTS
noinst_PROGRAMS= \
noinst_PROGRAMS += \
frob-control-change \
frob-control-init \
frob-control-unlock \
frob-control-quit
frob_control_change_SOURCES = \
frob-control-change.c
control_LIBS = \
libgkd-control-client.la \
libegg-buffer.la \
libegg-creds.la \
libegg-secure.la \
$(GLIB_LIBS)
frob_control_change_LDADD = \
$(top_builddir)/daemon/control/libgkd-control-client.la \
$(top_builddir)/egg/libegg-buffer.la \
$(top_builddir)/egg/libegg-creds.la \
$(top_builddir)/egg/libegg-secure.la
frob_control_change_SOURCES = \
daemon/control/frob-control-change.c
frob_control_change_LDADD = $(control_LIBS)
frob_control_init_SOURCES = \
frob-control-init.c
frob_control_init_LDADD = \
$(top_builddir)/daemon/control/libgkd-control-client.la \
$(top_builddir)/egg/libegg-buffer.la \
$(top_builddir)/egg/libegg-creds.la \
$(top_builddir)/egg/libegg-secure.la
daemon/control/frob-control-init.c
frob_control_init_LDADD = $(control_LIBS)
frob_control_quit_SOURCES = \
frob-control-quit.c
frob_control_quit_LDADD = \
$(top_builddir)/daemon/control/libgkd-control-client.la \
$(top_builddir)/egg/libegg-buffer.la \
$(top_builddir)/egg/libegg-creds.la \
$(top_builddir)/egg/libegg-secure.la
daemon/control/frob-control-quit.c
frob_control_quit_LDADD = $(control_LIBS)
frob_control_unlock_SOURCES = \
frob-control-unlock.c
frob_control_unlock_LDADD = \
$(top_builddir)/daemon/control/libgkd-control-client.la \
$(top_builddir)/egg/libegg-buffer.la \
$(top_builddir)/egg/libegg-creds.la \
$(top_builddir)/egg/libegg-secure.la
\ No newline at end of file
daemon/control/frob-control-unlock.c
frob_control_unlock_LDADD = $(control_LIBS)
#include "control/gkd-control.h"
#include "gkd-control.h"
#include "egg/egg-secure-memory.h"
......
#include "control/gkd-control.h"
#include "gkd-control.h"
#include "egg/egg-secure-memory.h"
......
#include "control/gkd-control.h"
#include "gkd-control.h"
#include "egg/egg-secure-memory.h"
......
#include "control/gkd-control.h"
#include "gkd-control.h"
#include "egg/egg-secure-memory.h"
......
......@@ -23,15 +23,15 @@
#include "gkd-control.h"
#include "gkd-control-codes.h"
#include "gkd-main.h"
#include "gkd-util.h"
#include "daemon/gkd-main.h"
#include "daemon/gkd-util.h"
#include "egg/egg-buffer.h"
#include "egg/egg-cleanup.h"
#include "egg/egg-secure-memory.h"
#include "egg/egg-unix-credentials.h"
#include "login/gkd-login.h"
#include "daemon/login/gkd-login.h"
#include <errno.h>
#include <fcntl.h>
......
INCLUDES = \
-I$(top_srcdir) \
-I$(top_srcdir)/daemon \
-I$(top_srcdir)/daemon/dbus \
-I$(top_builddir) \
$(DAEMON_CFLAGS) \
$(GCR_BASE_CFLAGS) \
$(GOBJECT_CFLAGS) \
$(GLIB_CFLAGS) \
-DGCK_API_SUBJECT_TO_CHANGE \
-DGCR_API_SUBJECT_TO_CHANGE \
-DSRCDIR="\"@abs_srcdir@\"" \
-DTOP_SRCDIR="\"@abs_top_srcdir@\"" \
-DTOP_BUILDDIR="\"@abs_top_builddir@\""
noinst_LTLIBRARIES = libgkd-dbus.la
noinst_LTLIBRARIES += libgkd-dbus.la
libgkd_dbus_la_SOURCES = \
gkd-dbus.c gkd-dbus.h \
gkd-dbus-environment.c \
gkd-dbus-private.h \
gkd-dbus-secrets.c \
gkd-dbus-session.c \
gkd-dbus-util.c gkd-dbus-util.h \
gkd-secret-change.c gkd-secret-change.h \
gkd-secret-create.c gkd-secret-create.h \
gkd-secret-dispatch.c gkd-secret-dispatch.h \
gkd-secret-error.c gkd-secret-error.h \
gkd-secret-exchange.c gkd-secret-exchange.h \
gkd-secret-introspect.c gkd-secret-introspect.h \
gkd-secret-lock.c gkd-secret-lock.h \
gkd-secret-objects.c gkd-secret-objects.h \
gkd-secret-property.c gkd-secret-property.h \
gkd-secret-prompt.c gkd-secret-prompt.h \
gkd-secret-secret.c gkd-secret-secret.h \
gkd-secret-service.c gkd-secret-service.h \
gkd-secret-session.c gkd-secret-session.h \
gkd-secret-types.h \
gkd-secret-unlock.c gkd-secret-unlock.h \
gkd-secret-util.c gkd-secret-util.h
daemon/dbus/gkd-dbus.c \
daemon/dbus/gkd-dbus.h \
daemon/dbus/gkd-dbus-environment.c \
daemon/dbus/gkd-dbus-private.h \
daemon/dbus/gkd-dbus-secrets.c \
daemon/dbus/gkd-dbus-session.c \
daemon/dbus/gkd-dbus-util.c \
daemon/dbus/gkd-dbus-util.h \
daemon/dbus/gkd-secret-change.c \
daemon/dbus/gkd-secret-change.h \
daemon/dbus/gkd-secret-create.c \
daemon/dbus/gkd-secret-create.h \
daemon/dbus/gkd-secret-dispatch.c \
daemon/dbus/gkd-secret-dispatch.h \
daemon/dbus/gkd-secret-error.c \
daemon/dbus/gkd-secret-error.h \
daemon/dbus/gkd-secret-exchange.c \
daemon/dbus/gkd-secret-exchange.h \
daemon/dbus/gkd-secret-introspect.c \
daemon/dbus/gkd-secret-introspect.h \
daemon/dbus/gkd-secret-lock.c \
daemon/dbus/gkd-secret-lock.h \
daemon/dbus/gkd-secret-objects.c \
daemon/dbus/gkd-secret-objects.h \
daemon/dbus/gkd-secret-property.c \
daemon/dbus/gkd-secret-property.h \
daemon/dbus/gkd-secret-prompt.c \
daemon/dbus/gkd-secret-prompt.h \
daemon/dbus/gkd-secret-secret.c \
daemon/dbus/gkd-secret-secret.h \
daemon/dbus/gkd-secret-service.c \
daemon/dbus/gkd-secret-service.h \
daemon/dbus/gkd-secret-session.c \
daemon/dbus/gkd-secret-session.h \
daemon/dbus/gkd-secret-types.h \
daemon/dbus/gkd-secret-unlock.c \
daemon/dbus/gkd-secret-unlock.h \
daemon/dbus/gkd-secret-util.c \
daemon/dbus/gkd-secret-util.h \
$(NULL)
libgkd_dbus_la_LIBADD = \
$(GLIB_LIBS) \
$(GOBJECT_LIBS)
libgkd_dbus_la_CFLAGS = \
$(DAEMON_CFLAGS) \
$(GCR_BASE_CFLAGS) \
$(GOBJECT_CFLAGS)
# -------------------------------------------------------------------
# TESTS
EXTRA_DIST += daemon/dbus/fixtures
noinst_LTLIBRARIES += \
libtestservice.la
libtestservice_la_SOURCES = \
test-service.c test-service.h
daemon/dbus/test-service.c daemon/dbus/test-service.h
daemon_dbus_CFLAGS = \
$(DBUS_CFLAGS) \
$(GCR_CFLAGS)
LDADD = \
$(builddir)/libtestservice.la \
$(top_builddir)/daemon/dbus/libgkd-dbus.la \
$(top_builddir)/egg/libegg-test.la \
daemon_dbus_LIBS = \
libtestservice.la \
libgkd-dbus.la \
libegg-test.la \
$(GCR_BASE_LIBS) \
$(GIO_LIBS) \
$(GLIB_LIBS)
TEST_PROGS = \
test-secret-util \
test-secret-search \
test-secret-items \
test-secret-signals \
test-secret-lock
TEST_PROGS += \
test-dbus-util \
test-dbus-search \
test-dbus-items \
test-dbus-signals \
test-dbus-lock
check_PROGRAMS = $(TEST_PROGS)
test_dbus_util_SOURCES = daemon/dbus/test-dbus-util.c
test_dbus_util_LDADD = $(daemon_dbus_LIBS)
test_dbus_util_CFLAGS = $(daemon_dbus_CFLAGS)
EXTRA_DIST = fixtures
test_dbus_search_SOURCES = daemon/dbus/test-dbus-search.c
test_dbus_search_LDADD = $(daemon_dbus_LIBS)
test: $(TEST_PROGS)
gtester --verbose -m $(TEST_MODE) --g-fatal-warnings $(TEST_PROGS)
test_dbus_items_SOURCES = daemon/dbus/test-dbus-items.c
test_dbus_items_LDADD = $(daemon_dbus_LIBS)
check-local: test
test_dbus_signals_SOURCES = daemon/dbus/test-dbus-signals.c
test_dbus_signals_LDADD = $(daemon_dbus_LIBS)
test_dbus_signals_CFLAGS = $(daemon_dbus_CFLAGS)
all-local: $(check_PROGRAMS)
test_dbus_lock_SOURCES = daemon/dbus/test-dbus-lock.c
test_dbus_lock_LDADD = $(daemon_dbus_LIBS)