bind9/lib/ns/tests/Makefile.am
Michal Nowak 5bbc6dd7f1 Fix "make dist"
Make various adjustments necessary to enable "make dist" to build a BIND
source tarball whose contents are complete enough to build binaries, run
unit & system tests, and generate documentation on Unix systems.

Known outstanding issues:

  - "make distcheck" does not work yet.
  - Tests do not work for out-of-tree source-tarball-based builds.
  - Source tarballs are not complete enough for building on Windows.

All of the above will be addressed in due course.
2020-06-05 13:19:49 +02:00

51 lines
801 B
Makefile

include $(top_srcdir)/Makefile.top
include $(top_srcdir)/Makefile.tests
AM_CPPFLAGS += \
$(LIBISC_CFLAGS) \
$(LIBDNS_CFLAGS) \
$(LIBNS_CFLAGS)
LDADD += \
libnstest.la \
$(LIBISC_LIBS) \
$(LIBDNS_LIBS) \
$(LIBNS_LIBS)
check_LTLIBRARIES = libnstest.la
libnstest_la_SOURCES = nstest.c nstest.h
check_PROGRAMS = \
listenlist_test \
plugin_test
TESTS = $(check_PROGRAMS)
if HAVE_LD_WRAP
check_PROGRAMS += \
notify_test \
query_test
notify_test_SOURCES = \
notify_test.c \
wrap.c
notify_test_LDFLAGS = \
$(LDFLAGS) \
-Wl,--wrap=isc_nmhandle_unref
query_test_SOURCES = \
query_test.c \
wrap.c
query_test_LDFLAGS = \
$(LDFLAGS) \
-Wl,--wrap=isc_nmhandle_unref
endif
unit-local: check
EXTRA_DIST = testdata
LOG_COMPILER = $(builddir)/../../unit-test-driver.sh