Adjust the sensniff example to use top-level target identification
This commit is contained in:
parent
e73edfaa60
commit
9362b7f58e
@ -1,15 +1,10 @@
|
|||||||
CONTIKI_PROJECT = sensniff
|
CONTIKI_PROJECT = sensniff
|
||||||
|
CONTIKI = ../..
|
||||||
|
|
||||||
PROJECT_SOURCEFILES += sensniff-mac.c netstack.c
|
PROJECT_SOURCEFILES += sensniff-mac.c netstack.c
|
||||||
PROJECTDIRS += pool $(TARGET)
|
PROJECTDIRS += pool $(TARGET)
|
||||||
|
|
||||||
ifeq ($(TARGET),)
|
-include $(CONTIKI)/Makefile.identify-target
|
||||||
-include Makefile.target
|
|
||||||
ifeq ($(TARGET),)
|
|
||||||
TARGET=srf06-cc26xx
|
|
||||||
$(info TARGET not defined, using target $(TARGET))
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
### Optionally, the target can add its own Makefile, to do things like e.g.
|
### 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.
|
### add more source files to the build or define make variables.
|
||||||
@ -19,7 +14,6 @@ all: $(CONTIKI_PROJECT)
|
|||||||
|
|
||||||
# use a custom MAC driver: sensniff_mac_driver
|
# use a custom MAC driver: sensniff_mac_driver
|
||||||
MAKE_MAC = MAKE_MAC_OTHER
|
MAKE_MAC = MAKE_MAC_OTHER
|
||||||
CONTIKI = ../..
|
|
||||||
include $(CONTIKI)/Makefile.include
|
include $(CONTIKI)/Makefile.include
|
||||||
|
|
||||||
PYTHON ?= python
|
PYTHON ?= python
|
||||||
|
Loading…
Reference in New Issue
Block a user