__local_dir := $(realpath $(dir $(lastword $(MAKEFILE_LIST))))

MULTIBUILD_SDK = $(__local_dir)/multibuild/sdk.mk
CONFIG_PATH = $(__local_dir)/config.mk

ifeq ($(wildcard $(MULTIBUILD_SDK)),)
  define ERROR_MSG

  Multibuild SDK not found
  Please, map //DEV/Solution/SecurityDev/SubTG/Multibuild/DEV/multibuild to the current directory
  or create symlink to maped //DEV/Solution/SecurityDev/SubTG/Multibuild/DEV/multibuild

  You can use RELEASE version of Multibuild from //DEV/Solution/SecurityDev/SubTG/Multibuild/MAIN/1.0.x/multibuild/
  endef
  $(error $(ERROR_MSG))
endif

ifeq ($(wildcard $(CONFIG_PATH)),)
  define ERROR_MSG

  config.mk not found.
  Please, copy the one of the default configs and modify it as you need:
  - defconfig.mk to config.mk and modify it according your environment
  endef
  $(error $(ERROR_MSG))
else
  include $(CONFIG_PATH)
endif

include $(MULTIBUILD_SDK)
