mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 19:29:18 +00:00
7ef5902c3d
We can now run make sniff and this will provide correct command line arguments for all supported devices.
46 lines
978 B
Makefile
Executable File
46 lines
978 B
Makefile
Executable File
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
|
|
|
|
CONTIKI_PROJECT = sensniff
|
|
|
|
PROJECT_SOURCEFILES += sensniff-rdc.c netstack.c
|
|
PROJECTDIRS += pool $(TARGET)
|
|
|
|
ifeq ($(TARGET),)
|
|
-include Makefile.target
|
|
ifeq ($(TARGET),)
|
|
TARGET=srf06-cc26xx
|
|
$(info TARGET not defined, using target $(TARGET))
|
|
endif
|
|
endif
|
|
|
|
CONTIKI_WITH_RIME = 1
|
|
|
|
### Optionally, the target can add its own Makefile, to do things like e.g.
|
|
### add more source files to the build or define make variables.
|
|
-include $(TARGET)/Makefile.$(TARGET)
|
|
|
|
all: $(CONTIKI_PROJECT)
|
|
|
|
CONTIKI = ../..
|
|
include $(CONTIKI)/Makefile.include
|
|
|
|
PYTHON ?= python
|
|
SENSNIFF = $(CONTIKI)/tools/sensniff/sensniff.py
|
|
|
|
ifeq ($(BAUDRATE),)
|
|
BAUDRATE = 460800
|
|
endif
|
|
|
|
SENSNIFF_FLAGS += -b $(BAUDRATE)
|
|
|
|
ifneq ($(PORT),)
|
|
SENSNIFF_FLAGS += -d $(PORT)
|
|
endif
|
|
|
|
sniff:
|
|
ifeq ($(wildcard $(SENSNIFF)), )
|
|
$(error Could not find the sensniff script. Did you run 'git submodule update --init' ?")
|
|
else
|
|
$(PYTHON) $(SENSNIFF) $(SENSNIFF_FLAGS)
|
|
endif
|