summaryrefslogtreecommitdiff
path: root/unix/Makefile
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-04-22 22:53:51 +0000
committerDamien George <damien.p.george@gmail.com>2016-06-28 11:28:48 +0100
commita791be936a79154a1b1e600e5e75d147396847f6 (patch)
tree58afb39e875df36055e9ac391d76ff4d7324135a /unix/Makefile
parent27cc07721b3c3c2d0b9c8678c8a3ddc7fe96cd97 (diff)
unix: Add basic thread support using pthreads.
Has the ability to create new threads.
Diffstat (limited to 'unix/Makefile')
-rw-r--r--unix/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/unix/Makefile b/unix/Makefile
index 3e0d299d8..72f35c38c 100644
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -93,6 +93,10 @@ ifeq ($(MICROPY_PY_SOCKET),1)
CFLAGS_MOD += -DMICROPY_PY_SOCKET=1
SRC_MOD += modsocket.c
endif
+ifeq ($(MICROPY_PY_THREAD),1)
+CFLAGS_MOD += -DMICROPY_PY_THREAD=1
+LDFLAGS_MOD += -lpthread
+endif
ifeq ($(MICROPY_PY_FFI),1)
@@ -128,6 +132,7 @@ SRC_C = \
main.c \
gccollect.c \
unix_mphal.c \
+ mpthreadport.c \
input.c \
file.c \
modmachine.c \