Changeset 111


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

PATH_ feature fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r110 r111  
    323323
    324324$(eval tool:=$(call _SOURCE_TOOL,$(source),$(target),$(type)))
     325$(eval outbase     := $(call _OBJECT_BASE,$(source),$(target)))
     326$(eval PATH_$(target)_$(source) := $(patsubst %/,%,$(dir $(outbase))))
     327$(eval dirdep      := $(dir $(outbase)).dir_created)
    325328$(eval defs        :=\
    326329        $(TOOL_$(tool)_DEFS)\
     
    545548        $($(target)_$(source)_$(type)FLAGS.$(BUILD_TARGET_CPU))\
    546549        )
    547 $(eval outbase     := $(call _OBJECT_BASE,$(source),$(target)))
    548 $(eval PATH_$(target)_$(source) := $(patsubst %/,%,$(dir $(outbase))))
    549 $(eval dirdep      := $(dir $(outbase)).dir_created)
    550550$(eval objsuff     := $(firstword \
    551551        $($(target)_$(source)_OBJSUFF.$(BUILD_TARGET))\
     
    623623$$(error kBuild: Library target $(target) doesn't have a tool defined!)
    624624endif
     625## @todo prefix
     626$(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
     627$(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))))
     628$(eval lib         := $(outbase)$(libsuff))
    625629$(eval flags       :=\
    626630        $(TOOL_$(tool)_ARFLAGS)\
     
    638642        $(SUFF_LIB)\
    639643))
    640 ## @todo prefix
    641 $(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
    642 $(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))))
    643 $(eval lib         := $(outbase)$(libsuff))
    644644$(eval objs         = $(_OBJS_$(target)))
    645645$(eval othersrc    := $(filter-out %.c %.cpp %.cxx %.cc %.s %.S %.asm,$($(target)_SOURCES)))
     
    672672# library
    673673$(eval tool        := $(call _TARGET_TOOL,$(target),LD))
     674$(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
     675$(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))))
     676$(eval exesuff     := $(firstword $($(target)_EXESUFF) $($(target)_EXESUFF) $(TOOL_$(tool)_LDEXESUFF) $(SUFF_EXE)))
     677$(eval exe         := $(outbase)$(exesuff))
     678$(eval objs         = $(_OBJS_$(target)))
    674679$(eval flags       :=\
    675680        $(TOOL_$(tool)_LDFLAGS)\
     
    689694        $($(target)_LDFLAGS.$(BUILD_TARGET_CPU))\
    690695)
    691 $(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
    692 $(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))))
    693 $(eval exesuff     := $(firstword $($(target)_EXESUFF) $($(target)_EXESUFF) $(TOOL_$(tool)_LDEXESUFF) $(SUFF_EXE)))
    694 $(eval exe         := $(outbase)$(exesuff))
    695 $(eval objs         = $(_OBJS_$(target)))
    696696$(eval libs        :=\
    697697        $($(target)_LIBS.$(BUILD_TARGET_CPU))\
     
    791791# sysmod
    792792$(eval tool        := $(call _TARGET_TOOL,$(target),LD))
     793$(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
     794$(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))))
     795$(eval syssuff     := $(firstword $($(target)_SYSSUFF) $($(target)_SYSSUFF) $(TOOL_$(tool)_LDSYSSUFF) $(SUFF_SYS)))
     796$(eval sys         := $(outbase)$(syssuff))
     797$(eval objs         = $(_OBJS_$(target)))
    793798$(eval flags       :=\
    794799        $(TOOL_$(tool)_LDFLAGS)\
     
    808813        $($(target)_LDFLAGS.$(BUILD_TARGET_CPU))\
    809814)
    810 $(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
    811 $(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))))
    812 $(eval syssuff     := $(firstword $($(target)_SYSSUFF) $($(target)_SYSSUFF) $(TOOL_$(tool)_LDSYSSUFF) $(SUFF_SYS)))
    813 $(eval sys         := $(outbase)$(syssuff))
    814 $(eval objs         = $(_OBJS_$(target)))
    815815$(eval libs        :=\
    816816        $($(target)_LIBS.$(BUILD_TARGET_CPU))\
Note: See TracChangeset for help on using the changeset viewer.