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