Files
libcoap/tests/Makefile.am
T
Carsten Schoenert 63924379e3 testdriver: switch linking to the shared library
The testdriver was linked against the statically generated library of
libcoap. By this the testdriver will *always* find any symbols, no
matter if it is a private or public symbol.
Due this the testing behavior isn't the same as a user would use the
shared library and can get a potentially pitfall even if the testdriver
was successful.

Due previous changes to the public header the testdriver source needs
now the local header coap_config.h to find all needed functions so there
are small changes needed to the source files.
2015-07-04 19:35:10 +02:00

39 lines
954 B
Makefile

# doc/Makefile.am
#
# Copyright (C) 2015 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 = $(WARNING_CFLAGS) -std=c99
noinst_PROGRAMS = \
testdriver
testdriver_SOURCES = \
testdriver.c \
test_error_response.c \
test_options.c \
test_pdu.c \
test_sendqueue.c \
test_uri.c \
test_wellknown.c
testdriver_LDADD = @CUNIT_LIBS@ @top_builddir@/.libs/libcoap-$(LIBCOAP_API_VERSION).la
# 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!
#
testdriver_CFLAGS = -I @top_builddir@/include/coap/ $(AM_CFLAGS)
CLEANFILES = testdriver
all-am: testdriver
endif # HAVE_CUNIT