aboutsummaryrefslogtreecommitdiff
path: root/examples/embedding/Makefile
diff options
context:
space:
mode:
authorPaul Sokolovsky2016-06-16 01:27:21 +0300
committerPaul Sokolovsky2016-07-22 22:13:03 +0300
commit1e77e25675d27da641722f384ffe55060fcc9960 (patch)
treeb3c9b29bb12dabd4e5f65569e6a82ec8984c8064 /examples/embedding/Makefile
parente47c2ec64a9a8ee1df60f9725d2199ed45884f39 (diff)
examples/embedding: Example for embedding MicroPython in an app.
Diffstat (limited to 'examples/embedding/Makefile')
-rw-r--r--examples/embedding/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/embedding/Makefile b/examples/embedding/Makefile
new file mode 100644
index 000000000..99f239a7c
--- /dev/null
+++ b/examples/embedding/Makefile
@@ -0,0 +1,8 @@
+MPTOP = ../..
+CFLAGS = -std=c99 -I. -I$(MPTOP) -DNO_QSTR
+LDFLAGS = -L.
+
+hello-embed: hello-embed.o -lmicropython
+
+-lmicropython:
+ $(MAKE) -f $(MPTOP)/examples/embedding/Makefile.upylib MPTOP=$(MPTOP)