patched rest-example
This commit is contained in:
parent
820d6eb334
commit
20f8777fd6
2 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "contiki.h"
|
||||
#include "contiki-net.h"
|
||||
#include "rest.h"
|
||||
|
|
Loading…
Reference in a new issue