summaryrefslogtreecommitdiff
path: root/examples/usercmodule/subpackage/micropython.mk
diff options
context:
space:
mode:
Diffstat (limited to 'examples/usercmodule/subpackage/micropython.mk')
-rw-r--r--examples/usercmodule/subpackage/micropython.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/usercmodule/subpackage/micropython.mk b/examples/usercmodule/subpackage/micropython.mk
new file mode 100644
index 000000000..99ebf13ec
--- /dev/null
+++ b/examples/usercmodule/subpackage/micropython.mk
@@ -0,0 +1,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