Merge branch 'credentials' of git+ssh://gnunet.org/gnunet into credentials
[oweals/gnunet.git] / src / psyc / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 pkgcfgdir= $(pkgdatadir)/config.d/
5
6 libexecdir= $(pkglibdir)/libexec/
7
8 pkgcfg_DATA = \
9   psyc.conf
10
11
12 if MINGW
13  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
14 endif
15
16 if USE_COVERAGE
17   AM_CFLAGS = --coverage -O0
18   XLIB = -lgcov
19 endif
20
21 lib_LTLIBRARIES = libgnunetpsyc.la
22
23 libgnunetpsyc_la_SOURCES = \
24   psyc_api.c psyc.h
25 libgnunetpsyc_la_LIBADD = \
26   $(top_builddir)/src/util/libgnunetutil.la \
27   $(top_builddir)/src/psycutil/libgnunetpsycutil.la \
28   $(GN_LIBINTL) $(XLIB)
29 libgnunetpsyc_la_LDFLAGS = \
30   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
31   -version-info 0:0:0
32
33 bin_PROGRAMS =
34
35 libexec_PROGRAMS = \
36  gnunet-service-psyc
37
38 gnunet_service_psyc_SOURCES = \
39   gnunet-service-psyc.c
40 gnunet_service_psyc_LDADD = \
41   $(top_builddir)/src/util/libgnunetutil.la \
42   $(top_builddir)/src/statistics/libgnunetstatistics.la \
43   $(top_builddir)/src/multicast/libgnunetmulticast.la \
44   $(top_builddir)/src/psycstore/libgnunetpsycstore.la \
45   $(top_builddir)/src/psycutil/libgnunetpsycutil.la \
46   $(GN_LIBINTL)
47 gnunet_service_psyc_CFLAGS = $(AM_CFLAGS)
48
49
50 if HAVE_TESTING
51 check_PROGRAMS = \
52  test_psyc
53 endif
54
55 if ENABLE_TEST_RUN
56 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
57 TESTS = $(check_PROGRAMS)
58 endif
59
60 test_psyc_SOURCES = \
61  test_psyc.c
62 test_psyc_LDADD = \
63   libgnunetpsyc.la \
64   $(top_builddir)/src/psycutil/libgnunetpsycutil.la \
65   $(top_builddir)/src/testing/libgnunettesting.la \
66   $(top_builddir)/src/util/libgnunetutil.la
67
68 EXTRA_DIST = \
69   test_psyc.conf