2026-03-09 12:50:06 +01:00
|
|
|
MPY_DIR = ../../lvgl_micropython/lib/micropython/
|
|
|
|
|
|
|
|
|
|
# Name of module
|
2026-03-11 11:57:42 +01:00
|
|
|
MOD = breakout
|
2026-03-09 12:50:06 +01:00
|
|
|
|
|
|
|
|
# Source files (.c or .py)
|
2026-03-11 11:57:42 +01:00
|
|
|
SRC = breakout.c
|
2026-03-09 12:50:06 +01:00
|
|
|
|
2026-03-09 22:01:09 +01:00
|
|
|
# Link runtime libraries (needed for memset on xtensawin)
|
|
|
|
|
LINK_RUNTIME = 1
|
|
|
|
|
|
2026-03-09 12:50:06 +01:00
|
|
|
# Architectures to build for (x86, x64, armv6m, armv7m, xtensa, xtensawin, rv32imc, rv64imc)
|
|
|
|
|
ARCHES = x64 xtensawin
|
|
|
|
|
|
|
|
|
|
ifeq ($(ARCH),)
|
|
|
|
|
.PHONY: all $(ARCHES)
|
|
|
|
|
|
|
|
|
|
all: $(ARCHES)
|
|
|
|
|
|
|
|
|
|
$(ARCHES):
|
|
|
|
|
$(MAKE) -f $(lastword $(MAKEFILE_LIST)) ARCH=$@ MOD=$(MOD)_$@
|
|
|
|
|
else
|
|
|
|
|
# Include to get the rules for compiling and linking the module
|
|
|
|
|
include $(MPY_DIR)/py/dynruntime.mk
|
|
|
|
|
endif
|