2017-05-16 14:04:19 +00:00
|
|
|
CONTIKI=../../../..
|
2016-01-09 13:44:58 +00:00
|
|
|
|
|
|
|
ifeq ($(MAKECMDGOALS),)
|
|
|
|
$(error Please specify whether coap-client or coap-server should be built)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(filter coap-client coap-client.flash, $(MAKECMDGOALS)),)
|
|
|
|
ifeq ($(SERVER_IPV6_ADDR),)
|
|
|
|
$(error Please define SERVER_IPV6_ADDR=<full ipv6 addr>)
|
|
|
|
else
|
|
|
|
CFLAGS += -DSERVER_IPV6_ADDR=\"$(SERVER_IPV6_ADDR)\"
|
|
|
|
CFLAGS += -DDEVICE_NAME=\"nRF52_DK_CoAP_Client\"
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
CFLAGS += -DDEVICE_NAME=\"nRF52-DK-CoAP-Server\"
|
|
|
|
endif
|
|
|
|
|
|
|
|
# automatically build RESTful resources
|
2017-12-18 15:58:17 +00:00
|
|
|
PROJECTDIRS += ./resources
|
2016-01-09 13:44:58 +00:00
|
|
|
|
|
|
|
# REST Engine shall use Erbium CoAP implementation
|
2017-09-02 07:54:07 +00:00
|
|
|
MODULES += os/net/app-layer/coap
|
2016-01-09 13:44:58 +00:00
|
|
|
|
2017-10-11 18:58:15 +00:00
|
|
|
MAKE_ROUTING = MAKE_ROUTING_NONE
|
2016-01-09 13:44:58 +00:00
|
|
|
|
|
|
|
include $(CONTIKI)/Makefile.include
|