mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-22 07:15:14 +03:00
{tests/examples}/Makefile.am: add DTLS variables for static linkage
Statically linked executables require DTLS_CFLAGS and DTLS_LIBS.
This commit is contained in:
1 parent
4c38c6a7b2
commit
5687681d71
2 files changed
+6
-6
No files matched your search
@@ -9,19 +9,19 @@
|
||||
if BUILD_EXAMPLES
|
||||
|
||||
# picking up the default warning CFLAGS into AM_CFLAGS
|
||||
AM_CFLAGS = -isystem$(top_builddir)/include -I$(top_srcdir)/include $(WARNING_CFLAGS) -std=c99
|
||||
AM_CFLAGS = -isystem$(top_builddir)/include -I$(top_srcdir)/include $(WARNING_CFLAGS) $(DTLS_CFLAGS) -std=c99
|
||||
|
||||
# etsi_iot_01 and tiny are missing
|
||||
bin_PROGRAMS = coap-client coap-server coap-rd
|
||||
|
||||
coap_client_SOURCES = client.c coap_list.c
|
||||
coap_client_LDADD = $(top_builddir)/.libs/libcoap-$(LIBCOAP_API_VERSION).la
|
||||
coap_client_LDADD = $(DTLS_LIBS) $(top_builddir)/.libs/libcoap-$(LIBCOAP_API_VERSION).la
|
||||
|
||||
coap_server_SOURCES = coap-server.c
|
||||
coap_server_LDADD = $(top_builddir)/.libs/libcoap-$(LIBCOAP_API_VERSION).la
|
||||
coap_server_LDADD = $(DTLS_LIBS) $(top_builddir)/.libs/libcoap-$(LIBCOAP_API_VERSION).la
|
||||
|
||||
coap_rd_SOURCES = coap-rd.c
|
||||
coap_rd_LDADD = $(top_builddir)/.libs/libcoap-$(LIBCOAP_API_VERSION).la
|
||||
coap_rd_LDADD = $(DTLS_LIBS) $(top_builddir)/.libs/libcoap-$(LIBCOAP_API_VERSION).la
|
||||
|
||||
# build manuals only if 'BUILD_DOCUMENTATION' is defined
|
||||
if BUILD_DOCUMENTATION
|
||||
|
||||
+2
-2
@@ -9,7 +9,7 @@
|
||||
if HAVE_CUNIT
|
||||
|
||||
# picking up the default warning CFLAGS
|
||||
AM_CFLAGS = -I$(top_srcdir)/include/coap -I$(top_builddir)/include/coap $(WARNING_CFLAGS) $(CUNIT_CFLAGS) -std=c99
|
||||
AM_CFLAGS = -I$(top_srcdir)/include/coap -I$(top_builddir)/include/coap $(WARNING_CFLAGS) $(CUNIT_CFLAGS) $(DTLS_CFLAGS) -std=c99
|
||||
|
||||
noinst_PROGRAMS = \
|
||||
testdriver
|
||||
@@ -23,7 +23,7 @@ testdriver_SOURCES = \
|
||||
test_uri.c \
|
||||
test_wellknown.c
|
||||
|
||||
testdriver_LDADD = $(CUNIT_LIBS) $(top_builddir)/.libs/libcoap-$(LIBCOAP_API_VERSION).la
|
||||
testdriver_LDADD = $(CUNIT_LIBS) $(DTLS_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
|
||||
|
||||
Reference in new issue
Block a user