2017-09-01 15:45:50 +00:00
|
|
|
all: coap-example-server coap-example-client
|
|
|
|
# use target "plugtest-server" explicitly when required
|
2013-06-19 12:53:21 +00:00
|
|
|
|
2017-10-28 19:45:06 +00:00
|
|
|
CONTIKI=../..
|
2011-09-14 14:33:01 +00:00
|
|
|
|
2017-12-18 15:58:17 +00:00
|
|
|
# build RESTful resources
|
|
|
|
include $(CONTIKI)/Makefile.identify-target
|
|
|
|
ifeq ($(TARGET),native)
|
2017-12-19 13:29:55 +00:00
|
|
|
MODULES_REL += ./resources-plugtest
|
2014-04-22 08:31:43 +00:00
|
|
|
endif
|
2017-12-19 13:29:55 +00:00
|
|
|
MODULES_REL += ./resources
|
2018-01-12 15:08:42 +00:00
|
|
|
MODULES_REL += $(TARGET)
|
2011-09-14 14:33:01 +00:00
|
|
|
|
2017-09-01 14:57:50 +00:00
|
|
|
# Include the CoAP implementation
|
|
|
|
MODULES += os/net/app-layer/coap
|
2011-09-14 14:33:01 +00:00
|
|
|
|
|
|
|
include $(CONTIKI)/Makefile.include
|
|
|
|
|
2012-05-13 14:23:28 +00:00
|
|
|
# border router rules
|
2011-09-14 14:33:01 +00:00
|
|
|
$(CONTIKI)/tools/tunslip6: $(CONTIKI)/tools/tunslip6.c
|
|
|
|
(cd $(CONTIKI)/tools && $(MAKE) tunslip6)
|
|
|
|
|
|
|
|
connect-router: $(CONTIKI)/tools/tunslip6
|
2015-09-30 14:06:58 +00:00
|
|
|
sudo $(CONTIKI)/tools/tunslip6 fd00::1/64
|
2011-09-14 14:33:01 +00:00
|
|
|
|
|
|
|
connect-router-cooja: $(CONTIKI)/tools/tunslip6
|
2015-09-30 14:06:58 +00:00
|
|
|
sudo $(CONTIKI)/tools/tunslip6 -a 127.0.0.1 -p 60001 fd00::1/64
|
2014-05-15 11:12:22 +00:00
|
|
|
|
2017-11-07 17:27:09 +00:00
|
|
|
connect-router-native: $(CONTIKI)/examples/rpl-border-router/border-router.native
|
|
|
|
sudo $(CONTIKI)/examples/rpl-border-router/border-router.native -a 127.0.0.1 -p 60001 fd00::1/64
|
2014-05-15 11:12:22 +00:00
|
|
|
|
2017-11-07 17:27:09 +00:00
|
|
|
connect-native:
|
|
|
|
sudo ip address add fdfd::1/64 dev tun0
|