[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:
4
makefile
4
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
|
||||
|
||||
Reference in New Issue
Block a user