2016-04-22 17:51:59 +02:00
|
|
|
EXE=er-example-server
|
|
|
|
|
|
|
|
all: $(EXE)
|
2014-03-12 12:29:33 +01:00
|
|
|
|
|
|
|
CONTIKI=../../..
|
|
|
|
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
|
|
|
|
|
|
|
# linker optimizations
|
|
|
|
SMALL=1
|
|
|
|
|
2017-08-22 22:29:03 +02:00
|
|
|
APPS += er-coap rest-engine json
|
2014-03-12 12:29:33 +01:00
|
|
|
|
|
|
|
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 aaaa::1/64
|
|
|
|
|
|
|
|
connect-router-cooja: $(CONTIKI)/tools/tunslip6
|
|
|
|
sudo $(CONTIKI)/tools/tunslip6 -a 127.0.0.1 aaaa::1/64
|
|
|
|
|
|
|
|
connect-minimal:
|
|
|
|
sudo ip address add fdfd::1/64 dev tap0
|