diff options
Diffstat (limited to 'src/service/util/Makefile.am')
-rw-r--r-- | src/service/util/Makefile.am | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/service/util/Makefile.am b/src/service/util/Makefile.am new file mode 100644 index 000000000..ecd1f5e1b --- /dev/null +++ b/src/service/util/Makefile.am | |||
@@ -0,0 +1,47 @@ | |||
1 | # This Makefile.am is in the public domain | ||
2 | AM_CPPFLAGS = -I$(top_srcdir)/src/include | ||
3 | |||
4 | plugindir = $(libdir)/gnunet | ||
5 | |||
6 | libexecdir= $(pkglibdir)/libexec/ | ||
7 | |||
8 | pkgcfgdir= $(pkgdatadir)/config.d/ | ||
9 | |||
10 | if USE_COVERAGE | ||
11 | AM_CFLAGS = --coverage -O0 | ||
12 | XLIB = -lgcov | ||
13 | endif | ||
14 | |||
15 | libexec_PROGRAMS = \ | ||
16 | gnunet-service-resolver | ||
17 | |||
18 | if ENABLE_TEST_RUN | ||
19 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | ||
20 | TESTS = $(check_PROGRAMS) $(check_SCRIPTS) | ||
21 | endif | ||
22 | |||
23 | gnunet_service_resolver_SOURCES = \ | ||
24 | gnunet-service-resolver.c | ||
25 | gnunet_service_resolver_LDADD = \ | ||
26 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
27 | $(GN_LIBINTL) | ||
28 | if HAVE_GETADDRINFO_A | ||
29 | gnunet_service_resolver_LDADD += -lanl | ||
30 | endif | ||
31 | |||
32 | |||
33 | check_PROGRAMS = \ | ||
34 | test_resolver_api.nc | ||
35 | |||
36 | # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart | ||
37 | # sequential execution order for them | ||
38 | TEST_EXTENSIONS = .nc | ||
39 | test_test_client_unix.log: test_client.log | ||
40 | |||
41 | test_resolver_api_nc_SOURCES = \ | ||
42 | test_resolver_api.c | ||
43 | test_resolver_api_nc_LDADD = \ | ||
44 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
45 | |||
46 | EXTRA_DIST = \ | ||
47 | test_resolver_api_data.conf | ||