mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-24 16:11:03 +03:00
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:
1 parent
aa09d1fcfe
commit
f6eede8077
1 file changed
+3
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user