Ignore:
Timestamp:
Jun 25, 2004, 12:04:23 AM (21 years ago)
Author:
bird
Message:

ARG! another regression.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r109 r110  
    110110
    111111## Figure out where to put object files.
    112 # @param    $target      source file
    113 # @param    $source      normalized main target
    114 _OBJECT_BASE = $(PATH_TARGET)/$(source)/$(basename $(target))
     112# @param    $1      source file
     113# @param    $2      normalized main target
     114_OBJECT_BASE = $(PATH_TARGET)/$(2)/$(basename $(1))
    115115
    116116## Figure out where to put object files.
    117 # @param    $target      real target name.
    118 # @param    $source      normalized main target
    119 _TARGET_BASE = $(PATH_TARGET)/$(source)/$(basename $(target))
     117# @param    $1      real target name.
     118# @param    $2      normalized main target
     119_TARGET_BASE = $(PATH_TARGET)/$(2)/$(basename $(1))
    120120
    121121
     
    546546        )
    547547$(eval outbase     := $(call _OBJECT_BASE,$(source),$(target)))
     548$(eval PATH_$(target)_$(source) := $(patsubst %/,%,$(dir $(outbase))))
    548549$(eval dirdep      := $(dir $(outbase)).dir_created)
    549550$(eval objsuff     := $(firstword \
     
    639640## @todo prefix
    640641$(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
     642$(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))))
    641643$(eval lib         := $(outbase)$(libsuff))
    642644$(eval objs         = $(_OBJS_$(target)))
     
    687689        $($(target)_LDFLAGS.$(BUILD_TARGET_CPU))\
    688690)
     691$(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
     692$(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))))
    689693$(eval exesuff     := $(firstword $($(target)_EXESUFF) $($(target)_EXESUFF) $(TOOL_$(tool)_LDEXESUFF) $(SUFF_EXE)))
    690 $(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
    691694$(eval exe         := $(outbase)$(exesuff))
    692695$(eval objs         = $(_OBJS_$(target)))
     
    786789$(eval $(def_target_sources))
    787790
    788 # library
     791# sysmod
    789792$(eval tool        := $(call _TARGET_TOOL,$(target),LD))
    790793$(eval flags       :=\
     
    805808        $($(target)_LDFLAGS.$(BUILD_TARGET_CPU))\
    806809)
     810$(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
     811$(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))))
    807812$(eval syssuff     := $(firstword $($(target)_SYSSUFF) $($(target)_SYSSUFF) $(TOOL_$(tool)_LDSYSSUFF) $(SUFF_SYS)))
    808 $(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
    809813$(eval sys         := $(outbase)$(syssuff))
    810814$(eval objs         = $(_OBJS_$(target)))
Note: See TracChangeset for help on using the changeset viewer.