2015-10-07 15:16:39 +02:00
|
|
|
TARGET=galileo
|
|
|
|
|
2015-08-10 01:38:04 +02:00
|
|
|
KNOWN_EXAMPLES = gpio-input gpio-output gpio-interrupt i2c-LSM9DS0 i2c-callbacks print-imr prot-domain-switch-latency
|
2015-09-24 19:24:46 +02:00
|
|
|
|
2016-01-07 05:55:21 +01: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 19:24:46 +02:00
|
|
|
endif
|
|
|
|
|
2015-08-10 17:34:02 +02:00
|
|
|
ifeq ($(EXAMPLE),print-imr)
|
|
|
|
CFLAGS += -DDBG_IMRS
|
|
|
|
endif
|
|
|
|
|
2015-08-10 01:38:04 +02:00
|
|
|
ifeq ($(EXAMPLE),prot-domain-switch-latency)
|
|
|
|
ifeq ($(SAMPLE_METADATA),1)
|
|
|
|
CFLAGS += -DSAMPLE_METADATA=1
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2016-01-07 05:55:21 +01:00
|
|
|
CONTIKI_PROJECT = $(EXAMPLE)
|
|
|
|
|
2015-09-24 19:24:46 +02:00
|
|
|
all: $(CONTIKI_PROJECT)
|
|
|
|
|
|
|
|
CONTIKI = ../..
|
|
|
|
include $(CONTIKI)/Makefile.include
|