aboutsummaryrefslogtreecommitdiff
path: root/src/util/Makefile.am
blob: f935802a6b9c2a749c21503587b600e7129f3200 (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
AM_CPPFLAGS = -I$(top_srcdir)/src/include $(LIBGCRYPT_CFLAGS) $(POSTGRESQL_CPPFLAGS)

lib_LTLIBRARIES = \
  libtalerutil.la

libtalerutil_la_SOURCES = \
  util.c \
  json.c \
  db.c \
  microhttpd.c \
  rsa.c

libtalerutil_la_LIBADD = \
  -lgnunetutil \
  $(LIBGCRYPT_LIBS) \
  -ljansson \
  -lmicrohttpd \
  -lpq

libtalerutil_la_LDFLAGS = \
  $(POSTGRESQL_LDFLAGS) \
  -version-info 0:0:0 \
  -export-dynamic -no-undefined

check_PROGRAMS = \
  test-hash-context \
  test-rsa

TESTS = \
  $(check_PROGRAMS)

test_hash_context_SOURCES = test_hash_context.c
test_hash_context_CPPFLAGS = $(AM_CPPFLAGS) $(LIBGCRYPT_CFLAGS)
test_hash_context_LDADD = libtalerutil.la \
  -lgnunetutil $(LIBGCRYPT_LIBS)

test_rsa_SOURCES = test_rsa.c
test_rsa_LDADD = libtalerutil.la \
  -lgnunetutil $(LIBGCRYPT_LIBS)