1c87c5fbaSopenharmony_ci# tests/Makefile.am 2c87c5fbaSopenharmony_ci# 3c87c5fbaSopenharmony_ci# Copyright (C) 2015-2016 Carsten Schoenert <c.schoenert@t-online.de> 4c87c5fbaSopenharmony_ci# 5c87c5fbaSopenharmony_ci# SPDX-License-Identifier: BSD-2-Clause 6c87c5fbaSopenharmony_ci# 7c87c5fbaSopenharmony_ci# This file is part of the CoAP C library libcoap. Please see README and 8c87c5fbaSopenharmony_ci# COPYING for terms of use. 9c87c5fbaSopenharmony_ci 10c87c5fbaSopenharmony_ci# just do anything if 'HAVE_CUNIT' is defined 11c87c5fbaSopenharmony_ciif HAVE_CUNIT 12c87c5fbaSopenharmony_ci 13c87c5fbaSopenharmony_ci# picking up the default warning CFLAGS 14c87c5fbaSopenharmony_ciAM_CFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include $(WARNING_CFLAGS) $(CUNIT_CFLAGS) $(DTLS_CFLAGS) -std=c99 $(EXTRA_CFLAGS) 15c87c5fbaSopenharmony_ci 16c87c5fbaSopenharmony_cinoinst_PROGRAMS = \ 17c87c5fbaSopenharmony_ci testdriver 18c87c5fbaSopenharmony_ci 19c87c5fbaSopenharmony_citestdriver_SOURCES = \ 20c87c5fbaSopenharmony_ci testdriver.c \ 21c87c5fbaSopenharmony_ci test_error_response.c \ 22c87c5fbaSopenharmony_ci test_encode.c \ 23c87c5fbaSopenharmony_ci test_options.c \ 24c87c5fbaSopenharmony_ci test_pdu.c \ 25c87c5fbaSopenharmony_ci test_sendqueue.c \ 26c87c5fbaSopenharmony_ci test_session.c \ 27c87c5fbaSopenharmony_ci test_uri.c \ 28c87c5fbaSopenharmony_ci test_wellknown.c \ 29c87c5fbaSopenharmony_ci test_tls.c \ 30c87c5fbaSopenharmony_ci test_oscore.c 31c87c5fbaSopenharmony_ci 32c87c5fbaSopenharmony_ci# The .a file is uses instead of .la so that testdriver can always access the 33c87c5fbaSopenharmony_ci# internal functions that are not globaly exposed in a .so file. 34c87c5fbaSopenharmony_citestdriver_LDADD = $(CUNIT_LIBS) $(top_builddir)/.libs/libcoap-$(LIBCOAP_NAME_SUFFIX).a ${DTLS_LIBS} 35c87c5fbaSopenharmony_ci 36c87c5fbaSopenharmony_ci# If there is a API change to something $(LIBCOAP_API_VERSION) > 1 there is 37c87c5fbaSopenharmony_ci# nothing to adopt here. No needed to implement something here because the test 38c87c5fbaSopenharmony_ci# unit will always be build againts the actual header files! 39c87c5fbaSopenharmony_ci 40c87c5fbaSopenharmony_ciCLEANFILES = testdriver 41c87c5fbaSopenharmony_ci 42c87c5fbaSopenharmony_ciall-am: testdriver 43c87c5fbaSopenharmony_ci 44c87c5fbaSopenharmony_ciendif # HAVE_CUNIT 45