diff options
author | Travis Geiselbrecht <geist@foobox.com> | 2014-08-08 16:25:59 -0700 |
---|---|---|
committer | Travis Geiselbrecht <geist@foobox.com> | 2014-08-08 16:27:11 -0700 |
commit | 0780dc8782702965e26799800ddc6e32ccf66060 (patch) | |
tree | aef1867956b74cfb39701a647cbf74ccc62c1575 /makefile | |
parent | fc898a85d66b0e205f39e96b393255900bc4c435 (diff) | |
download | common-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-- | makefile | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 |