X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fdns%2FMakefile.am;h=5af22812176ad9b81b0ef4f652ac2fb5e0986a86;hb=f2d31fb82a314dcf6819dd494ff4a11e4f871c4e;hp=345c1316c208fda077da289260fd60c68df98780;hpb=07ab625068b62afc532a78534018f6579697a307;p=oweals%2Fgnunet.git diff --git a/src/dns/Makefile.am b/src/dns/Makefile.am index 345c1316c..5af228121 100644 --- a/src/dns/Makefile.am +++ b/src/dns/Makefile.am @@ -1,4 +1,5 @@ -INCLUDES = -I$(top_srcdir)/src/include +# This Makefile.am is in the public domain +AM_CPPFLAGS = -I$(top_srcdir)/src/include if MINGW WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols @@ -20,7 +21,7 @@ pkgcfg_DATA = \ if LINUX HIJACKBIN = gnunet-helper-dns install-exec-hook: - $(top_srcdir)/src/dns/install-dns-helper.sh $(libexecdir) $(GNUNETDNS_GROUP) $(SUDO_BINARY) || true + $(top_srcdir)/src/dns/install-dns-helper.sh $(DESTDIR)$(libexecdir) $(GNUNETDNS_GROUP) $(SUDO_BINARY) || true else install-exec-hook: endif @@ -37,13 +38,16 @@ noinst_PROGRAMS = \ gnunet-dns-monitor gnunet-dns-redirector plugin_LTLIBRARIES = \ - libgnunet_plugin_block_dns.la + libgnunet_plugin_block_dns.la if LINUX check_SCRIPTS = \ test_gnunet_dns.sh endif +check_PROGRAMS = \ + test_hexcoder + gnunet_helper_dns_SOURCES = \ gnunet-helper-dns.c @@ -51,38 +55,30 @@ gnunet_helper_dns_SOURCES = \ gnunet_dns_monitor_SOURCES = \ gnunet-dns-monitor.c gnunet_dns_monitor_LDADD = \ - $(top_builddir)/src/dns/libgnunetdnsparser.la \ - $(top_builddir)/src/dns/libgnunetdns.la \ + libgnunetdnsparser.la \ + libgnunetdns.la \ $(top_builddir)/src/util/libgnunetutil.la \ $(GN_LIBINTL) -gnunet_dns_monitor_DEPENDENCIES = \ - libgnunetdnsparser.la \ - libgnunetdns.la gnunet_dns_redirector_SOURCES = \ gnunet-dns-redirector.c gnunet_dns_redirector_LDADD = \ - $(top_builddir)/src/dns/libgnunetdnsparser.la \ - $(top_builddir)/src/dns/libgnunetdns.la \ + libgnunetdnsparser.la \ + libgnunetdns.la \ $(top_builddir)/src/util/libgnunetutil.la \ $(GN_LIBINTL) -gnunet_dns_redirector_DEPENDENCIES = \ - libgnunetdnsparser.la \ - libgnunetdns.la gnunet_service_dns_SOURCES = \ - gnunet-service-dns.c + gnunet-service-dns.c gnunet_service_dns_LDADD = \ - $(top_builddir)/src/dns/libgnunetdnsstub.la \ + libgnunetdnsstub.la \ $(top_builddir)/src/tun/libgnunettun.la \ $(top_builddir)/src/statistics/libgnunetstatistics.la \ $(top_builddir)/src/util/libgnunetutil.la \ $(GN_LIBINTL) -gnunet_service_dns_DEPENDENCIES = \ - libgnunetdnsstub.la libgnunetdnsparser_la_SOURCES = \ - dnsparser.c dnsparser.h + dnsparser.c libgnunetdnsparser_la_LIBADD = \ $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \ -lidn @@ -91,8 +87,9 @@ libgnunetdnsparser_la_LDFLAGS = \ -version-info 1:0:1 libgnunetdnsstub_la_SOURCES = \ - dnsstub.c + dnsstub.c libgnunetdnsstub_la_LIBADD = \ + $(top_builddir)/src/tun/libgnunettun.la \ $(top_builddir)/src/util/libgnunetutil.la $(XLIB) libgnunetdnsstub_la_LDFLAGS = \ $(GN_LIB_LDFLAGS) \ @@ -109,14 +106,23 @@ libgnunetdns_la_LDFLAGS = \ libgnunet_plugin_block_dns_la_SOURCES = \ plugin_block_dns.c libgnunet_plugin_block_dns_la_LIBADD = \ + $(top_builddir)/src/block/libgnunetblockgroup.la \ $(top_builddir)/src/util/libgnunetutil.la libgnunet_plugin_block_dns_la_LDFLAGS = \ $(top_builddir)/src/block/$(GN_PLUGIN_LDFLAGS) if ENABLE_TEST_RUN +AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; TESTS = $(check_PROGRAMS) $(check_SCRIPTS) endif EXTRA_DIST = \ - $(check_SCRIPTS) + $(check_SCRIPTS) + + +test_hexcoder_SOURCES = \ + test_hexcoder.c +test_hexcoder_LDADD = \ + libgnunetdnsparser.la \ + $(top_builddir)/src/util/libgnunetutil.la