aboutsummaryrefslogtreecommitdiff
path: root/src/mint/Makefile.am
blob: d0a58812e441806b12091458e6933b17a8e4190a (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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
AM_CPPFLAGS = -I$(top_srcdir)/src/include $(POSTGRESQL_CPPFLAGS)

lib_LTLIBRARIES = \
  libtalermint.la \
  libtalermintapi.la

libtalermint_la_SOURCES = \
  mint_common.c \
  mint_db.c

libtalermint_la_LIBADD = \
  $(top_builddir)/src/util/libtalerutil.la \
  -lgnunetutil \
  -lpq

libtalermint_la_LDFLAGS = \
  $(POSTGRESQL_LDFLAGS) \
  -version-info 0:0:0 \
  -no-undefined

libtalermintapi_la_SOURCES = \
  mint_api.c

libtalermintapi_la_LIBADD = \
  -lgnunetutil \
  -ljansson \
  -lcurl

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


bin_PROGRAMS = \
  taler-mint-keyup \
  taler-mint-keycheck \
  taler-mint-reservemod \
  taler-mint-httpd \
  taler-mint-dbinit

taler_mint_keyup_SOURCES = \
  taler-mint-keyup.c

taler_mint_keyup_LDADD = \
  $(LIBGCRYPT_LIBS) \
  $(top_builddir)/src/util/libtalerutil.la \
  $(top_builddir)/src/mint/libtalermint.la \
  -lpq \
  -lgnunetutil
taler_mint_keyup_LDFLAGS = $(POSTGRESQL_LDFLAGS)


taler_mint_keycheck_SOURCES = \
  taler-mint-keycheck.c

taler_mint_keycheck_LDADD = \
  $(LIBGCRYPT_LIBS) \
  $(top_builddir)/src/util/libtalerutil.la \
  $(top_builddir)/src/mint/libtalermint.la \
  -lgnunetutil \
  -lpq
taler_mint_keycheck_LDFLAGS = $(POSTGRESQL_LDFLAGS)

taler_mint_reservemod_SOURCES = \
  taler-mint-reservemod.c
taler_mint_reservemod_LDADD = \
  $(LIBGCRYPT_LIBS) \
  $(top_builddir)/src/util/libtalerutil.la \
  $(top_builddir)/src/mint/libtalermint.la \
  -lpq \
  -lgnunetutil
taler_mint_reservemod_LDFLAGS = \
  $(POSTGRESQL_LDFLAGS)

taler_mint_httpd_SOURCES = \
  taler-mint-httpd.c \
  taler-mint-httpd_mhd.c \
  taler-mint-httpd_json.c taler-mint-httpd_json.h \
  taler-mint-httpd_keys.c \
  taler-mint-httpd_deposit.c \
  taler-mint-httpd_withdraw.c \
  taler-mint-httpd_refresh.c
taler_mint_httpd_LDADD = \
  $(LIBGCRYPT_LIBS) \
  $(top_builddir)/src/util/libtalerutil.la \
  $(top_builddir)/src/mint/libtalermint.la \
  -lpq \
  -lmicrohttpd \
  -ljansson \
  -lgnunetutil \
  -lpthread
taler_mint_httpd_LDFLAGS = \
  $(POSTGRESQL_LDFLAGS)


taler_mint_dbinit_SOURCES = \
  taler-mint-dbinit.c
taler_mint_dbinit_LDADD = \
  $(LIBGCRYPT_LIBS) \
  $(top_builddir)/src/util/libtalerutil.la \
  $(top_builddir)/src/mint/libtalermint.la \
  -lpq \
  -lgnunetutil
taler_mint_dbinit_LDFLAGS = $(POSTGRESQL_LDFLAGS)

check_PROGRAMS = \
  test-mint-api \
  test-mint-deposits \
  test-mint-common

test_mint_api_SOURCES = test_mint_api.c
test_mint_api_LDADD = \
  libtalermintapi.la \
  $(LIBGCRYPT_LIBS) \
  $(top_builddir)/src/util/libtalerutil.la \
  -lgnunetutil \
  -ljansson

test_mint_deposits_SOURCES = \
  test_mint_deposits.c
test_mint_deposits_LDADD = \
  libtalermint.la \
  $(top_srcdir)/src/util/libtalerutil.la \
  -lgnunetutil \
  -lpq

test_mint_common_SOURCES = \
  test_mint_common.c
test_mint_common_LDADD = \
  libtalermint.la \
  $(top_srcdir)/src/util/libtalerutil.la \
  -lgnunetutil