<commit_before>#
# file: Rules.mk
#
# author: Copyright (C) 2016 <NAME> http://www.distortec.com http://www.freddiechopin.info
#
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
# distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

#-----------------------------------------------------------------------------------------------------------------------
# subdirectories
#-----------------------------------------------------------------------------------------------------------------------

SUBDIRECTORIES += $(DISTORTOS_PATH:%/=%)
SUBDIRECTORIES += folderWithFunctions

#-----------------------------------------------------------------------------------------------------------------------
# final targets
#-----------------------------------------------------------------------------------------------------------------------

ELF_$(d) := $(OUTPUT)$(d)distortosTemplateSubfolder.elf
HEX_$(d) := $(ELF_$(d):%.elf=%.hex)
BIN_$(d) := $(ELF_$(d):%.elf=%.bin)
DMP_$(d) := $(ELF_$(d):%.elf=%.dmp)
LSS_$(d) := $(ELF_$(d):%.elf=%.lss)

#-----------------------------------------------------------------------------------------------------------------------
# add final targets to list of generated files
#-----------------------------------------------------------------------------------------------------------------------

GENERATED := $(GENERATED) $(ELF_$(d)) $(ELF_$(d):%.elf=%.map) $(HEX_$(d)) $(BIN_$(d)) $(DMP_$(d)) $(LSS_$(d))

#-----------------------------------------------------------------------------------------------------------------------
# compilation flags
#-----------------------------------------------------------------------------------------------------------------------

CXXFLAGS_$(d) := $(CXXFLAGS_$(d)) $(STANDARD_INCLUDES)
CXXFLAGS_$(d) := $(CXXFLAGS_$(d)) -I$(d)folderWithFunctions

#-----------------------------------------------------------------------------------------------------------------------
# standard footer
#-----------------------------------------------------------------------------------------------------------------------

include $(DISTORTOS_PATH)footer.mk

#-----------------------------------------------------------------------------------------------------------------------
# .elf file dependencies - libdistortos.a, all objects from this folder tree (excluding distortos subfolder), linker
# script and this Rules.mk
#-----------------------------------------------------------------------------------------------------------------------

$(ELF_$(d)): $(OUTPUT)libdistortos.a $(OBJECTS_$(d)) $(LDSCRIPT) $(d)Rules.mk
$(ELF_$(d)): $(filter-out $(SUBDIRECTORIES_OBJECTS_$(DISTORTOS_PATH)),$(SUBDIRECTORIES_OBJECTS_$(d)))

#-----------------------------------------------------------------------------------------------------------------------
# .hex, .bin, .dmp and .lss files depends on .elf file and this Rules.mk
#-----------------------------------------------------------------------------------------------------------------------
<commit_msg>Fix spelling in one of Rules.mk files<commit_after>#
# file: Rules.mk
#
# author: Copyright (C) 2016 <NAME> http://www.distortec.com http://www.freddiechopin.info
#
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
# distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

#-----------------------------------------------------------------------------------------------------------------------
# subdirectories
#-----------------------------------------------------------------------------------------------------------------------

SUBDIRECTORIES += $(DISTORTOS_PATH:%/=%)
SUBDIRECTORIES += folderWithFunctions

#-----------------------------------------------------------------------------------------------------------------------
# final targets
#-----------------------------------------------------------------------------------------------------------------------

ELF_$(d) := $(OUTPUT)$(d)distortosTemplateSubfolder.elf
HEX_$(d) := $(ELF_$(d):%.elf=%.hex)
BIN_$(d) := $(ELF_$(d):%.elf=%.bin)
DMP_$(d) := $(ELF_$(d):%.elf=%.dmp)
LSS_$(d) := $(ELF_$(d):%.elf=%.lss)

#-----------------------------------------------------------------------------------------------------------------------
# add final targets to list of generated files
#-----------------------------------------------------------------------------------------------------------------------

GENERATED := $(GENERATED) $(ELF_$(d)) $(ELF_$(d):%.elf=%.map) $(HEX_$(d)) $(BIN_$(d)) $(DMP_$(d)) $(LSS_$(d))

#-----------------------------------------------------------------------------------------------------------------------
# compilation flags
#-----------------------------------------------------------------------------------------------------------------------

CXXFLAGS_$(d) := $(CXXFLAGS_$(d)) $(STANDARD_INCLUDES)
CXXFLAGS_$(d) := $(CXXFLAGS_$(d)) -I$(d)folderWithFunctions

#-----------------------------------------------------------------------------------------------------------------------
# standard footer
#-----------------------------------------------------------------------------------------------------------------------

include $(DISTORTOS_PATH)footer.mk

#-----------------------------------------------------------------------------------------------------------------------
# .elf file dependencies - libdistortos.a, all objects from this folder tree (excluding distortos subfolder), linker
# script and this Rules.mk
#-----------------------------------------------------------------------------------------------------------------------

$(ELF_$(d)): $(OUTPUT)libdistortos.a $(OBJECTS_$(d)) $(LDSCRIPT) $(d)Rules.mk
$(ELF_$(d)): $(filter-out $(SUBDIRECTORIES_OBJECTS_$(DISTORTOS_PATH)),$(SUBDIRECTORIES_OBJECTS_$(d)))

#-----------------------------------------------------------------------------------------------------------------------
# .hex, .bin, .dmp and .lss files depend on .elf file and this Rules.mk
#-----------------------------------------------------------------------------------------------------------------------

{'fraction_non_alphanumeric': 0.6318072289156627, 'fraction_numerical': 0.002570281124497992, 'mean_word_length': 0.6401475237091675, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4449239', 'n_tokens_mistral': 1206, 'n_tokens_neox': 1174, 'n_words': 262}