2017-10-31 22:10:37 +00:00
|
|
|
PROJECTDIRS += common
|
2017-10-28 22:48:46 +00:00
|
|
|
|
|
|
|
CONTIKI=../..
|
|
|
|
|
2017-10-31 22:10:37 +00:00
|
|
|
-include $(CONTIKI)/Makefile.identify-target
|
|
|
|
|
|
|
|
all: border-router.$(TARGET)
|
|
|
|
|
|
|
|
ifeq ($(TARGET),native)
|
|
|
|
SOURCES_DIR = native
|
|
|
|
else
|
|
|
|
SOURCES_DIR = embedded
|
2017-10-30 22:52:31 +00:00
|
|
|
endif
|
|
|
|
|
2017-10-31 22:10:37 +00:00
|
|
|
include $(SOURCES_DIR)/Makefile
|
|
|
|
|
|
|
|
PROJECTDIRS += $(SOURCES_DIR)
|
|
|
|
CFLAGS += -DPROJECT_CONF_PATH=\"$(SOURCES_DIR)/project-conf.h\"
|
|
|
|
|
|
|
|
border-router.$(TARGET): $(SOURCES_DIR)/border-router.$(TARGET)
|
|
|
|
cp $< $@
|
2017-10-30 22:52:31 +00:00
|
|
|
|
2017-10-31 22:10:37 +00:00
|
|
|
CLEAN += border-router.$(TARGET) $(SOURCES_DIR)/border-router.$(TARGET)
|
2017-10-28 22:48:46 +00:00
|
|
|
|
|
|
|
ifeq ($(PREFIX),)
|
2017-10-31 22:10:37 +00:00
|
|
|
PREFIX = fd00::1/64
|
2017-10-28 22:48:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
include $(CONTIKI)/Makefile.include
|