aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-lib/Makefile.am
blob: 10188c8fef75fed40b62464caf2dfc049b72670e (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
# 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 = \
  libtalerexchange.la

libtalerexchange_la_LDFLAGS = \
  -version-info 0:0:0 \
  -no-undefined

libtalerexchange_la_SOURCES = \
  exchange_api_common.c exchange_api_common.h \
  exchange_api_context.c exchange_api_context.h \
  exchange_api_handle.c exchange_api_handle.h \
  exchange_api_admin.c \
  exchange_api_deposit.c \
  exchange_api_deposit_wtid.c \
  exchange_api_refresh.c \
  exchange_api_refresh_link.c \
  exchange_api_reserve.c \
  exchange_api_wire.c \
  exchange_api_wire_deposits.c

libtalerexchange_la_LIBADD = \
  $(top_builddir)/src/json/libtalerjson.la \
  $(top_builddir)/src/util/libtalerutil.la \
  -lgnunetjson \
  -lgnunetutil \
  -ljansson \
  $(XLIB)

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

check_PROGRAMS = \
  test_exchange_api

TESTS = \
  $(check_PROGRAMS)

test_exchange_api_SOURCES = \
  test_exchange_api.c
test_exchange_api_LDADD = \
  libtalerexchange.la \
  $(LIBGCRYPT_LIBS) \
  $(top_builddir)/src/json/libtalerjson.la \
  $(top_builddir)/src/util/libtalerutil.la \
  -lgnunetutil \
  -ljansson

EXTRA_DIST = \
  test-exchange-home/config/exchange-common.conf \
  test-exchange-home/master.priv