aboutsummaryrefslogtreecommitdiff
path: root/examples/natmod/uzlib/Makefile
diff options
context:
space:
mode:
authorDamien George2019-11-05 11:42:59 +1100
committerDamien George2019-12-12 20:15:28 +1100
commit16e591e412ec4be511180910f6f293fee01ad615 (patch)
tree1e5209850920d4a21c92ab549c57e313d1de51a1 /examples/natmod/uzlib/Makefile
parent83f9fb169e5d9b9304e06237a747a30d3ea53458 (diff)
examples/natmod: Add uzlib example.
Diffstat (limited to 'examples/natmod/uzlib/Makefile')
-rw-r--r--examples/natmod/uzlib/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/natmod/uzlib/Makefile b/examples/natmod/uzlib/Makefile
new file mode 100644
index 000000000..8761caf2d
--- /dev/null
+++ b/examples/natmod/uzlib/Makefile
@@ -0,0 +1,13 @@
+# Location of top-level MicroPython directory
+MPY_DIR = ../../..
+
+# Name of module (different to built-in uzlib so it can coexist)
+MOD = uzlib_$(ARCH)
+
+# Source files (.c or .py)
+SRC = uzlib.c
+
+# Architecture to build for (x86, x64, armv7m, xtensa, xtensawin)
+ARCH = x64
+
+include $(MPY_DIR)/py/dynruntime.mk