From f6eede8077ef0a3597243b0bc0fb5c57861dc3aa Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Thu, 29 Apr 2021 13:16:10 +0200 Subject: [PATCH] examples/Makefile.am: fix include path Example applications are built against the libcoap public API and therefore prefix libcoap includes with "coap3)/". The only exception is coap-rd which uses uthash.h from the internal API. Therefore, "-Iinclude/coap3" is additionally passed as CPPFLAG for coap-rd. --- examples/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/Makefile.am b/examples/Makefile.am index 4b5bcb8b..e66f55a5 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -10,10 +10,11 @@ if BUILD_EXAMPLES # picking up the default warning CFLAGS into AM_CFLAGS AM_CFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include \ - -I$(top_srcdir)/include/coap$(LIBCOAP_API_VERSION) \ $(WARNING_CFLAGS) $(DTLS_CFLAGS) -std=c99 -# +# add coap include path for coap_rd for uthash.h +coap_rd_CPPFLAGS=-I$(top_srcdir)/include/coap$(LIBCOAP_API_VERSION) + bin_PROGRAMS = coap-client coap-server coap-rd check_PROGRAMS = coap-etsi_iot_01 coap-tiny