aboutsummaryrefslogtreecommitdiff
path: root/windows/Makefile
diff options
context:
space:
mode:
authorstijn2015-06-01 11:41:28 +0200
committerPaul Sokolovsky2015-06-04 19:22:13 +0300
commit87ad80edf9e7656143079df8565c0fb0de39ef18 (patch)
tree81197e1b75b6dab600632f877b9f23a04c0145a3 /windows/Makefile
parent567b349c2b271c0f04add0f1beb36495835f66f8 (diff)
windows: Implement the mp_hal_xxx functions and enable mp-readline
Diffstat (limited to 'windows/Makefile')
-rw-r--r--windows/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/windows/Makefile b/windows/Makefile
index defbf35cc..e3a2fac42 100644
--- a/windows/Makefile
+++ b/windows/Makefile
@@ -31,10 +31,10 @@ SRC_C = \
unix/main.c \
unix/file.c \
unix/input.c \
- unix/unix_mphal.c \
unix/modos.c \
unix/modtime.c \
unix/gccollect.c \
+ windows_mphal.c \
realpath.c \
init.c \
sleep.c \
@@ -43,6 +43,9 @@ OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
ifeq ($(MICROPY_USE_READLINE),1)
CFLAGS_MOD += -DMICROPY_USE_READLINE=1
+SRC_C += lib/mp-readline/readline.c
+else ifeq ($(MICROPY_USE_READLINE),2)
+CFLAGS_MOD += -DMICROPY_USE_READLINE=2
LDFLAGS_MOD += -lreadline
# the following is needed for BSD
#LDFLAGS_MOD += -ltermcap