-needs env to link properly
[oweals/gnunet.git] / src / psyc / Makefile.am
1 AM_CPPFLAGS = -I$(top_srcdir)/src/include
2
3 pkgcfgdir= $(pkgdatadir)/config.d/
4
5 libexecdir= $(pkglibdir)/libexec/
6
7 pkgcfg_DATA = \
8   psyc.conf
9
10
11 if MINGW
12  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
13 endif
14
15 if USE_COVERAGE
16   AM_CFLAGS = --coverage -O0
17   XLIB = -lgcov
18 endif
19
20 lib_LTLIBRARIES = libgnunetpsyc.la
21
22 libgnunetpsyc_la_SOURCES = \
23   psyc_api.c \
24   psyc.h
25 libgnunetpsyc_la_LIBADD = \
26   $(top_builddir)/src/util/libgnunetutil.la \
27   $(top_builddir)/src/env/libgnunetenv.la \
28   $(GN_LIBINTL) $(XLIB)
29 libgnunetpsyc_la_LDFLAGS = \
30   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
31   -version-info 0:0:0
32 libgnunetpsyc_la_DEPENDENCIES = \
33   $(top_builddir)/src/util/libgnunetutil.la \
34   $(top_builddir)/src/env/libgnunetenv.la
35
36 bin_PROGRAMS =
37
38 libexec_PROGRAMS = \
39  gnunet-service-psyc
40
41 gnunet_service_psyc_SOURCES = \
42  gnunet-service-psyc.c
43 gnunet_service_psyc_LDADD = \
44   $(top_builddir)/src/statistics/libgnunetstatistics.la \
45   $(top_builddir)/src/util/libgnunetutil.la \
46   $(top_builddir)/src/multicast/libgnunetmulticast.la \
47   $(top_builddir)/src/psycstore/libgnunetpsycstore.la \
48   $(GN_LIBINTL)
49 gnunet_service_psyc_DEPENDENCIES = \
50   $(top_builddir)/src/statistics/libgnunetstatistics.la \
51   $(top_builddir)/src/util/libgnunetutil.la \
52   $(top_builddir)/src/multicast/libgnunetmulticast.la \
53   $(top_builddir)/src/psycstore/libgnunetpsycstore.la
54
55
56 if HAVE_TESTING
57 check_PROGRAMS = \
58  test_psyc
59 endif
60
61 if ENABLE_TEST_RUN
62 TESTS = $(check_PROGRAMS)
63 endif
64
65 test_psyc_SOURCES = \
66  test_psyc.c
67 test_psyc_LDADD = \
68   libgnunetpsyc.la \
69   $(top_builddir)/src/testing/libgnunettesting.la \
70   $(top_builddir)/src/env/libgnunetenv.la \
71   $(top_builddir)/src/util/libgnunetutil.la
72 test_psyc_DEPENDENCIES = \
73   libgnunetpsyc.la \
74   $(top_builddir)/src/testing/libgnunettesting.la \
75   $(top_builddir)/src/env/libgnunetenv.la \
76   $(top_builddir)/src/util/libgnunetutil.la
77
78 EXTRA_DIST = \
79   test_psyc.conf