exchange/src/bank-lib/Makefile.am

84 lines
1.6 KiB
Makefile
Raw Normal View History

2016-01-25 10:20:40 +01:00
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include
if USE_COVERAGE
AM_CFLAGS = --coverage -O0
XLIB = -lgcov
endif
lib_LTLIBRARIES = \
libtalerbank.la \
libtalerfakebank.la
2016-01-25 10:20:40 +01:00
libtalerbank_la_LDFLAGS = \
2017-06-06 14:03:53 +02:00
-version-info 1:0:0 \
2016-01-25 10:20:40 +01:00
-no-undefined
libtalerbank_la_SOURCES = \
bank_api_admin.c \
bank_api_common.c bank_api_common.h \
bank_api_history.c
2016-01-25 10:20:40 +01:00
libtalerbank_la_LIBADD = \
$(top_builddir)/src/json/libtalerjson.la \
-lgnunetcurl \
-lgnunetjson \
2016-01-25 10:20:40 +01:00
-lgnunetutil \
-ljansson \
$(XLIB)
libtalerfakebank_la_LDFLAGS = \
-version-info 0:0:0 \
-no-undefined
libtalerfakebank_la_SOURCES = \
fakebank.c
libtalerfakebank_la_LIBADD = \
$(top_builddir)/src/json/libtalerjson.la \
-lgnunetjson \
-lgnunetutil \
-ljansson \
-lmicrohttpd \
$(XLIB)
2016-01-25 10:20:40 +01:00
if HAVE_LIBCURL
libtalerbank_la_LIBADD += -lcurl
else
if HAVE_LIBGNURL
libtalerbank_la_LIBADD += -lgnurl
endif
endif
2016-01-29 14:24:18 +01:00
check_PROGRAMS = \
test_bank_api \
test_bank_api_with_fakebank
2016-01-29 14:24:18 +01:00
TESTS = \
$(check_PROGRAMS)
2016-01-29 14:24:18 +01:00
test_bank_api_SOURCES = \
test_bank_interpreter.c test_bank_interpreter.h \
2016-01-29 14:24:18 +01:00
test_bank_api.c
test_bank_api_LDADD = \
libtalerbank.la \
libtalerfakebank.la \
$(top_builddir)/src/util/libtalerutil.la \
-lgnunetcurl \
-lgnunetutil \
-ljansson
test_bank_api_with_fakebank_SOURCES = \
test_bank_interpreter.c test_bank_interpreter.h \
test_bank_api_with_fakebank.c
test_bank_api_with_fakebank_LDADD = \
libtalerbank.la \
libtalerfakebank.la \
2016-01-29 14:24:18 +01:00
$(top_builddir)/src/util/libtalerutil.la \
-lgnunetcurl \
2016-03-23 11:34:24 +01:00
-lgnunetutil \
-ljansson