2017-09-28 12:14:10 +02:00
|
|
|
# Add Arduino sketches to the application as a module
|
2015-09-18 23:00:31 +02:00
|
|
|
|
2017-09-28 12:14:10 +02:00
|
|
|
# Define application sketches module, it will be generated into $(BINDIR)
|
|
|
|
SKETCH_MODULE ?= arduino_sketches
|
2019-09-10 17:42:39 +02:00
|
|
|
SKETCH_MODULE_DIR ?= $(BINDIR)/$(SKETCH_MODULE)_src
|
2017-09-28 12:14:10 +02:00
|
|
|
SKETCHES = $(wildcard $(APPDIR)/*.sketch)
|
|
|
|
include $(RIOTBASE)/sys/arduino/sketches.inc.mk
|
|
|
|
|
|
|
|
# Depends on module
|
|
|
|
USEMODULE += $(SKETCH_MODULE)
|
|
|
|
DIRS += $(SKETCH_MODULE_DIR)
|
|
|
|
BUILDDEPS += $(SKETCH_GENERATED_FILES)
|
2015-09-18 23:00:31 +02:00
|
|
|
|
|
|
|
# include the Arduino headers
|
2016-10-24 11:01:48 +02:00
|
|
|
INCLUDES += -I$(RIOTBASE)/sys/arduino/include
|