nes-proj/examples/rpl-border-router/Makefile
George Oikonomou dd1f06fb01 Move example to the top-level dir (rpl-border-router) and tidy-up webserver configuration
Previously, we were using the example's Makefile to configure whether we want a web server built into the BR. We had 3 options:

* No web server
* Internal web server
* External web server (from apps/)

The last option is no longer evailable. This commit removes support for this option and it also simplifies the situation: We now merely use a CPP macro to enable/disable the web server.
2017-10-30 21:46:55 +00:00

22 lines
493 B
Makefile

CONTIKI_PROJECT=border-router
all: $(CONTIKI_PROJECT)
CONTIKI=../..
PROJECT_SOURCEFILES += slip-bridge.c httpd-simple.c
ifeq ($(PREFIX),)
PREFIX = fd00::1/64
endif
include $(CONTIKI)/Makefile.include
$(CONTIKI)/tools/tunslip6: $(CONTIKI)/tools/tunslip6.c
(cd $(CONTIKI)/tools && $(MAKE) tunslip6)
connect-router: $(CONTIKI)/tools/tunslip6
sudo $(CONTIKI)/tools/tunslip6 $(PREFIX)
connect-router-cooja: $(CONTIKI)/tools/tunslip6
sudo $(CONTIKI)/tools/tunslip6 -a 127.0.0.1 $(PREFIX)