41 lines
919 B
Makefile
41 lines
919 B
Makefile
|
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
|
||
|
|
||
|
# variable for this Makefile
|
||
|
# configure CoAP implementation (3|7) (er-coap-07 also supports CoAP draft 08)
|
||
|
WITH_COAP=7
|
||
|
|
||
|
UIP_CONF_RPL=1
|
||
|
|
||
|
# REST framework, requires WITH_COAP
|
||
|
ifeq ($(WITH_COAP), 7)
|
||
|
${info INFO: compiling with CoAP-08}
|
||
|
CFLAGS += -DWITH_COAP=7
|
||
|
CFLAGS += -DREST=coap_rest_implementation
|
||
|
CFLAGS += -DUIP_CONF_TCP=0
|
||
|
APPS += er-coap-07
|
||
|
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
|
||
|
APPS += er-coap-03
|
||
|
else
|
||
|
${info INFO: compiling with HTTP}
|
||
|
CFLAGS += -DWITH_HTTP
|
||
|
CFLAGS += -DREST=http_rest_implementation
|
||
|
CFLAGS += -DUIP_CONF_TCP=1
|
||
|
APPS += er-http-engine
|
||
|
endif
|
||
|
|
||
|
APPS += erbium
|
||
|
|
||
|
include $(CONTIKI)/Makefile.include
|