aboutsummaryrefslogtreecommitdiff
path: root/unix/Makefile
diff options
context:
space:
mode:
authorpohmelie2015-12-15 13:25:00 +0300
committerDamien George2015-12-16 13:28:12 +0000
commit64a909ef5113925adef19f275f62473de8ee68c5 (patch)
tree5832beceb38c078d34bff69adbf6fc2cb315730c /unix/Makefile
parenta1528364b30844a419675532e997843185448a63 (diff)
unix: Add FreeDos target
Diffstat (limited to 'unix/Makefile')
-rw-r--r--unix/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/unix/Makefile b/unix/Makefile
index b905b0683..06169ddac 100644
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -126,6 +126,8 @@ ifeq ($(PROG),micropython)
SRC_C += $(BUILD)/_frozen_upip.c
else ifeq ($(PROG),micropython_coverage)
SRC_C += $(BUILD)/_frozen_upip.c
+else ifeq ($(PROG), micropython_freedos)
+SRC_C += $(BUILD)/_frozen_upip.c
endif
LIB_SRC_C = $(addprefix lib/,\
@@ -169,6 +171,16 @@ fast:
minimal:
$(MAKE) COPT="-Os -DNDEBUG" CFLAGS_EXTRA='-DMP_CONFIGFILE="<mpconfigport_minimal.h>"' BUILD=build-minimal PROG=micropython_minimal MICROPY_PY_TIME=0 MICROPY_PY_TERMIOS=0 MICROPY_PY_SOCKET=0 MICROPY_PY_FFI=0 MICROPY_USE_READLINE=0
+freedos:
+ $(MAKE) \
+ CC=i586-pc-msdosdjgpp-gcc \
+ CFLAGS_EXTRA='-DMP_CONFIGFILE="<mpconfigport_freedos.h>" -DMICROPY_NLR_SETJMP -Dtgamma=gamma -DMICROPY_EMIT_X86=0 -DMICROPY_NO_ALLOCA=1 -DMICROPY_PY_USELECT=0' \
+ BUILD=build-freedos \
+ PROG=micropython_freedos \
+ MICROPY_PY_SOCKET=0 \
+ MICROPY_PY_FFI=0 \
+ MICROPY_PY_JNI=0
+
# build an interpreter for coverage testing and do the testing
coverage:
$(MAKE) COPT="-O0" CFLAGS_EXTRA='-fprofile-arcs -ftest-coverage -Wdouble-promotion -Wformat -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -Wshadow -Wsign-compare -Wuninitialized -Wunused-parameter -DMICROPY_UNIX_COVERAGE' LDFLAGS_EXTRA='-fprofile-arcs -ftest-coverage' BUILD=build-coverage PROG=micropython_coverage