1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(TOPDIR
)/prereq.mk
5 -include $(TOPDIR
)/.config
17 START_TRACE
:= echo
-n
"---> "
21 PKG_TRACE
:= echo
"------> "
23 MAKE_TRACE
:= >/dev
/null
2>&1 ||
{ echo
"Build failed. Please re-run make with v to see what's going on"; false
; }
27 # Strip off the annoying quoting
28 ADK_TARGET
:= $(strip $(subst ",, $(ADK_TARGET)))
29 ADK_TARGET_SUFFIX:= $(strip $(subst ",, $(ADK_TARGET_SUFFIX
)))
30 ADK_COMPRESSION_TOOL
:= $(strip $(subst ",, $(ADK_COMPRESSION_TOOL)))
32 ifeq ($(strip ${ADK_HAVE_DOT_CONFIG}),y)
33 include $(TOPDIR)/target/$(ADK_TARGET)/target.mk
36 include $(TOPDIR)/mk/vars.mk
38 export BASH HOSTCC HOSTCFLAGS MAKE LANGUAGE LC_ALL OStype PATH
42 TARGET_CFLAGS:= $(strip -fwrapv -fno-ident ${TARGET_CFLAGS})
43 TARGET_CC:= $(strip ${TARGET_CC})
44 TARGET_CXX:= $(strip ${TARGET_CXX})
46 # I hate GNU make! --mirabilos
52 __shquote= '$(subst ','\'',$(1))'
53 __dumpvar= echo $(call __shquote,$(1)=$(call __shquote,${$(1)}))
56 @$(foreach _s,${dump},$(call __dumpvar,${_s});)