diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /rules.mk |
Initial import
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk new file mode 100644 index 000000000..ef645049c --- /dev/null +++ b/rules.mk @@ -0,0 +1,49 @@ +# $Id$ +#- +# 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 +DEVICE:= $(strip $(subst ",, $(ADK_DEVICE))) + +ifeq ($(strip ${ADK_HAVE_DOT_CONFIG}),y) +include $(TOPDIR)/target/$(DEVICE)/device.mk +endif + +include $(TOPDIR)/mk/vars.mk + +export BASH HOSTCC HOSTCFLAGS MAKE LANGUAGE LC_ALL OStype PATH + +HOSTCPPFLAGS?= +HOSTLDFLAGS?= +TARGET_CFLAGS:= $(strip -fwrapv -fno-ident ${TARGET_CFLAGS}) +TARGET_CC:= $(strip ${TARGET_CC}) +TARGET_CXX:= $(strip ${TARGET_CXX}) + +ifneq (${show},) +_show: + @echo '$($(show))' +endif |