CONTIKI_PROJECT = coap-example-server coap-example-client # use target "plugtest-server" explicitly when required all: $(CONTIKI_PROJECT) CONTIKI=../.. # Do not try to build on Sky because of code size limitation PLATFORMS_EXCLUDE = sky # build RESTful resources include $(CONTIKI)/Makefile.identify-target ifeq ($(TARGET),native) MODULES_REL += ./resources-plugtest endif MODULES_REL += ./resources MODULES_REL += $(TARGET) # Include the CoAP implementation MODULES += os/net/app-layer/coap include $(CONTIKI)/Makefile.include # border router rules $(CONTIKI)/tools/tunslip6: $(CONTIKI)/tools/tunslip6.c (cd $(CONTIKI)/tools && $(MAKE) tunslip6) connect-router: $(CONTIKI)/tools/tunslip6 sudo $(CONTIKI)/tools/tunslip6 fd00::1/64 connect-router-cooja: $(CONTIKI)/tools/tunslip6 sudo $(CONTIKI)/tools/tunslip6 -a 127.0.0.1 -p 60001 fd00::1/64 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 connect-native: sudo ip address add fdfd::1/64 dev tun0