2015-10-07 13:16:39 +00:00
|
|
|
TARGET=galileo
|
|
|
|
|
2016-01-19 23:08:35 +00:00
|
|
|
KNOWN_EXAMPLES = gpio-input gpio-output gpio-interrupt i2c-LSM9DS0 i2c-callbacks print-imr
|
2015-09-24 17:24:46 +00:00
|
|
|
|
2016-01-07 04:55:21 +00:00
|
|
|
ifeq ($(filter $(EXAMPLE),$(KNOWN_EXAMPLES)),)
|
|
|
|
$(info Set the variable EXAMPLE to one of the following Galileo-specific examples:)
|
|
|
|
$(foreach EXAMPLE,$(KNOWN_EXAMPLES),$(info - $(EXAMPLE)))
|
|
|
|
$(error Unable to proceed)
|
2015-09-24 17:24:46 +00:00
|
|
|
endif
|
|
|
|
|
2016-01-07 04:55:21 +00:00
|
|
|
CONTIKI_PROJECT = $(EXAMPLE)
|
|
|
|
|
2015-09-24 17:24:46 +00:00
|
|
|
all: $(CONTIKI_PROJECT)
|
|
|
|
|
|
|
|
CONTIKI = ../..
|
|
|
|
include $(CONTIKI)/Makefile.include
|