# basic directories used in project
include build_process/makefiles/common/dirs.mk

# basic configuration for project
include config.mk

# define tools being used
include $(MAKEFILES_COMMON_BASE_DIR)/tools.mk
# flags for some of tools
include $(MAKEFILES_COMMON_BASE_DIR)/basic_flags.mk

# define rules to make basic operations
include $(MAKEFILES_COMMON_BASE_DIR)/rules.mk

# define main macros used within this Makefile
include $(MAKEFILES_COMMON_BASE_DIR)/main_macros.mk

# check basic constraints
include $(MAKEFILES_COMMON_BASE_DIR)/main_constraints.mk

# make all dependencies for all components in gen
TMP:=$(shell mkdir -p "$(GEN_COMPONENTS_DEPS_DIR)" && \
             $(MAKE_COMPONENTDEPS_SCRIPT) \
               "$(GEN_COMPONENTS_DEPS_DIR)" \
               "$(COMPONENT_DEPS_REL_PATH)" \
               `cat $(COMPONENTS_LIST)` )

# by default make everything
include $(GEN_COMPONENTS_DEPS_DIR)/_default_target_.mk


# include all generated component-dependencies
include $(wildcard $(GEN_COMPONENTS_DEPS_DIR)/*.mk)


# clean specific profile
.PHONY: clean
clean:
	rm -rfv $(GEN_BASE_DIR)/$(PROFILE)

