mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-02 07:55:46 +03:00
libtool marks functions included in the Makefile.am CTAGS_IGNORE list as nm type 't' in .so library files so that they are not globally visible. This means that tests/testdriver is unable to access these functions. However, when building .a files, these functions remain as nm type 'T', so are globally available. This change causes tests/testdriver to always be be built with the .a library file. configure.ac: Always enable --enable-static if --enable-tests is set. Include this --enable-static requirement in the help information. tests.Makefile.am Change the default library type to always be .a and re-order parameters.
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
# doc/Makefile.am
|
|
#
|
|
# Copyright (C) 2015-2016 Carsten Schoenert <c.schoenert@t-online.de>
|
|
#
|
|
# This file is part of the CoAP C library libcoap. Please see README and
|
|
# COPYING for terms of use.
|
|
|
|
# just do anything if 'HAVE_CUNIT' is defined
|
|
if HAVE_CUNIT
|
|
|
|
# picking up the default warning CFLAGS
|
|
AM_CFLAGS = -I$(top_builddir)/include/coap$(LIBCOAP_API_VERSION) -I$(top_srcdir)/include/coap$(LIBCOAP_API_VERSION) $(WARNING_CFLAGS) $(CUNIT_CFLAGS) $(DTLS_CFLAGS) -std=c99
|
|
|
|
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
|
|
|
|
# The .a file is uses instead of .la so that testdriver can always access the
|
|
# internal functions that are not globaly exposed in a .so file.
|
|
testdriver_LDADD = $(CUNIT_LIBS) $(top_builddir)/.libs/libcoap-$(LIBCOAP_NAME_SUFFIX).a ${DTLS_LIBS}
|
|
|
|
# If there is a API change to something $(LIBCOAP_API_VERSION) > 1 there is
|
|
# nothing to adopt here. No needed to implement something here because the test
|
|
# unit will always be build againts the actual header files!
|
|
|
|
CLEANFILES = testdriver
|
|
|
|
all-am: testdriver
|
|
|
|
endif # HAVE_CUNIT
|