Lk Makefile

来源:互联网 发布:成都网络直播培训机构 编辑:程序博客网 时间:2024/06/17 13:10
Makefile
# the above include may override LKROOT and LKINC to allow external# directories to be included in the build-include lk_inc_lc.mk

LKMAKEROOT ?= .LKROOT ?= .LKINC ?=BUILDROOT ?= .DEFAULT_PROJECT ?=TOOLCHAIN_PREFIX ?=

# check if LKROOT is already a part of LKINC list and add it only if it is notifeq ($(filter $(LKROOT),$(LKINC)), )LKINC := $(LKROOT) $(LKINC)endif

# add the external path to LKINCifneq ($(LKROOT),.)LKINC += $(LKROOT)/externalelseLKINC += externalendif

export LKMAKEROOTexport LKROOTexport LKINCexport BUILDROOTexport DEFAULT_PROJECTexport TOOLCHAIN_PREFIX

# veneer makefile that calls into the engine with lk as the build root# if we're the top level invocation, call ourselves with additional args_top: @$(MAKE) -C $(LKMAKEROOT) -rR -f $(LKROOT)/engine.mk $(addprefix -I,$(LKINC)) $(MAKECMDGOALS)

# If any arguments were provided, create a recipe for them that depends# on the _top rule (thus calling it), but otherwise do nothing.# "@:" (vs empty rule ";") prevents extra "'foo' is up to date." messages from# being emitted.$(MAKECMDGOALS): _top @:

.PHONY: _top

 
 
 
0 0
原创粉丝点击