VirtualBox

Changeset 145 in kBuild


Ignore:
Timestamp:
Sep 7, 2004 3:26:23 PM (21 years ago)
Author:
bird
Message:

PATH2 and define PATH before sources are processed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r140 r145  
    623623# @param    $(target)   Normalized library (target) name.
    624624define def_lib
    625 # source -> object
    626 $(eval $(def_target_sources))
    627 
    628 # library
     625# library basics
    629626$(eval tool        := $(call _TARGET_TOOL,$(target),AR))
    630627ifeq ($(tool),)
     
    634631$(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
    635632$(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))))
     633$(eval PATH2_$(target) := $(subst :, ,$(PATH_$(target))))
     634$(eval PATH2_$(target) := $(word $(words $(PATH2_$(target))),$(PATH2_$(target))))
    636635$(eval libsuff     := $(firstword\
    637636        $($(target)_LIBSUFF.$(BUILD_TARGET))\
     
    642641))
    643642$(eval lib         := $(outbase)$(libsuff))
     643
     644# source -> object
     645$(eval $(def_target_sources))
     646
     647# library linking
     648$(eval tool        := $(call _TARGET_TOOL,$(target),AR))
    644649$(eval flags       :=\
    645650        $(TOOL_$(tool)_ARFLAGS)\
     
    685690# @param    $(target)   Normalized target (program) name.
    686691define def_program
    687 # source -> object
    688 $(eval $(def_target_sources))
    689 
    690 # library
     692# basics
    691693$(eval tool        := $(call _TARGET_TOOL,$(target),LD))
    692694$(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
    693695$(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))))
     696$(eval PATH2_$(target) := $(subst :, ,$(PATH_$(target))))
     697$(eval PATH2_$(target) := $(word $(words $(PATH2_$(target))),$(PATH2_$(target))))
    694698$(eval exesuff     := $(firstword $($(target)_EXESUFF) $($(target)_EXESUFF) $(TOOL_$(tool)_LDEXESUFF) $(SUFF_EXE)))
    695699$(eval exe         := $(outbase)$(exesuff))
     700
     701# source -> object
     702$(eval $(def_target_sources))
     703
     704# more library stuff.
     705$(eval tool        := $(call _TARGET_TOOL,$(target),LD))
    696706$(eval objs         = $(_OBJS_$(target)))
    697707$(eval flags       :=\
     
    832842# @param    $(target)   Normalized target (program) name.
    833843define def_dll
    834 # source -> object
    835 $(eval $(def_target_sources))
    836 
    837 # dllmod
     844# dllmod basics
    838845$(eval tool        := $(call _TARGET_TOOL,$(target),LD))
    839846$(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
    840847$(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))))
     848$(eval PATH2_$(target) := $(subst :, ,$(PATH_$(target))))
     849$(eval PATH2_$(target) := $(word $(words $(PATH2_$(target))),$(PATH2_$(target))))
    841850$(eval dllsuff     := $(firstword $($(target)_DLLSUFF) $($(target)_DLLSUFF) $(TOOL_$(tool)_LDDLLSUFF) $(SUFF_DLL)))
    842851$(eval dll         := $(outbase)$(dllsuff))
     852
     853# source -> object
     854$(eval $(def_target_sources))
     855
     856# dllmod linking.
     857$(eval tool        := $(call _TARGET_TOOL,$(target),LD))
    843858$(eval objs         = $(_OBJS_$(target)))
    844859$(eval flags       :=\
     
    9931008# @param    $(target)   Normalized target (program) name.
    9941009define def_sysmod
    995 # source -> object
    996 $(eval $(def_target_sources))
    997 
    998 # sysmod
     1010# sysmod basics
    9991011$(eval tool        := $(call _TARGET_TOOL,$(target),LD))
    10001012$(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
    10011013$(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))))
     1014$(eval PATH2_$(target) := $(subst :, ,$(PATH_$(target))))
     1015$(eval PATH2_$(target) := $(word $(words $(PATH2_$(target))),$(PATH2_$(target))))
    10021016$(eval syssuff     := $(firstword $($(target)_SYSSUFF) $($(target)_SYSSUFF) $(TOOL_$(tool)_LDSYSSUFF) $(SUFF_SYS)))
    10031017$(eval sys         := $(outbase)$(syssuff))
     1018
     1019# source -> object
     1020$(eval $(def_target_sources))
     1021
     1022# sysmod linking
     1023$(eval tool        := $(call _TARGET_TOOL,$(target),LD))
    10041024$(eval objs         = $(_OBJS_$(target)))
    10051025$(eval flags       :=\
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