@@ -30,7 +30,7 @@ ifdef DEBUG
3030CFLAGS += -g
3131COPT = -O0
3232else
33- COPT = -Os -fdata-sections -ffunction-sections -D__frosted__ # -DNDEBUG
33+ COPT = -Os -fdata-sections -ffunction-sections -D__frosted__ -DNDEBUG
3434# _FORTIFY_SOURCE is a feature in gcc/glibc which is intended to provide extra
3535# security for detecting buffer overflows. Some distros (Ubuntu at the very least)
3636# have it enabled by default.
@@ -227,50 +227,6 @@ install: micropython
227227uninstall :
228228 -rm $(BINDIR ) /$(TARGET )
229229
230- # build synthetically fast interpreter for benchmarking
231- fast :
232- $(MAKE ) COPT=" -O2 -DNDEBUG -fno-crossjumping" CFLAGS_EXTRA=' -DMP_CONFIGFILE="<mpconfigport_fast.h>"' BUILD=build-fast PROG=micropython_fast
233-
234- # build a minimal interpreter
235- minimal :
236- $(MAKE ) COPT=" -Os -DNDEBUG" CFLAGS_EXTRA=' -DMP_CONFIGFILE="<mpconfigport_minimal.h>"' \
237- BUILD=build-minimal PROG=micropython_minimal FROZEN_DIR= \
238- MICROPY_PY_BTREE=0 MICROPY_PY_FFI=0 MICROPY_PY_SOCKET=0 MICROPY_PY_THREAD=0 \
239- MICROPY_PY_TERMIOS=0 MICROPY_PY_USSL=0 \
240- MICROPY_USE_READLINE=0 MICROPY_FATFS=0
241-
242- # build interpreter with nan-boxing as object model
243- nanbox :
244- $(MAKE ) \
245- CFLAGS_EXTRA=' -DMP_CONFIGFILE="<mpconfigport_nanbox.h>"' \
246- BUILD=build-nanbox \
247- PROG=micropython_nanbox \
248- MICROPY_FORCE_32BIT=1 \
249- MICROPY_PY_USSL=0
250-
251- freedos :
252- $(MAKE ) \
253- CC=i586-pc-msdosdjgpp-gcc \
254- STRIP=i586-pc-msdosdjgpp-strip \
255- SIZE=i586-pc-msdosdjgpp-size \
256- CFLAGS_EXTRA=' -DMP_CONFIGFILE="<mpconfigport_freedos.h>" -DMICROPY_NLR_SETJMP -Dtgamma=gamma -DMICROPY_EMIT_X86=0 -DMICROPY_NO_ALLOCA=1 -DMICROPY_PY_USELECT=0' \
257- BUILD=build-freedos \
258- PROG=micropython_freedos \
259- MICROPY_PY_SOCKET=0 \
260- MICROPY_PY_FFI=0 \
261- MICROPY_PY_JNI=0
262-
263- # build an interpreter for coverage testing and do the testing
264- coverage :
265- $(MAKE ) COPT=" -O0" CFLAGS_EXTRA=' -DMP_CONFIGFILE="<mpconfigport_coverage.h>" -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
266-
267- coverage_test : coverage
268- $(eval DIRNAME=$(notdir $(CURDIR ) ) )
269- cd ../tests && MICROPY_MICROPYTHON=../$(DIRNAME ) /micropython_coverage ./run-tests
270- cd ../tests && MICROPY_MICROPYTHON=../$(DIRNAME ) /micropython_coverage ./run-tests --emit native
271- gcov -o build-coverage/py ../py/* .c
272- gcov -o build-coverage/extmod ../extmod/* .c
273-
274230# Value of configure's --host= option (required for cross-compilation).
275231# Deduce it from CROSS_COMPILE by default, but can be overriden.
276232ifneq ($(CROSS_COMPILE ) ,)
0 commit comments