summaryrefslogtreecommitdiff
path: root/src/util/Makefile.am
blob: fdc92c9401a22a97b0c430e4685cacea534f35eb (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
# 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 \
  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

TESTS = \
 $(check_PROGRAMS)

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