3c52d6727c
Added a compile warning and documented the limitation in the README.
34 lines
971 B
Makefile
34 lines
971 B
Makefile
all: coap-example-server coap-example-client
|
|
# use target "plugtest-server" explicitly when required
|
|
|
|
CONTIKI=../..
|
|
|
|
# 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
|