aboutsummaryrefslogtreecommitdiff
path: root/windows/Makefile
diff options
context:
space:
mode:
authorMarkus Siemens2014-01-27 22:53:28 +0100
committerMarkus Siemens2014-01-28 18:21:05 +0100
commit19ccc6bdc7c761cc94e740c775f13506992ca0d6 (patch)
tree1c44e4b08c1c6b3f9903d6d0f92fb290fc19e0d1 /windows/Makefile
parent9b00dad7bb0125a3459ca4f9c939c7510bd2f77f (diff)
Added Windows port (see #233)
Diffstat (limited to 'windows/Makefile')
-rw-r--r--windows/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/windows/Makefile b/windows/Makefile
new file mode 100644
index 000000000..a9a39a620
--- /dev/null
+++ b/windows/Makefile
@@ -0,0 +1,36 @@
+include ../py/mkenv.mk
+
+# define main target
+PROG = micropython.exe
+
+# qstr definitions (must come before including py.mk)
+QSTR_DEFS = qstrdefsport.h
+
+# include py core make definitions
+include ../py/py.mk
+
+# compiler settings
+CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX
+LDFLAGS = -lm
+
+# Debugging/Optimization
+ifdef DEBUG
+CFLAGS += -O0 -g
+else
+CFLAGS += -Os #-DNDEBUG
+endif
+
+# source files
+SRC_C = \
+ main.c \
+ file.c \
+
+OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
+LIB = -lreadline
+LIB += -lws2_32
+LIB += -lmman
+# the following is needed for BSD
+#LIB += -ltermcap
+
+include ../py/mkrules.mk
+