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