summaryrefslogtreecommitdiff
path: root/src/util/Makefile.am
blob: 36ee1967e3f6a9b1a50818de3e3a8ae37fb29419 (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
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include $(LIBGCRYPT_CFLAGS)

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

pkgcfgdir = $(prefix)/share/anastasis/config.d/

pkgcfg_DATA = \
  paths.conf

EXTRA_DIST = \
  anastasis-config.in \
  $(pkgcfg_DATA)

edit_script = $(SED) -e 's,%libdir%,$(libdir),'g $(NULL)

anastasis-config: anastasis-config.in
	rm -f $@ $@.tmp && \
	$(edit_script) $< >$@.tmp && \
	chmod a-w+x $@.tmp && \
	mv $@.tmp $@

bin_SCRIPTS = \
  anastasis-config

lib_LTLIBRARIES = \
  libanastasisutil.la

libanastasisutil_la_SOURCES = \
  anastasis_crypto.c \
  child_management.c \
  os_installation.c
libanastasisutil_la_LIBADD = \
  -lgnunetutil \
  $(LIBGCRYPT_LIBS) \
  -ljansson \
  -ltalerutil \
  $(XLIB)
libanastasisutil_la_LDFLAGS = \
  -version-info 0:0:0 \
  -export-dynamic -no-undefined

check_PROGRAMS = \
  test_anastasis_crypto \
	test_anastasis_child_management

TESTS = \
 $(check_PROGRAMS)

test_anastasis_child_management_SOURCES = \
  test_anastasis_child_management.c
test_anastasis_child_management_LDADD = \
  -lgnunetutil \
  -ltalerutil \
  libanastasisutil.la \
  $(XLIB)

test_anastasis_crypto_SOURCES = \
  test_anastasis_crypto.c
test_anastasis_crypto_LDADD = \
  -lgnunetutil \
  -ltalerutil \
  libanastasisutil.la \
  $(XLIB)