nes-proj/examples/ipv6/native-border-router/Makefile

25 lines
592 B
Makefile
Raw Normal View History

CONTIKI_PROJECT=border-router
all: $(CONTIKI_PROJECT)
2017-09-01 14:07:13 +00:00
MODULES += os/services/slip-cmd
CONTIKI=../../..
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
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)
2017-09-01 14:50:48 +00:00
MODULES += $(WITH_WEBSERVER)
CFLAGS += -DWEBSERVER=2
endif
CONTIKI_WITH_IPV6 = 1
include $(CONTIKI)/Makefile.include
connect-router: border-router.native
sudo ./border-router.native fd00::1/64