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.
This commit is contained in:
Olaf Bergmann committed 2021-04-29 13:16:10 +02:00
1 parent aa09d1fcfe
commit f6eede8077
1 file changed
+3 -2
+3 -2
View File
@@ -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