Changeset 979


Ignore:
Timestamp:
May 27, 2007, 9:05:11 PM (18 years ago)
Author:
bird
Message:

We're no longer required to use the slow $(call ) sequence to invoke kmk-only functions.

Location:
trunk/kBuild
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r966 r979  
    14271427# Adjust paths if we got a default path.
    14281428ifneq ($(defpath),)
    1429  objs := $(call abspathex,$(objs),$(defpath))
    1430  deps := $(call abspathex,$(deps),$(defpath))
    1431  orderdeps := $(call abspathex,$(orderdeps),$(defpath))
    1432  othersrc := $(call abspathex,$(othersrc),$(defpath))
     1429 objs := $(abspathex $(objs),$(defpath))
     1430 deps := $(abspathex $(deps),$(defpath))
     1431 orderdeps := $(abspathex $(orderdeps),$(defpath))
     1432 othersrc := $(abspathex $(othersrc),$(defpath))
    14331433endif
    14341434
     
    17271727# Adjust paths if we got a default path.
    17281728ifneq ($(defpath),)
    1729  libpath := $(call abspathex,$(libpath),$(defpath))
    1730  objs := $(call abspathex,$(objs),$(defpath))
    1731  deps := $(call abspathex,$(deps),$(defpath))
    1732  orderdeps := $(call abspathex,$(orderdeps),$(defpath))
    1733  othersrc := $(call abspathex,$(othersrc),$(defpath))
     1729 libpath := $(abspathex $(libpath),$(defpath))
     1730 objs := $(abspathex $(objs),$(defpath))
     1731 deps := $(abspathex $(deps),$(defpath))
     1732 orderdeps := $(abspathex $(orderdeps),$(defpath))
     1733 othersrc := $(abspathex $(othersrc),$(defpath))
    17341734 # libs are not subject to this because of the the -l<lib> stuff. Use $(<target>_PATH)/lib if relative to current dir!
    17351735endif
     
    20872087# Adjust the source if we got a default PATH. (This must be done this late!)
    20882088ifdef $(target)_PATH
    2089  srcsrc := $(call abspathex,$(srcsrc),$($(target)_PATH))
     2089 srcsrc := $(abspathex $(srcsrc),$($(target)_PATH))
    20902090endif
    20912091
  • trunk/kBuild/subfooter.kmk

    r819 r979  
    6767 # Switch back to the context of previous makefile on the stack.
    6868 #
    69  MAKEFILE_CURRENT := $(call stack-pop,_SUB_MAKEFILE_STACK)
     69 MAKEFILE_CURRENT := $(stack-pop _SUB_MAKEFILE_STACK)
    7070 PATH_SUB_CURRENT := $(abspath $(dir $(MAKEFILE_CURRENT)))
    7171
  • trunk/kBuild/subheader.kmk

    r819 r979  
    7777
    7878 # push the current old makefile onto the stack.
    79  $(call stack-push,_SUB_MAKEFILE_STACK,$(MAKEFILE_CURRENT))
     79 $(stack-push _SUB_MAKEFILE_STACK,$(MAKEFILE_CURRENT))
    8080
    8181 # the current makefile is the 2nd from the end of the MAKEFILE_LIST (we're the last one).
    8282 __tmp := $(MAKEFILE_LIST)
    83  $(call stack-popv,__tmp)
    84  MAKEFILE_CURRENT := $(call stack-top,__tmp)
     83 $(stack-popv __tmp)
     84 MAKEFILE_CURRENT := $(stack-top __tmp)
    8585 PATH_SUB_CURRENT := $(abspath $(dir $(MAKEFILE_CURRENT)))
    8686endif
Note: See TracChangeset for help on using the changeset viewer.