diff options
| author | Damien George <damien.p.george@gmail.com> | 2015-01-11 17:28:27 +0000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2015-01-16 18:03:01 +0000 |
| commit | 3926c72dd2c6c9bfc4840f914be5a55258d3a248 (patch) | |
| tree | 02f3901960bc77581a01aa3eba336d6c2e7b198d /unix/Makefile | |
| parent | 963a5a3e82ded7ee75adae72ae7cb14796fa150e (diff) | |
unix: Add target to build "minimal" uPy interpreter.
Diffstat (limited to 'unix/Makefile')
| -rw-r--r-- | unix/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/unix/Makefile b/unix/Makefile index ea6590ac7..3a8604da8 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -69,6 +69,10 @@ ifeq ($(MICROPY_PY_TERMIOS),1) CFLAGS_MOD += -DMICROPY_PY_TERMIOS=1 SRC_MOD += modtermios.c endif +ifeq ($(MICROPY_PY_SOCKET),1) +CFLAGS_MOD += -DMICROPY_PY_SOCKET=1 +SRC_MOD += modsocket.c +endif ifeq ($(MICROPY_PY_FFI),1) LIBFFI_LDFLAGS_MOD := $(shell pkg-config --libs libffi) LIBFFI_CFLAGS_MOD := $(shell pkg-config --cflags libffi) @@ -87,7 +91,6 @@ SRC_C = \ gccollect.c \ input.c \ file.c \ - modsocket.c \ modos.c \ alloc.c \ $(SRC_MOD) @@ -122,4 +125,9 @@ uninstall: # build synthetically fast interpreter for benchmarking fast: @echo Make sure to run make -B - $(MAKE) COPT="-O2 -DNDEBUG -fno-crossjumping" CFLAGS_EXTRA='-DMP_CONFIGFILE="<mpconfigport_fast.h>"' BUILD=build-fast + $(MAKE) COPT="-O2 -DNDEBUG -fno-crossjumping" CFLAGS_EXTRA='-DMP_CONFIGFILE="<mpconfigport_fast.h>"' BUILD=build-fast PROG=micropython_fast + +# build a minimal interpreter +minimal: + @echo Make sure to run make -B + $(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 |
