diff --git a/examples/rest-example/Makefile b/examples/rest-example/Makefile index acc3618ec..8147c2478 100644 --- a/examples/rest-example/Makefile +++ b/examples/rest-example/Makefile @@ -1,3 +1,5 @@ +all: rest-example + ifndef TARGET TARGET=sky endif @@ -9,14 +11,14 @@ UIP_CONF_IPV6=1 WITH_COAP = 1 -CFLAGS += -DPROJECT_CONF_H=1 +CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\" ifeq ($(WITH_COAP), 1) CFLAGS += -DWITH_COAP -APPS = rest-coap +APPS += rest-coap else CFLAGS += -DWITH_HTTP -APPS = rest-http +APPS += rest-http endif include $(CONTIKI)/Makefile.include diff --git a/examples/rest-example/rest-server-example.c b/examples/rest-example/rest-server-example.c index b7ae04342..d4d1018a2 100644 --- a/examples/rest-example/rest-server-example.c +++ b/examples/rest-example/rest-server-example.c @@ -1,5 +1,6 @@ #include #include +#include #include "contiki.h" #include "contiki-net.h" #include "rest.h"