summaryrefslogtreecommitdiff
path: root/examples/usercmodule/subpackage/micropython.mk
blob: 99ebf13ec19abb48103b6b1101a2df6e2fa10de5 (plain)
1
2
3
4
5
6
7
8
9
10
SUBPACKAGE_EXAMPLE_MOD_DIR := $(USERMOD_DIR)

# Add all C files to SRC_USERMOD.
SRC_USERMOD += $(SUBPACKAGE_EXAMPLE_MOD_DIR)/modexamplepackage.c

# We can add our module folder to include paths if needed
# This is not actually needed in this example.
CFLAGS_USERMOD += -I$(SUBPACKAGE_EXAMPLE_MOD_DIR) -DMICROPY_MODULE_BUILTIN_SUBPACKAGES=1

QSTR_DEFS += $(SUBPACKAGE_EXAMPLE_MOD_DIR)/qstrdefsexamplepackage.h