2013-05-17 12:45:13 +00:00
|
|
|
ifndef TARGET
|
|
|
|
TARGET=seedeye
|
|
|
|
endif
|
|
|
|
|
2013-05-17 12:33:58 +00:00
|
|
|
all: remotepowerswitch
|
|
|
|
|
|
|
|
CONTIKI=../../../
|
|
|
|
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
|
|
|
|
2013-05-17 12:45:13 +00:00
|
|
|
WITH_COAP=13
|
2013-05-17 12:33:58 +00:00
|
|
|
|
|
|
|
# REST framework, requires WITH_COAP
|
2013-05-17 12:45:13 +00: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 12:33:58 +00:00
|
|
|
${info INFO: compiling with CoAP-08}
|
|
|
|
CFLAGS += -DWITH_COAP=7
|
|
|
|
CFLAGS += -DREST=coap_rest_implementation
|
|
|
|
CFLAGS += -DUIP_CONF_TCP=0
|
2013-05-17 12:45:13 +00:00
|
|
|
APPS += er-coap-07
|
2013-05-17 12:33:58 +00: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 12:45:13 +00:00
|
|
|
APPS += er-coap-03
|
2013-05-17 12:33:58 +00:00
|
|
|
else
|
|
|
|
${info INFO: compiling with HTTP}
|
|
|
|
CFLAGS += -DWITH_HTTP
|
|
|
|
CFLAGS += -DREST=http_rest_implementation
|
|
|
|
CFLAGS += -DUIP_CONF_TCP=1
|
2013-05-17 12:45:13 +00:00
|
|
|
APPS += er-http-engine
|
2013-05-17 12:33:58 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
APPS += erbium
|
|
|
|
|
2014-11-12 09:18:29 +00:00
|
|
|
CONTIKI_WITH_IPV6 = 1
|
2013-05-17 12:33:58 +00:00
|
|
|
include $(CONTIKI)/Makefile.include
|