diff options
Diffstat (limited to 'src/psyc/Makefile.am')
-rw-r--r-- | src/psyc/Makefile.am | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/src/psyc/Makefile.am b/src/psyc/Makefile.am new file mode 100644 index 0000000..511e3e3 --- /dev/null +++ b/src/psyc/Makefile.am | |||
@@ -0,0 +1,77 @@ | |||
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 | # test_psyc2 | ||
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;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | ||
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/psycutil/libgnunetpsycutil.la \ | ||
66 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
67 | $(top_builddir)/src/util/libgnunetutil.la | ||
68 | #test_psyc2_SOURCES = \ | ||
69 | # test_psyc2.c | ||
70 | #test_psyc2_LDADD = \ | ||
71 | # libgnunetpsyc.la \ | ||
72 | # $(top_builddir)/src/psycutil/libgnunetpsycutil.la \ | ||
73 | # $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
74 | # $(top_builddir)/src/util/libgnunetutil.la | ||
75 | |||
76 | EXTRA_DIST = \ | ||
77 | test_psyc.conf | ||