bind9/tests/libtest/Makefile.am
Mark Andrews 64c0065986 Build libtest even if CMOCKA is not available
Be more selective about what is not built when CMOCKA is not available
so that fuzz/dns_qp and fuzz/dns_qpkey_name can link against it.
2023-03-29 02:29:18 +00:00

31 lines
559 B
Makefile

include $(top_srcdir)/Makefile.top
AM_CPPFLAGS += \
$(LIBISC_CFLAGS) \
$(LIBDNS_CFLAGS) \
$(LIBNS_CFLAGS) \
$(LIBUV_CFLAGS) \
-I$(top_srcdir)/lib/isc \
-I$(top_srcdir)/lib/dns
LDADD += \
$(LIBISC_LIBS) \
$(LIBDNS_LIBS) \
$(LIBNS_LIBS)
noinst_LTLIBRARIES = libtest.la
libtest_la_SOURCES = \
../include/tests/isc.h \
../include/tests/ns.h \
../include/tests/qp.h \
isc.c \
ns.c \
qp.c
if HAVE_CMOCKA
libtest_la_SOURCES += \
../include/tests/dns.h \
dns.c
endif HAVE_CMOCKA
include $(top_srcdir)/Makefile.tests