Makefile.am 1.17 KB
Newer Older
1
2
3
include $(top_srcdir)/Makefile.decl

INCLUDES = \
Stef Walter's avatar
Stef Walter committed
4
	-I$(top_srcdir) \
5
	-I$(top_srcdir)/library \
6
	-DSRCDIR="\"@abs_srcdir@\"" \
7
	-DSECRET_COMPILATION \
8
9
	$(NULL)

10
11
12
13
14
15
16
17
18
19
20
noinst_LTLIBRARIES = libmock_service.la

libmock_service_la_SOURCES = \
	mock-service.c mock-service.h \
	$(NULL)

libmock_service_la_CFLAGS = \
	$(LIBGCRYPT_CFLAGS)

libmock_service_la_LIBADD = \
	$(top_builddir)/egg/libegg.la \
21
	$(top_builddir)/library/libsecret-@SECRET_MAJOR@.la \
22
23
	$(LIBGCRYPT_LIBS)

24
25
LDADD =  \
	$(top_builddir)/egg/libegg.la \
26
	$(top_builddir)/library/libsecret-@SECRET_MAJOR@.la \
27
	$(top_builddir)/library/tests/libmock_service.la \
28
29
30
	$(NULL)

TEST_PROGS = \
31
	test-value \
Stef Walter's avatar
Stef Walter committed
32
	test-prompt \
33
	test-service \
34
	test-session \
35
	test-methods \
Stef Walter's avatar
Stef Walter committed
36
	test-password \
37
38
	test-item \
	test-collection \
39
40
41
42
43
44
45
46
	$(NULL)

check_PROGRAMS = \
	$(TEST_PROGS)

noinst_PROGRAMS =  \
	$(NULL)

Stef Walter's avatar
Stef Walter committed
47
48
49
50
51
52
53
54
55
EXTRA_DIST = \
	mock \
	mock-service-delete.py \
	mock-service-lock.py \
	mock-service-normal.py \
	mock-service-only-plain.py \
	mock-service-prompt.py \
	$(NULL)

56
test: $(TEST_PROGS)
57
	gtester --verbose -m $(TEST_MODE) --g-fatal-warnings $(TEST_PROGS)
58
59
60

all-local: $(check_PROGRAMS)

61
62
63
64
65
check-local: test

check-memory: perform-memcheck

.PHONY: check-memory