exchange/src/util/Makefile.am

88 lines
1.6 KiB
Makefile
Raw Normal View History

# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include $(LIBGCRYPT_CFLAGS)
2015-01-08 18:37:20 +01:00
2015-04-13 13:57:38 +02:00
if USE_COVERAGE
AM_CFLAGS = --coverage -O0
XLIB = -lgcov
endif
pkgcfgdir = $(prefix)/share/taler/config.d/
2016-04-22 15:17:02 +02:00
pkgcfg_DATA = \
paths.conf
EXTRA_DIST = \
paths.conf
2016-04-22 15:17:02 +02:00
templated_scripts = taler-config taler-arm
dist_bin_SCRIPTS = $(templated_scripts)
# See https://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Installation-Directory-Variables.html
2016-04-22 15:17:02 +02:00
# for an explanation and why this ugliness is necessary.
edit = sed -e 's|@libdir[@]|$(libdir)|g'
2016-04-22 15:17:02 +02:00
$(templated_scripts): %: Makefile $(srcdir)/%.in
rm -f $@ $@.tmp
$(edit) '$(srcdir)/$@.in' >$@.tmp
chmod +x $@.tmp
chmod a-w $@.tmp
mv $@.tmp $@
if WALLET_ONLY
lib_LTLIBRARIES = \
libtalerutil_wallet.la
else
2015-01-08 18:37:20 +01:00
lib_LTLIBRARIES = \
libtalerutil.la
endif
libtalerutil_wallet_la_SOURCES = \
amount.c \
2015-07-15 11:40:51 +02:00
crypto.c
libtalerutil_wallet_la_LIBADD = \
-lgnunetutil_taler_wallet \
$(LIBGCRYPT_LIBS) \
$(XLIB)
libtalerutil_wallet_la_LDFLAGS = \
-version-info 0:0:0 \
-export-dynamic -no-undefined
2015-01-08 18:37:20 +01:00
libtalerutil_la_SOURCES = \
amount.c \
crypto.c \
2015-01-08 18:37:20 +01:00
util.c \
os_installation.c
2015-01-08 18:37:20 +01:00
libtalerutil_la_LIBADD = \
-lgnunetutil \
$(LIBGCRYPT_LIBS) \
2015-04-13 13:57:38 +02:00
-lmicrohttpd $(XLIB)
2015-01-08 18:37:20 +01:00
libtalerutil_la_LDFLAGS = \
-version-info 0:0:0 \
-export-dynamic -no-undefined
2015-04-13 13:57:38 +02:00
TESTS = \
2015-04-13 17:20:46 +02:00
test_amount \
test_crypto
check_PROGRAMS = \
2015-04-13 17:20:46 +02:00
test_amount \
test_crypto
2015-04-13 17:20:46 +02:00
test_amount_SOURCES = \
test_amount.c
test_amount_LDADD = \
-lgnunetutil \
libtalerutil.la
test_crypto_SOURCES = \
test_crypto.c
test_crypto_LDADD = \
-lgnunetutil \
libtalerutil.la