social: guest_enter_by_name(); zone_add_pkey(); join_msg fixes
[oweals/gnunet.git] / src / psycstore / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 plugindir = $(libdir)/gnunet
5
6 pkgcfgdir= $(pkgdatadir)/config.d/
7
8 libexecdir= $(pkglibdir)/libexec/
9
10 pkgcfg_DATA = \
11   psycstore.conf
12
13
14 if MINGW
15  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
16 endif
17
18 if USE_COVERAGE
19   AM_CFLAGS = --coverage -O0
20   XLIB = -lgcov
21 endif
22
23 if HAVE_SQLITE
24 SQLITE_PLUGIN = libgnunet_plugin_psycstore_sqlite.la
25 if HAVE_TESTING
26 SQLITE_TESTS = test_plugin_psycstore_sqlite
27 endif
28 endif
29
30 lib_LTLIBRARIES = libgnunetpsycutil.la libgnunetpsycstore.la
31
32 libgnunetpsycutil_la_SOURCES = \
33   psyc_util_lib.c
34 libgnunetpsycutil_la_LIBADD = \
35   $(top_builddir)/src/util/libgnunetutil.la \
36   $(top_builddir)/src/env/libgnunetenv.la \
37   $(GN_LIBINTL) $(XLIB)
38 libgnunetpsycutil_la_LDFLAGS = \
39   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
40   -version-info 0:0:0
41
42 libgnunetpsycstore_la_SOURCES = \
43   psycstore_api.c \
44   psycstore.h
45 libgnunetpsycstore_la_LIBADD = \
46   $(top_builddir)/src/util/libgnunetutil.la \
47   $(GN_LIBINTL) $(XLIB)
48 libgnunetpsycstore_la_LDFLAGS = \
49   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
50   -version-info 0:0:0
51
52 bin_PROGRAMS =
53
54 libexec_PROGRAMS = \
55  gnunet-service-psycstore
56
57 gnunet_service_psycstore_SOURCES = \
58  gnunet-service-psycstore.c
59 gnunet_service_psycstore_LDADD = \
60   $(top_builddir)/src/statistics/libgnunetstatistics.la \
61   $(top_builddir)/src/util/libgnunetutil.la \
62   libgnunetpsycutil.la \
63   $(GN_LIBINTL)
64
65 plugin_LTLIBRARIES = \
66   $(SQLITE_PLUGIN)
67
68 libgnunet_plugin_psycstore_sqlite_la_SOURCES = \
69   plugin_psycstore_sqlite.c
70 libgnunet_plugin_psycstore_sqlite_la_LIBADD = \
71   libgnunetpsycstore.la  \
72   $(top_builddir)/src/statistics/libgnunetstatistics.la \
73   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
74   $(LTLIBINTL)
75 libgnunet_plugin_psycstore_sqlite_la_LDFLAGS = \
76  $(GN_PLUGIN_LDFLAGS)
77
78
79 if HAVE_SQLITE
80 if HAVE_TESTING
81 check_PROGRAMS = \
82  $(SQLITE_TESTS) \
83  test_psycstore
84 endif
85 endif
86
87 if ENABLE_TEST_RUN
88 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
89 TESTS = $(check_PROGRAMS)
90 endif
91
92 test_psycstore_SOURCES = \
93  test_psycstore.c
94 test_psycstore_LDADD = \
95   libgnunetpsycstore.la \
96   $(top_builddir)/src/testing/libgnunettesting.la \
97   $(top_builddir)/src/util/libgnunetutil.la
98
99 EXTRA_DIST = \
100   test_psycstore.conf
101
102
103 test_plugin_psycstore_sqlite_SOURCES = \
104  test_plugin_psycstore.c
105 test_plugin_psycstore_sqlite_LDADD = \
106   $(top_builddir)/src/testing/libgnunettesting.la \
107   $(top_builddir)/src/util/libgnunetutil.la