if HAVE_CUNIT
AM_CFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include $(WARNING_CFLAGS) $(CUNIT_CFLAGS) $(DTLS_CFLAGS) -std=c99 $(EXTRA_CFLAGS)
noinst_PROGRAMS = \
testdriver
testdriver_SOURCES = \
testdriver.c \
test_error_response.c \
test_encode.c \
test_options.c \
test_pdu.c \
test_sendqueue.c \
test_session.c \
test_uri.c \
test_wellknown.c \
test_tls.c
testdriver_LDADD = $(CUNIT_LIBS) $(top_builddir)/.libs/libcoap-$(LIBCOAP_NAME_SUFFIX).a ${DTLS_LIBS}
CLEANFILES = testdriver
all-am: testdriver
endif