2013-05-17 14:45:13 +02:00
|
|
|
ifndef TARGET
|
|
|
|
TARGET=seedeye
|
|
|
|
endif
|
|
|
|
|
2013-05-17 14:33:58 +02:00
|
|
|
all: remotepowerswitch
|
|
|
|
|
|
|
|
CONTIKI=../../../
|
|
|
|
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
|
|
|
|
|
|
|
# variable for root Makefile.include
|
|
|
|
WITH_UIP6=1
|
|
|
|
# for some platforms
|
|
|
|
UIP_CONF_IPV6=1
|
|
|
|
|
2013-05-17 14:45:13 +02:00
|
|
|
WITH_COAP=13
|
2013-05-17 14:33:58 +02:00
|
|
|
|
|
|
|
UIP_CONF_RPL=1
|
|
|
|
|
|
|
|
# REST framework, requires WITH_COAP
|
2013-05-17 14:45:13 +02:00
|
|
|
ifeq ($(WITH_COAP), 13)
|
|
|
|
${info INFO: compiling with CoAP-13}
|
|
|
|
CFLAGS += -DWITH_COAP=13
|
|
|
|
CFLAGS += -DREST=coap_rest_implementation
|
|
|
|
CFLAGS += -DUIP_CONF_TCP=0
|
|
|
|
APPS += er-coap-13
|
|
|
|
else ifeq ($(WITH_COAP), 12)
|
|
|
|
${info INFO: compiling with CoAP-12}
|
|
|
|
CFLAGS += -DWITH_COAP=12
|
|
|
|
CFLAGS += -DREST=coap_rest_implementation
|
|
|
|
CFLAGS += -DUIP_CONF_TCP=0
|
|
|
|
APPS += er-coap-12
|
|
|
|
else ifeq ($(WITH_COAP), 7)
|
2013-05-17 14:33:58 +02:00
|
|
|
${info INFO: compiling with CoAP-08}
|
|
|
|
CFLAGS += -DWITH_COAP=7
|
|
|
|
CFLAGS += -DREST=coap_rest_implementation
|
|
|
|
CFLAGS += -DUIP_CONF_TCP=0
|
2013-05-17 14:45:13 +02:00
|
|
|
APPS += er-coap-07
|
2013-05-17 14:33:58 +02:00
|
|
|
else ifeq ($(WITH_COAP), 3)
|
|
|
|
${info INFO: compiling with CoAP-03}
|
|
|
|
CFLAGS += -DWITH_COAP=3
|
|
|
|
CFLAGS += -DREST=coap_rest_implementation
|
|
|
|
CFLAGS += -DUIP_CONF_TCP=0
|
2013-05-17 14:45:13 +02:00
|
|
|
APPS += er-coap-03
|
2013-05-17 14:33:58 +02:00
|
|
|
else
|
|
|
|
${info INFO: compiling with HTTP}
|
|
|
|
CFLAGS += -DWITH_HTTP
|
|
|
|
CFLAGS += -DREST=http_rest_implementation
|
|
|
|
CFLAGS += -DUIP_CONF_TCP=1
|
2013-05-17 14:45:13 +02:00
|
|
|
APPS += er-http-engine
|
2013-05-17 14:33:58 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
APPS += erbium
|
|
|
|
|
|
|
|
include $(CONTIKI)/Makefile.include
|