2011-12-19 12:50:50 +00:00
|
|
|
CONTIKI_PROJECT=border-router
|
|
|
|
all: $(CONTIKI_PROJECT)
|
2017-09-01 14:07:13 +00:00
|
|
|
MODULES += os/services/slip-cmd
|
2011-12-19 12:50:50 +00:00
|
|
|
|
|
|
|
CONTIKI=../../..
|
|
|
|
|
2017-05-17 13:30:36 +00:00
|
|
|
PROJECT_SOURCEFILES += border-router-cmds.c tun-bridge.c border-router-mac.c \
|
2011-12-19 12:50:50 +00:00
|
|
|
slip-config.c slip-dev.c
|
|
|
|
|
|
|
|
WITH_WEBSERVER=1
|
|
|
|
ifeq ($(WITH_WEBSERVER),1)
|
|
|
|
CFLAGS += -DWEBSERVER=1
|
|
|
|
PROJECT_SOURCEFILES += httpd-simple.c
|
|
|
|
else ifneq ($(WITH_WEBSERVER), 0)
|
2017-09-01 14:50:48 +00:00
|
|
|
MODULES += $(WITH_WEBSERVER)
|
2011-12-19 12:50:50 +00:00
|
|
|
CFLAGS += -DWEBSERVER=2
|
|
|
|
endif
|
|
|
|
|
2017-10-06 20:35:32 +00:00
|
|
|
MAKE_NET = MAKE_NET_IPV6
|
2017-09-08 15:48:29 +00:00
|
|
|
# Custom MAC layer (border_router_mac_driver)
|
|
|
|
MAKE_MAC = MAKE_MAC_OTHER
|
2011-12-19 12:50:50 +00:00
|
|
|
include $(CONTIKI)/Makefile.include
|
|
|
|
|
|
|
|
connect-router: border-router.native
|
2015-09-30 14:06:58 +00:00
|
|
|
sudo ./border-router.native fd00::1/64
|