TUN_IFNAME is the tunnel interface, not EXIT_IFNAME
[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_TESTING
80 check_PROGRAMS = \
81  $(SQLITE_TESTS) \
82  test_psycstore
83 endif
84
85 if ENABLE_TEST_RUN
86 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
87 TESTS = $(check_PROGRAMS)
88 endif
89
90 test_psycstore_SOURCES = \
91  test_psycstore.c
92 test_psycstore_LDADD = \
93   libgnunetpsycstore.la \
94   $(top_builddir)/src/testing/libgnunettesting.la \
95   $(top_builddir)/src/util/libgnunetutil.la
96
97 EXTRA_DIST = \
98   test_psycstore.conf
99
100
101 test_plugin_psycstore_sqlite_SOURCES = \
102  test_plugin_psycstore.c
103 test_plugin_psycstore_sqlite_LDADD = \
104   $(top_builddir)/src/testing/libgnunettesting.la \
105   $(top_builddir)/src/util/libgnunetutil.la