VirtualBox

Changeset 148 in kBuild


Ignore:
Timestamp:
Sep 7, 2004 8:16:14 PM (21 years ago)
Author:
bird
Message:

Fixed the problem which lead to the PATH2 hack. PATH2 is gone.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r146 r148  
    112112        $(TOOL) \
    113113        ))
     114       
     115## Removes the drive letter from a path (if it has one)
     116# @param        $1              the path
     117no-drive=$(word $(words $(subst :, ,$(1))),$(subst :, ,$(1)))
     118
     119## Removes the root slash from a path (if it has one)
     120# @param        $1              the path
     121no-root-slash=$(patsubst /%,%,$(1))
    114122
    115123## Figure out where to put object files.
    116124# @param    $1      source file
    117125# @param    $2      normalized main target
    118 _OBJECT_BASE = $(PATH_TARGET)/$(2)/$(basename $(1))
     126_OBJECT_BASE = $(PATH_TARGET)/$(2)/$(call no-root-slash,$(call no-drive,$(basename $(patsubst $(PATH_TARGET)/$(2)/%,gen/%,$(1)))))
    119127
    120128## Figure out where to put object files.
    121129# @param    $1      real target name.
    122130# @param    $2      normalized main target
    123 _TARGET_BASE = $(PATH_TARGET)/$(2)/$(basename $(1))
     131_TARGET_BASE = $(PATH_TARGET)/$(2)/$(call no-root-slash,$(call no-drive,$(basename $(1))))
    124132
    125133
     
    631639$(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
    632640$(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))))
    633 $(eval PATH2_$(target) := $(subst :, ,$(PATH_$(target))))
    634 $(eval PATH2_$(target) := $(word $(words $(PATH2_$(target))),$(PATH2_$(target))))
    635641$(eval libsuff     := $(firstword\
    636642        $($(target)_LIBSUFF.$(BUILD_TARGET))\
     
    695701$(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
    696702$(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))))
    697 $(eval PATH2_$(target) := $(subst :, ,$(PATH_$(target))))
    698 $(eval PATH2_$(target) := $(word $(words $(PATH2_$(target))),$(PATH2_$(target))))
    699703$(eval exesuff     := $(firstword $($(target)_EXESUFF) $($(target)_EXESUFF) $(TOOL_$(tool)_LDEXESUFF) $(SUFF_EXE)))
    700704$(eval exe         := $(outbase)$(exesuff))
     
    848852$(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
    849853$(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))))
    850 $(eval PATH2_$(target) := $(subst :, ,$(PATH_$(target))))
    851 $(eval PATH2_$(target) := $(word $(words $(PATH2_$(target))),$(PATH2_$(target))))
    852854$(eval dllsuff     := $(firstword $($(target)_DLLSUFF) $($(target)_DLLSUFF) $(TOOL_$(tool)_LDDLLSUFF) $(SUFF_DLL)))
    853855$(eval dll         := $(outbase)$(dllsuff))
     
    10151017$(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
    10161018$(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))))
    1017 $(eval PATH2_$(target) := $(subst :, ,$(PATH_$(target))))
    1018 $(eval PATH2_$(target) := $(word $(words $(PATH2_$(target))),$(PATH2_$(target))))
    10191019$(eval syssuff     := $(firstword $($(target)_SYSSUFF) $($(target)_SYSSUFF) $(TOOL_$(tool)_LDSYSSUFF) $(SUFF_SYS)))
    10201020$(eval sys         := $(outbase)$(syssuff))
Note: See TracChangeset for help on using the changeset viewer.

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