Makefile.am (1719B)
1 # This Makefile.am is in the public domain 2 AM_CPPFLAGS = -I$(top_srcdir)/src/include 3 4 pkgcfgdir = $(prefix)/share/sync/config.d/ 5 6 pkgcfg_DATA = \ 7 sync_db_postgres.conf 8 9 plugindir = $(libdir)/sync 10 11 if HAVE_POSTGRESQL 12 if HAVE_GNUNETPQ 13 plugin_LTLIBRARIES = \ 14 libsync_plugin_db_postgres.la 15 endif 16 endif 17 18 if USE_COVERAGE 19 AM_CFLAGS = --coverage -O0 20 XLIB = -lgcov 21 endif 22 23 sqldir = $(prefix)/share/sync/sql/ 24 25 sql_DATA = \ 26 versioning.sql \ 27 sync-0001.sql \ 28 drop.sql 29 30 bin_PROGRAMS = \ 31 sync-dbinit 32 33 sync_dbinit_SOURCES = \ 34 sync-dbinit.c 35 sync_dbinit_LDADD = \ 36 $(LIBGCRYPT_LIBS) \ 37 $(top_builddir)/src/util/libsyncutil.la \ 38 libsyncdb.la \ 39 -ltalerutil \ 40 -lgnunetutil \ 41 $(XLIB) 42 43 lib_LTLIBRARIES = \ 44 libsyncdb.la 45 libsyncdb_la_SOURCES = \ 46 sync_db_plugin.c 47 libsyncdb_la_LIBADD = \ 48 $(top_builddir)/src/util/libsyncutil.la \ 49 -lgnunetpq \ 50 -lpq \ 51 -lgnunetutil \ 52 -lltdl \ 53 $(XLIB) 54 libsyncdb_la_LDFLAGS = \ 55 $(POSTGRESQL_LDFLAGS) \ 56 -version-info 0:1:0 \ 57 -no-undefined 58 59 libsync_plugin_db_postgres_la_SOURCES = \ 60 plugin_syncdb_postgres.c 61 libsync_plugin_db_postgres_la_LDFLAGS = \ 62 $(SYNC_PLUGIN_LDFLAGS) 63 libsync_plugin_db_postgres_la_LIBADD = \ 64 $(LTLIBINTL) \ 65 -ltalerpq \ 66 -lgnunetpq \ 67 -lgnunetutil \ 68 -lpq \ 69 $(XLIB) 70 71 check_PROGRAMS = \ 72 $(TESTS) 73 74 test_sync_db_postgres_SOURCES = \ 75 test_sync_db.c 76 test_sync_db_postgres_LDFLAGS = \ 77 $(top_builddir)/src/util/libsyncutil.la \ 78 libsyncdb.la \ 79 -lgnunetutil \ 80 -lgnunetpq \ 81 -ltalerutil \ 82 $(XLIB) 83 84 AM_TESTS_ENVIRONMENT=export SYNC_PREFIX=$${SYNC_PREFIX:-@libdir@};export PATH=$${SYNC_PREFIX:-@prefix@}/bin:$$PATH; 85 TESTS = \ 86 test_sync_db-postgres 87 88 EXTRA_DIST = \ 89 $(pkgcfg_DATA) \ 90 $(sql_DATA) \ 91 test_sync_db_postgres.conf