Adjust the sensniff example to use top-level target identification

This commit is contained in:
George Oikonomou 2017-10-08 17:32:42 +01:00
parent e73edfaa60
commit 9362b7f58e
1 changed files with 2 additions and 8 deletions

View File

@ -1,15 +1,10 @@
CONTIKI_PROJECT = sensniff
CONTIKI = ../..
PROJECT_SOURCEFILES += sensniff-mac.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
-include $(CONTIKI)/Makefile.identify-target
### 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.
@ -19,7 +14,6 @@ all: $(CONTIKI_PROJECT)
# use a custom MAC driver: sensniff_mac_driver
MAKE_MAC = MAKE_MAC_OTHER
CONTIKI = ../..
include $(CONTIKI)/Makefile.include
PYTHON ?= python