diff options
Diffstat (limited to 'src/service/util/Makefile.am')
-rw-r--r-- | src/service/util/Makefile.am | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/service/util/Makefile.am b/src/service/util/Makefile.am new file mode 100644 index 000000000..990c2b41d --- /dev/null +++ b/src/service/util/Makefile.am | |||
@@ -0,0 +1,50 @@ | |||
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 | pkgcfg_DATA = \ | ||
11 | resolver.conf | ||
12 | |||
13 | if USE_COVERAGE | ||
14 | AM_CFLAGS = --coverage -O0 | ||
15 | XLIB = -lgcov | ||
16 | endif | ||
17 | |||
18 | libexec_PROGRAMS = \ | ||
19 | gnunet-service-resolver | ||
20 | |||
21 | if ENABLE_TEST_RUN | ||
22 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | ||
23 | TESTS = $(check_PROGRAMS) $(check_SCRIPTS) | ||
24 | endif | ||
25 | |||
26 | gnunet_service_resolver_SOURCES = \ | ||
27 | gnunet-service-resolver.c | ||
28 | gnunet_service_resolver_LDADD = \ | ||
29 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
30 | $(GN_LIBINTL) | ||
31 | if HAVE_GETADDRINFO_A | ||
32 | gnunet_service_resolver_LDADD += -lanl | ||
33 | endif | ||
34 | |||
35 | |||
36 | check_PROGRAMS = \ | ||
37 | test_resolver_api.nc | ||
38 | |||
39 | # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart | ||
40 | # sequential execution order for them | ||
41 | TEST_EXTENSIONS = .nc | ||
42 | test_test_client_unix.log: test_client.log | ||
43 | |||
44 | test_resolver_api_nc_SOURCES = \ | ||
45 | test_resolver_api.c | ||
46 | test_resolver_api_nc_LDADD = \ | ||
47 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
48 | |||
49 | EXTRA_DIST = \ | ||
50 | test_resolver_api_data.conf | ||