Makefile.am (2281B)
1 # This Makefile.am is in the public domain 2 AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_srcdir)/src/include/challenger-database 3 4 pkgcfgdir = $(prefix)/share/challenger/config.d/ 5 6 pkgcfg_DATA = \ 7 challenger_db_postgres.conf 8 9 10 if USE_COVERAGE 11 AM_CFLAGS = --coverage -O0 12 XLIB = -lgcov 13 endif 14 15 sqlinputs = \ 16 challenger_do_*.sql \ 17 procedures.sql.in 18 19 sqldir = $(prefix)/share/challenger/sql/ 20 21 sql_DATA = \ 22 versioning.sql \ 23 procedures.sql \ 24 challenger-0001.sql \ 25 challenger-0002.sql \ 26 drop.sql 27 28 BUILT_SOURCES = \ 29 procedures.sql 30 31 procedures.sql: procedures.sql.in challenger_do_*.sql 32 chmod +w $@ || true 33 gcc -E -P -undef - < procedures.sql.in 2>/dev/null | sed -e "s/--.*//" | awk 'NF' - >$@ 34 chmod ugo-w $@ 35 36 bin_PROGRAMS = \ 37 challenger-dbinit 38 39 challenger_dbinit_SOURCES = \ 40 challenger-dbinit.c 41 challenger_dbinit_LDADD = \ 42 $(LIBGCRYPT_LIBS) \ 43 $(top_builddir)/src/util/libchallengerutil.la \ 44 libchallengerdb.la \ 45 -ltalerutil \ 46 -lgnunetutil \ 47 $(XLIB) 48 49 lib_LTLIBRARIES = \ 50 libchallengerdb.la 51 libchallengerdb_la_SOURCES = \ 52 address_get.c \ 53 client_add.c \ 54 client_modify.c \ 55 client_delete.c \ 56 client_check.c \ 57 create_tables.c \ 58 drop_tables.c \ 59 gc.c \ 60 info_get_token.c \ 61 token_add_token.c \ 62 setup_nonce.c \ 63 preflight.c \ 64 pg.c pg_helper.h \ 65 authorize_start.c \ 66 challenge_set_address_and_pin.c \ 67 validate_solve_pin.c \ 68 validation_get.c \ 69 validation_get_pkce.c 70 libchallengerdb_la_LIBADD = \ 71 $(LTLIBINTL) \ 72 $(top_builddir)/src/util/libchallengerutil.la \ 73 -lgnunetpq \ 74 -lpq \ 75 -ltalerpq \ 76 -lgnunetutil \ 77 $(XLIB) 78 libchallengerdb_la_LDFLAGS = \ 79 $(POSTGRESQL_LDFLAGS) \ 80 -version-info 0:1:0 \ 81 -no-undefined 82 83 check_PROGRAMS = \ 84 $(TESTS) 85 86 test_challenger_db_postgres_SOURCES = \ 87 test_challenger_db.c 88 test_challenger_db_postgres_LDFLAGS = \ 89 $(top_builddir)/src/util/libchallengerutil.la \ 90 libchallengerdb.la \ 91 -lgnunetutil \ 92 -lgnunetpq \ 93 -ltalerutil \ 94 $(XLIB) 95 96 AM_TESTS_ENVIRONMENT=export CHALLENGER_PREFIX=$${CHALLENGER_PREFIX:-@libdir@};export PATH=$${CHALLENGER_PREFIX:-@prefix@}/bin:$$PATH; 97 TESTS = \ 98 test_challenger_db-postgres 99 100 EXTRA_DIST = \ 101 $(sqlinputs) \ 102 $(pkgcfg_DATA) \ 103 $(sql_DATA) \ 104 test_challenger_db_postgres.conf \ 105 pg_template.h pg_template.c \ 106 pg_template.sh