2015-10-07 13:16:39 +00:00
|
|
|
TARGET=galileo
|
|
|
|
|
2015-10-16 14:04:17 +00:00
|
|
|
KNOWN_EXAMPLES = gpio-input gpio-output i2c-LSM9DS0
|
2015-09-24 17:24:46 +00:00
|
|
|
|
|
|
|
ifneq ($(filter $(EXAMPLE),$(KNOWN_EXAMPLES)),)
|
|
|
|
CONTIKI_PROJECT = $(EXAMPLE)
|
|
|
|
else
|
|
|
|
CONTIKI_PROJECT = help
|
|
|
|
endif
|
|
|
|
|
|
|
|
all: $(CONTIKI_PROJECT)
|
|
|
|
|
|
|
|
CONTIKI = ../..
|
|
|
|
include $(CONTIKI)/Makefile.include
|
|
|
|
|
|
|
|
help:
|
|
|
|
@echo -e "\nSet the variable EXAMPLE to one of the following Galileo-specific examples:"
|
|
|
|
@for EXAMPLE in $(KNOWN_EXAMPLES); do echo $$EXAMPLE; done
|