12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- # This file is part of the OpenADK project. OpenADK is copyrighted
- # material, please see the LICENCE file in the top-level directory.
- include $(TOPDIR)/prereq.mk
- -include $(TOPDIR)/.config
- ifeq ($(VERBOSE),1)
- START_TRACE:= :
- END_TRACE:= :
- TRACE:= :
- CMD_TRACE:= :
- PKG_TRACE:= :
- MAKE_TRACE:=
- EXTRA_MAKEFLAGS:=
- SET_DASHX:= set -x
- else
- START_TRACE:= echo -n "---> "
- END_TRACE:= echo
- TRACE:= echo "---> "
- CMD_TRACE:= echo -n
- PKG_TRACE:= echo "------> "
- EXTRA_MAKEFLAGS:= -s
- MAKE_TRACE:= >/dev/null 2>&1 || { echo "Build failed. Please re-run make with v to see what's going on"; false; }
- SET_DASHX:= :
- endif
- # Strip off the annoying quoting
- ADK_TARGET:= $(strip $(subst ",, $(ADK_TARGET)))
- ADK_LIBC:= $(strip $(subst ",, $(ADK_LIBC)))
- ADK_HOST:= $(strip $(subst ",, $(ADK_HOST)))
- ADK_VENDOR:= $(strip $(subst ",, $(ADK_VENDOR)))
- ADK_TARGET_SUFFIX:= $(strip $(subst ",, $(ADK_TARGET_SUFFIX)))
- ADK_COMPRESSION_TOOL:= $(strip $(subst ",, $(ADK_COMPRESSION_TOOL)))
- ifeq ($(strip ${ADK_HAVE_DOT_CONFIG}),y)
- ifneq ($(strip $(wildcard $(TOPDIR)/target/$(ADK_TARGET)/target.mk)),)
- include $(TOPDIR)/target/$(ADK_TARGET)/target.mk
- endif
- endif
- include $(TOPDIR)/mk/vars.mk
- export BASH HOSTCC HOSTCFLAGS MAKE LANGUAGE LC_ALL OStype PATH
- HOSTCPPFLAGS?=
- HOSTLDFLAGS?=
- TARGET_CFLAGS:= $(strip -fno-ident ${TARGET_CFLAGS})
- TARGET_CC:= $(strip ${TARGET_CC})
- TARGET_CXX:= $(strip ${TARGET_CXX})
- ifneq (${show},)
- .DEFAULT_GOAL:= show
- show:
- @$(info ${${show}})
- else ifneq (${dump},)
- __shquote= '$(subst ','\'',$(1))'
- __dumpvar= echo $(call __shquote,$(1)=$(call __shquote,${$(1)}))
- .DEFAULT_GOAL:= show
- show:
- @$(foreach _s,${dump},$(call __dumpvar,${_s});)
- endif
|