adding extended proxy support for http(s) client
[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 psyc.h \
24   psyc_common.c
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  psyc_common.c
44 gnunet_service_psyc_LDADD = \
45   $(top_builddir)/src/statistics/libgnunetstatistics.la \
46   $(top_builddir)/src/util/libgnunetutil.la \
47   $(top_builddir)/src/multicast/libgnunetmulticast.la \
48   $(top_builddir)/src/psycstore/libgnunetpsycstore.la \
49   $(GN_LIBINTL)
50 gnunet_service_psyc_DEPENDENCIES = \
51   $(top_builddir)/src/statistics/libgnunetstatistics.la \
52   $(top_builddir)/src/util/libgnunetutil.la \
53   $(top_builddir)/src/multicast/libgnunetmulticast.la \
54   $(top_builddir)/src/psycstore/libgnunetpsycstore.la
55 gnunet_service_psyc_CFLAGS = $(AM_CFLAGS)
56
57
58 if HAVE_TESTING
59 check_PROGRAMS = \
60  test_psyc
61 endif
62
63 if ENABLE_TEST_RUN
64 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
65 TESTS = $(check_PROGRAMS)
66 endif
67
68 test_psyc_SOURCES = \
69  test_psyc.c
70 test_psyc_LDADD = \
71   libgnunetpsyc.la \
72   $(top_builddir)/src/testing/libgnunettesting.la \
73   $(top_builddir)/src/env/libgnunetenv.la \
74   $(top_builddir)/src/util/libgnunetutil.la
75 test_psyc_DEPENDENCIES = \
76   libgnunetpsyc.la \
77   $(top_builddir)/src/testing/libgnunettesting.la \
78   $(top_builddir)/src/env/libgnunetenv.la \
79   $(top_builddir)/src/util/libgnunetutil.la
80
81 EXTRA_DIST = \
82   test_psyc.conf