aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorTravis Geiselbrecht <geist@foobox.com>2014-08-08 16:25:59 -0700
committerTravis Geiselbrecht <geist@foobox.com>2014-08-08 16:27:11 -0700
commit0780dc8782702965e26799800ddc6e32ccf66060 (patch)
treeaef1867956b74cfb39701a647cbf74ccc62c1575 /makefile
parentfc898a85d66b0e205f39e96b393255900bc4c435 (diff)
downloadcommon-0780dc8782702965e26799800ddc6e32ccf66060.tar.gz
[make] allow passing a default project to build if none specified and set the build output root
Change-Id: I5241108517be250535329513996c844f68073564
Diffstat (limited to 'makefile')
-rw-r--r--makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/makefile b/makefile
index f0452ce5..4bb9befe 100644
--- a/makefile
+++ b/makefile
@@ -5,13 +5,22 @@
LKMAKEROOT ?= .
LKROOT ?= .
LKINC ?=
+BUILDROOT ?= .
+DEFAULT_PROJECT ?=
TOOLCHAIN_PREFIX ?=
LKINC := $(LKROOT) $(LKINC)
+export LKMAKEROOT
+export LKROOT
+export LKINC
+export BUILDROOT
+export DEFAULT_PROJECT
+export TOOLCHAIN_PREFIX
+
# vaneer makefile that calls into the engine with lk as the build root
# if we're the top level invocation, call ourselves with additional args
$(MAKECMDGOALS) _top:
- TOOLCHAIN_PREFIX=$(TOOLCHAIN_PREFIX) LKROOT=$(LKROOT) LKINC="$(LKINC)" $(MAKE) -C $(LKMAKEROOT) -rR -f $(LKROOT)/engine.mk $(addprefix -I,$(LKINC)) $(MAKECMDGOALS)
+ @$(MAKE) -C $(LKMAKEROOT) -rR -f $(LKROOT)/engine.mk $(addprefix -I,$(LKINC)) $(MAKECMDGOALS)
.PHONY: _top