[make] extend the top level make file to set the root of lk and pass toolchain_prefix via make variable

This commit is contained in:
Travis Geiselbrecht
2014-08-08 15:59:09 -07:00
parent 47c2ae27e3
commit f3ff1430af

View File

@@ -2,14 +2,16 @@
# directories to be included in the build
-include lk_inc.mk
LKMAKEROOT ?= .
LKROOT ?= .
LKINC ?=
TOOLCHAIN_PREFIX ?=
LKINC := $(LKROOT) $(LKINC)
# 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:
LKROOT=$(LKROOT) LKINC="$(LKINC)" $(MAKE) -rR -f $(LKROOT)/engine.mk $(addprefix -I,$(LKINC)) $(MAKECMDGOALS)
TOOLCHAIN_PREFIX=$(TOOLCHAIN_PREFIX) LKROOT=$(LKROOT) LKINC="$(LKINC)" $(MAKE) -C $(LKMAKEROOT) -rR -f $(LKROOT)/engine.mk $(addprefix -I,$(LKINC)) $(MAKECMDGOALS)
.PHONY: _top