nes-proj/examples/ipv6/native-border-router/Makefile
2017-10-08 00:44:02 +02:00

26 lines
621 B
Makefile

CONTIKI_PROJECT=border-router
all: $(CONTIKI_PROJECT)
MODULES += os/services/slip-cmd
CONTIKI=../../..
PROJECT_SOURCEFILES += border-router-cmds.c tun-bridge.c border-router-mac.c \
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)
MODULES += $(WITH_WEBSERVER)
CFLAGS += -DWEBSERVER=2
endif
MAKE_NET = MAKE_NET_IPV6
# Custom MAC layer (border_router_mac_driver)
MAKE_MAC = MAKE_MAC_OTHER
include $(CONTIKI)/Makefile.include
connect-router: border-router.native
sudo ./border-router.native fd00::1/64