<commit_before>
CFLAGS ?=
CXXFLAGS ?=
CPPFLAGS ?=
ASFLAGS ?=
ARFLAGS ?=
LDFLAGS ?=

CROSS_COMPILE ?=

CC      := $(CROSS_COMPILE)gcc
CPP     := $(CC) -E
CXX     := $(CROSS_COMPILE)g++
AR      := $(CROSS_COMPILE)ar
AS      := $(CROSS_COMPILE)as
LD      := $(CROSS_COMPILE)ld
NM      := $(CROSS_COMPILE)nm
OBJDUMP := $(CROSS_COMPILE)objdump
OBJCOPY := $(CROSS_COMPILE)objcopy
SIZE    := $(CROSS_COMPILE)size

COVERAGE_CFLAGS ?= -finstrument-functions \
		   -finstrument-functions-exclude-function-list=symbol_lookup,__cyg_profile_func_enter,__cyg_profile_func_exit,bitmap_set_bit

EXTERNAL_MAKE = \
	$(MAKE) -C $(dir $(my_file)) \
	$(EXTERNAL_MAKE_FLAGS)

EXTERNAL_MAKE_PRO = \
	$(abspath $(ROOT_DIR))/build/qt/install/bin/qmake $${TARGET:-$(dir $(my_file))} -o $(abspath $(mod_build_dir)) -cache $(abspath $(ROOT_DIR))/build/qt/build/.qmake.cache && \
	$(MAKE) -C $(abspath $(mod_build_dir)) \
	$(EXTERNAL_MAKE_FLAGS)

EXTERNAL_MAKE_FLAGS = \
	MAKEFLAGS= \
	EMBOX_ARCH='$(ARCH)' \
	EMBOX_CROSS_COMPILE='$(CROSS_COMPILE)' \
	EMBOX_MAKEFLAGS='$(MAKEFLAGS)' \
	ROOT_DIR=$(abspath $(ROOT_DIR)) \
	EXTERNAL_BUILD_DIR=$(abspath $(EXTERNAL_BUILD_DIR)) \
	BUILD_DIR=$(abspath $(mod_build_dir)) \
	EMBOX_CFLAGS='$(CFLAGS)' \
	EMBOX_CXXFLAGS='$(CXXFLAGS)' \
	EMBOX_CPPFLAGS='$(EMBOX_EXPORT_CPPFLAGS)' \
	EMBOX_LDFLAGS='$(LDFLAGS)'

mod_build_dir = $(EXTERNAL_BUILD_DIR)/$(mod_path)
EXTERNAL_BUILD_DIR = $(ROOT_DIR)/build/extbld

EXTERNAL_OBJ_DIR =^BUILD/extbld/^MOD_PATH#

ifneq ($(patsubst N,0,$(patsubst n,0,$(or $(value NDEBUG),0))),0)
override CPPFLAGS += -DNDEBUG
override NDEBUG := 1
else
override NDEBUG :=<commit_msg>qt-pro: mk/flags: Fix build<commit_after>
CFLAGS ?=
CXXFLAGS ?=
CPPFLAGS ?=
ASFLAGS ?=
ARFLAGS ?=
LDFLAGS ?=

CROSS_COMPILE ?=

CC      := $(CROSS_COMPILE)gcc
CPP     := $(CC) -E
CXX     := $(CROSS_COMPILE)g++
AR      := $(CROSS_COMPILE)ar
AS      := $(CROSS_COMPILE)as
LD      := $(CROSS_COMPILE)ld
NM      := $(CROSS_COMPILE)nm
OBJDUMP := $(CROSS_COMPILE)objdump
OBJCOPY := $(CROSS_COMPILE)objcopy
SIZE    := $(CROSS_COMPILE)size

COVERAGE_CFLAGS ?= -finstrument-functions \
		   -finstrument-functions-exclude-function-list=symbol_lookup,__cyg_profile_func_enter,__cyg_profile_func_exit,bitmap_set_bit

EXTERNAL_MAKE = \
	$(MAKE) -C $(dir $(my_file)) \
	$(EXTERNAL_MAKE_FLAGS)

EXTERNAL_MAKE_PRO = \
	$(abspath $(ROOT_DIR))/build/qt/install/bin/qmake $${TARGET:-$(dir $(my_file))} -o $(abspath $(mod_build_dir))/Makefile -cache $(abspath $(ROOT_DIR))/build/qt/build/.qmake.cache && \
	$(MAKE) -C $(abspath $(mod_build_dir)) \
	$(EXTERNAL_MAKE_FLAGS)

EXTERNAL_MAKE_FLAGS = \
	MAKEFLAGS= \
	EMBOX_ARCH='$(ARCH)' \
	EMBOX_CROSS_COMPILE='$(CROSS_COMPILE)' \
	EMBOX_MAKEFLAGS='$(MAKEFLAGS)' \
	ROOT_DIR=$(abspath $(ROOT_DIR)) \
	EXTERNAL_BUILD_DIR=$(abspath $(EXTERNAL_BUILD_DIR)) \
	BUILD_DIR=$(abspath $(mod_build_dir)) \
	EMBOX_CFLAGS='$(CFLAGS)' \
	EMBOX_CXXFLAGS='$(CXXFLAGS)' \
	EMBOX_CPPFLAGS='$(EMBOX_EXPORT_CPPFLAGS)' \
	EMBOX_LDFLAGS='$(LDFLAGS)'

mod_build_dir = $(EXTERNAL_BUILD_DIR)/$(mod_path)
EXTERNAL_BUILD_DIR = $(ROOT_DIR)/build/extbld

EXTERNAL_OBJ_DIR =^BUILD/extbld/^MOD_PATH#

ifneq ($(patsubst N,0,$(patsubst n,0,$(or $(value NDEBUG),0))),0)
override CPPFLAGS += -DNDEBUG
override NDEBUG := 1
else
override NDEBUG :=
{'fraction_non_alphanumeric': 0.17675991392560714, 'fraction_numerical': 0.003074085459575776, 'mean_word_length': 5.521042084168337, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5231844', 'n_tokens_mistral': 1397, 'n_tokens_neox': 1367, 'n_words': 183}