From f3ff1430af1c3d5820f7f522c0825986419edb83 Mon Sep 17 00:00:00 2001 From: Travis Geiselbrecht Date: Fri, 8 Aug 2014 15:59:09 -0700 Subject: [PATCH] [make] extend the top level make file to set the root of lk and pass toolchain_prefix via make variable --- makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index bc38c848..f0452ce5 100644 --- a/makefile +++ b/makefile @@ -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