patched rest-example

This commit is contained in:
joxe 2011-01-12 18:30:29 +00:00
parent 820d6eb334
commit 20f8777fd6
2 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,5 @@
all: rest-example
ifndef TARGET ifndef TARGET
TARGET=sky TARGET=sky
endif endif
@ -9,14 +11,14 @@ UIP_CONF_IPV6=1
WITH_COAP = 1 WITH_COAP = 1
CFLAGS += -DPROJECT_CONF_H=1 CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
ifeq ($(WITH_COAP), 1) ifeq ($(WITH_COAP), 1)
CFLAGS += -DWITH_COAP CFLAGS += -DWITH_COAP
APPS = rest-coap APPS += rest-coap
else else
CFLAGS += -DWITH_HTTP CFLAGS += -DWITH_HTTP
APPS = rest-http APPS += rest-http
endif endif
include $(CONTIKI)/Makefile.include include $(CONTIKI)/Makefile.include

View file

@ -1,5 +1,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include "contiki.h" #include "contiki.h"
#include "contiki-net.h" #include "contiki-net.h"
#include "rest.h" #include "rest.h"