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
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

View file

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