1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/arduino/Makefile.include
Marian Buschsieweke a461cd8b94
sys/arduino: move pseudo modules to makefiles
This allows using the arduino_pwm feature (which is translated into a
module) without the arduino module; e.g. for only using the Arduino
I/O mapping but not the Arduino API.
2023-06-28 09:09:31 +02:00

22 lines
697 B
Makefile

# Add Arduino sketches to the application as a module
SKETCHES = $(wildcard $(APPDIR)/*.sketch)
SKETCH_MODULE = arduino_sketches
ifneq (,$(SKETCHES))
# Define application sketches module, it will be generated into $(BINDIR)
SKETCH_MODULE_DIR ?= $(BINDIR)/$(SKETCH_MODULE)
include $(RIOTBASE)/sys/arduino/sketches.inc.mk
# Depends on module
DIRS += $(SKETCH_MODULE_DIR)
BUILDDEPS += $(SKETCH_GENERATED_FILES)
else
# arduino_sketches is now always included if arduino is, but if there
# are no sketches then no %.a will be present, so declare PSEUDOMODULE
PSEUDOMODULES += $(SKETCH_MODULE)
endif
# include the Arduino headers
INCLUDES += -I$(RIOTBASE)/sys/arduino/include