Makefile.am (1782B)
1 # This Makefile.am is in the public domain 2 3 AM_CPPFLAGS = \ 4 -I$(top_srcdir)/src/include \ 5 $(LIBGCRYPT_CFLAGS) \ 6 $(POSTGRESQL_CPPFLAGS) 7 8 if USE_COVERAGE 9 AM_CFLAGS = --coverage -O0 10 XLIB = -lgcov 11 endif 12 13 clean-local: 14 rm -rf report* 15 16 lib_LTLIBRARIES = \ 17 libdonautesting.la 18 19 libdonautesting_la_LDFLAGS = \ 20 -version-info 0:0:0 \ 21 -no-undefined 22 libdonautesting_la_SOURCES = \ 23 testing_api_cmd_get_donau.c \ 24 testing_api_cmd_charities_get.c \ 25 testing_api_cmd_charity_get.c \ 26 testing_api_cmd_charity_post.c \ 27 testing_api_cmd_charity_patch.c \ 28 testing_api_cmd_charity_delete.c \ 29 testing_api_cmd_issue_receipts.c \ 30 testing_api_cmd_submit_receipts.c \ 31 testing_api_cmd_donation_statement_get.c \ 32 testing_api_traits.c \ 33 testing_api_loop.c 34 35 36 AM_TESTS_ENVIRONMENT=export DONAU_PREFIX=$${DONAU_PREFIX:-@libdir@};export PATH=$${DONAU_PREFIX:-@prefix@}/bin:$$PATH; 37 38 .NOTPARALLEL: 39 check_PROGRAMS = \ 40 test_donau_api_rsa \ 41 test_donau_api_cs 42 43 44 TESTS = \ 45 test_donau_api_rsa 46 # $(check_PROGRAMS) # CS is known to fail... 47 48 test_donau_api_cs_SOURCES = \ 49 test_donau_api.c 50 51 test_donau_api_cs_LDADD = \ 52 libdonautesting.la \ 53 $(top_builddir)/src/lib/libdonau.la \ 54 $(LIBGCRYPT_LIBS) \ 55 $(top_builddir)/src/util/libdonauutil.la \ 56 -ltalertesting \ 57 -lgnunetcurl \ 58 -lgnunetutil \ 59 -ljansson \ 60 -ltalerjson \ 61 $(XLIB) 62 63 test_donau_api_rsa_SOURCES = \ 64 test_donau_api.c 65 test_donau_api_rsa_LDADD = \ 66 libdonautesting.la \ 67 $(top_builddir)/src/lib/libdonau.la \ 68 $(LIBGCRYPT_LIBS) \ 69 $(top_builddir)/src/json/libdonaujson.la \ 70 $(top_builddir)/src/util/libdonauutil.la \ 71 -ltalertesting \ 72 -lgnunetcurl \ 73 -lgnunetutil \ 74 -ljansson \ 75 -lgnunetjson \ 76 $(XLIB) 77 78 EXTRA_DIST = \ 79 $(bin_SCRIPTS) \ 80 coins-cs.conf \ 81 coins-rsa.conf \ 82 test_donau_api.conf