VirtualBox

Changeset 1755 in kBuild


Ignore:
Timestamp:
Sep 6, 2008 3:34:38 AM (16 years ago)
Author:
bird
Message:

Changing <target>_PATH into <target>_DEFPATH. For the moment both are set and _PATH still take precedence.

Location:
trunk/kBuild
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r1754 r1755  
    22002200        $(SUFF_LIB))
    22012201local out         := $(outbase)$(suff)
    2202 local defpath     := $($(target)_PATH)
     2202local defpath     := $(firstword $($(target)_PATH) $($(target)_DEFPATH))
    22032203TARGET_$(target)  := $(out)
    22042204# no local here - must be writable across some foreachs.
     
    24492449local out         := $(outbase)$(suff)
    24502450TARGET_$(target)  := $(out)
    2451 local defpath     := $($(target)_PATH)
     2451local defpath     := $(firstword $($(target)_PATH) $($(target)_DEFPATH))
    24522452# no local here - must be writable across some foreachs.
    24532453othersrc          :=
     
    26422642 local orderdeps  := $(abspathex $(orderdeps),$(defpath))
    26432643 othersrc := $(abspathex $(othersrc),$(defpath))
    2644  # libs are not subject to this because of the the -l<lib> stuff. Use $(<target>_PATH)/lib if relative to current dir!
     2644 # libs are not subject to this because of the the -l<lib> stuff. Use $(<target>_DEFPATH)/lib if relative to current dir!
    26452645endif
    26462646
     
    30573057
    30583058# Adjust the source if we got a default PATH. (This must be done this late!)
    3059 ifdef $(target)_PATH
    3060  local srcsrc := $(abspathex $(srcsrc),$($(target)_PATH))
     3059local defpath := $(firstword $($(target)_PATH) $($(target)_DEFPATH))
     3060ifneq ($(defpath),)
     3061 local srcsrc := $(abspathex $(srcsrc),$(defpath))
    30613062endif
    30623063
  • trunk/kBuild/subfooter.kmk

    r1669 r1755  
    4646  $(target)_PATH := $(PATH_SUB_CURRENT)
    4747 endif
     48 ifndef $(target)_DEFPATH
     49  $(target)_DEFPATH := $(PATH_SUB_CURRENT)
     50 endif
    4851 ifndef $(target)_MAKEFILE
    4952  $(target)_MAKEFILE := $(MAKEFILE_CURRENT)
  • trunk/kBuild/subheader.kmk

    r1669 r1755  
    5656   $(target)_PATH := $(PATH_SUB_CURRENT)
    5757  endif
     58  ifndef $(target)_DEFPATH
     59   $(target)_DEFPATH := $(PATH_SUB_CURRENT)
     60  endif
    5861  ifndef $(target)_MAKEFILE
    5962   $(target)_MAKEFILE := $(MAKEFILE_CURRENT)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette