Update Makefile

This commit is contained in:
Paul m. p. P 2019-07-08 15:45:41 +02:00 committed by GitHub
parent 7cbd607696
commit bf49d940ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ ifdef WASM_FILE_API
endif endif
ifdef EMSCRIPTEN ifdef EMSCRIPTEN
CPP += -D__EMSCRIPTEN__ -D__CPP__ CPP += -D__EMSCRIPTEN__
CPP += --sysroot $(EMSCRIPTEN)/system CPP += --sysroot $(EMSCRIPTEN)/system
CPP += -isystem $(EMSCRIPTEN)/system/include/libc CPP += -isystem $(EMSCRIPTEN)/system/include/libc
CPP += -isystem $(EMSCRIPTEN)/system/include/libcxx CPP += -isystem $(EMSCRIPTEN)/system/include/libcxx
@ -46,14 +46,17 @@ CFLAGS += $(OPTIM) -DNDEBUG -D__EMSCRIPTEN__ -DLV_CONF_INCLUDE_SIMPLE
CFLAGS += -fdata-sections -ffunction-sections CFLAGS += -fdata-sections -ffunction-sections
CFLAGS += $(CFLAGS_MOD) CFLAGS += $(CFLAGS_MOD)
ifdef FROZEN_MPY_DIR ifneq ($(FROZEN_DIR),)
CFLAGS += -DFROZEN_MPY_DIR=$(FROZEN_MPY_DIR) # To use frozen source modules, put your .py files in a subdirectory (eg scripts/)
# and then invoke make with FROZEN_DIR=scripts (be sure to build from scratch).
CFLAGS += -DMICROPY_MODULE_FROZEN_STR
endif
# //for qstr.c ifneq ($(FROZEN_MPY_DIR),)
CFLAGS +=-DMICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool # To use frozen bytecode, put your .py files in a subdirectory (eg frozen/) and
# then invoke make with FROZEN_MPY_DIR=frozen (be sure to build from scratch).
# //for build/genhdr/qstr.i.last CFLAGS += -DMICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool
QSTR_GEN_EXTRA_CFLAGS=-DMICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool CFLAGS += -DMICROPY_MODULE_FROZEN_MPY
endif endif
SRC_LIB = $(addprefix lib/,\ SRC_LIB = $(addprefix lib/,\