social: guest_enter_by_name(); zone_add_pkey(); join_msg fixes
[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/env/libgnunetenv.la \
28   $(top_builddir)/src/psycstore/libgnunetpsycutil.la \
29   $(GN_LIBINTL) $(XLIB)
30 libgnunetpsyc_la_LDFLAGS = \
31   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
32   -version-info 0:0:0
33
34 bin_PROGRAMS =
35
36 libexec_PROGRAMS = \
37  gnunet-service-psyc
38
39 gnunet_service_psyc_SOURCES = \
40   gnunet-service-psyc.c
41 gnunet_service_psyc_LDADD = \
42   $(top_builddir)/src/util/libgnunetutil.la \
43   $(top_builddir)/src/statistics/libgnunetstatistics.la \
44   $(top_builddir)/src/multicast/libgnunetmulticast.la \
45   $(top_builddir)/src/psycstore/libgnunetpsycstore.la \
46   $(top_builddir)/src/psycstore/libgnunetpsycutil.la \
47   $(GN_LIBINTL)
48 gnunet_service_psyc_CFLAGS = $(AM_CFLAGS)
49
50
51 if HAVE_TESTING
52 check_PROGRAMS = \
53  test_psyc
54 endif
55
56 if ENABLE_TEST_RUN
57 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
58 TESTS = $(check_PROGRAMS)
59 endif
60
61 test_psyc_SOURCES = \
62  test_psyc.c
63 test_psyc_LDADD = \
64   libgnunetpsyc.la \
65   $(top_builddir)/src/psycstore/libgnunetpsycutil.la \
66   $(top_builddir)/src/testing/libgnunettesting.la \
67   $(top_builddir)/src/core/libgnunetcore.la \
68   $(top_builddir)/src/env/libgnunetenv.la \
69   $(top_builddir)/src/util/libgnunetutil.la
70
71 EXTRA_DIST = \
72   test_psyc.conf