From 19ccc6bdc7c761cc94e740c775f13506992ca0d6 Mon Sep 17 00:00:00 2001 From: Markus Siemens Date: Mon, 27 Jan 2014 22:53:28 +0100 Subject: Added Windows port (see #233) --- windows/Makefile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 windows/Makefile (limited to 'windows/Makefile') 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 + -- cgit v1.2.3