From d43d92e40b0c7a1ccb3a8435bc3578eae289dbd6 Mon Sep 17 00:00:00 2001 From: chrysn Date: Tue, 21 Jun 2016 17:12:40 +0200 Subject: [PATCH] examples/lwip: depend on coap.h The handcrafted Makefile will not attempt to build the coap.h, but will indicate to the user how to generate it. --- examples/lwip/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/lwip/Makefile b/examples/lwip/Makefile index bdca9b2d..64f508dc 100644 --- a/examples/lwip/Makefile +++ b/examples/lwip/Makefile @@ -43,7 +43,10 @@ CFLAGS += -Ilwip/src/include/ -Ilwip/src/include/ipv4/ -Ilwip-contrib/ports/unix OBJS = server.o server-coap.o ${LWIPOBJS} ${COAPOBJS} -${OBJS}: lwip lwip-contrib +../../include/coap/coap.h: + @echo "Error: coap.h not present. Run teh autotools chain (\`./autogen.sh && ./configure\`) in the project root directory to build the required coap.h file." + @exit 1 +${OBJS}: lwip lwip-contrib ../../include/coap/coap.h server: ${OBJS}