Makefile: add @top_srcdir@ to include flags sha2/sha2.h now includes tinydtls.h hence the -I path must be set explicitly.
diff --git a/Makefile.in b/Makefile.in index 38cc665..3ead21d 100644 --- a/Makefile.in +++ b/Makefile.in
@@ -27,6 +27,7 @@ exec_prefix = @exec_prefix@ abs_builddir = @abs_builddir@ top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ libdir = @libdir@ includedir = @includedir@/@PACKAGE_NAME@ package = @PACKAGE_TARNAME@-@PACKAGE_VERSION@ @@ -41,7 +42,7 @@ netq.h alert.h utlist.h prng.h peer.h state.h dtls_time.h session.h \ tinydtls.h CFLAGS:=-Wall -pedantic -std=c99 @CFLAGS@ -CPPFLAGS:=@CPPFLAGS@ -DDTLS_CHECK_CONTENTTYPE +CPPFLAGS:=@CPPFLAGS@ -DDTLS_CHECK_CONTENTTYPE -I$(top_srcdir) SUBDIRS:=tests doc platform-specific sha2 aes ecc DISTSUBDIRS:=$(SUBDIRS) DISTDIR=$(top_builddir)/$(package)