aboutsummaryrefslogtreecommitdiff
path: root/src/auditor-lib/Makefile.am
blob: df0b8b3d54ed88ec22a5522c68680d9b9e2c3a5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include

if USE_COVERAGE
  AM_CFLAGS = --coverage -O0
  XLIB = -lgcov
endif

lib_LTLIBRARIES = \
  libtalerauditor.la \
  libtalerauditortesting.la

libtalerauditor_la_LDFLAGS = \
  -version-info 0:0:0 \
  -no-undefined
libtalerauditor_la_SOURCES = \
  curl_defaults.c \
  auditor_api_handle.c auditor_api_handle.h \
  auditor_api_deposit_confirmation.c \
  auditor_api_exchanges.c
libtalerauditor_la_LIBADD = \
  $(top_builddir)/src/json/libtalerjson.la \
  $(top_builddir)/src/util/libtalerutil.la \
  -lgnunetcurl \
  -lgnunetjson \
  -lgnunetutil \
  -ljansson \
  $(XLIB)

if HAVE_LIBCURL
libtalerauditor_la_LIBADD += -lcurl
else
if HAVE_LIBGNURL
libtalerauditor_la_LIBADD += -lgnurl
endif
endif


libtalerauditortesting_la_LDFLAGS = \
  -version-info 0:0:0 \
  -no-undefined
libtalerauditortesting_la_SOURCES = \
  testing_auditor_api_helpers.c \
  testing_auditor_api_cmd_deposit_confirmation.c \
  testing_auditor_api_cmd_exchanges.c \
  testing_auditor_api_cmd_exec_auditor.c \
  testing_auditor_api_cmd_exec_wire_auditor.c
libtalerauditortesting_la_LIBADD = \
  libtalerauditor.la \
  $(top_builddir)/src/exchange-lib/libtalerexchange.la \
  $(top_builddir)/src/exchange-lib/libtalertesting.la \
  $(top_builddir)/src/wire/libtalerwire.la \
  $(top_builddir)/src/json/libtalerjson.la \
  $(top_builddir)/src/util/libtalerutil.la \
  -lgnunetcurl \
  -lgnunetjson \
  -lgnunetutil \
  -ljansson \
  $(XLIB)


check_PROGRAMS = \
  test_auditor_api

AM_TESTS_ENVIRONMENT=export TALER_PREFIX=$${TALER_PREFIX:-@libdir@};export PATH=$${TALER_PREFIX:-@prefix@}/bin:$$PATH;

TESTS = \
  $(check_PROGRAMS)

test_auditor_api_SOURCES = \
  test_auditor_api.c
test_auditor_api_LDADD = \
  libtalerauditortesting.la \
  libtalerauditor.la \
  $(top_builddir)/src/exchange-lib/libtalertesting.la \
  $(top_builddir)/src/exchange-lib/libtalerexchange.la \
  $(LIBGCRYPT_LIBS) \
  $(top_builddir)/src/bank-lib/libtalerfakebank.la \
  $(top_builddir)/src/bank-lib/libtalerbank.la \
  $(top_builddir)/src/json/libtalerjson.la \
  $(top_builddir)/src/util/libtalerutil.la \
  -lgnunetcurl \
  -lgnunetutil \
  -ljansson


EXTRA_DIST = \
  test_auditor_api.conf