Ignore:
Timestamp:
Jan 9, 2009, 3:59:39 AM (17 years ago)
Author:
bird
Message:

footer.kmk: The remaining $(target)_OBJS_ -> $(target)_2_OBJS work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r2234 r2236  
    21662166endef
    21672167
    2168 if $(KBUILD_VERSION_PATCH) != 4
    21692168define def_src_handler_obj
    21702169ifeq ($(defpath),)
     
    21742173endif
    21752174endef
    2176 else  # legacy - remove
    2177 define def_src_handler_obj
    2178 ifeq ($(defpath),)
    2179  $(target)_OBJS_ += $(source)
    2180 else
    2181  $(target)_OBJS_ += $(abspathex $(source), $(defpath))
    2182 endif
    2183 endef
    2184 endif # legacy - remove
    21852175## @}
    21862176
     
    22022192# @param    $(defpath)
    22032193# @param    much-more...
    2204 # @returns  othersrc, $(target)_OBJS_, ++
     2194# @returns  othersrc, $(target)_2_OBJS, ++
    22052195define def_target_sources
    22062196local target_src_handlers := $($(target)_SRC_HANDLERS) $(KBUILD_SRC_HANDLERS)
     
    22972287_CLEAN_FILES += $($(target)_CLEAN) $($(target)_CLEAN.$(bld_trg)) $($(target)_CLEAN.$(bld_trg).$(bld_trg_arch)) $($(target)_CLEAN.$(bld_trg_arch)) $($(target)_CLEAN.$(bld_trg_cpu)) $($(target)_CLEAN.$(bld_type))
    22982288_DIRS += $($(target)_BLDDIRS) $($(target)_BLDDIRS.$(bld_trg)) $($(target)_BLDDIRS.$(bld_trg).$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_cpu)) $($(target)_BLDDIRS.$(bld_type))
    2299 _OBJS += $($(target)_OBJS_)
     2289_OBJS += $($(target)_2_OBJS)
    23002290
    23012291endef # def_target_install_pluss
     
    23462336# no local here - must be writable across some foreachs.
    23472337othersrc          :=
    2348 $(target)_OBJS_   :=
     2338$(target)_2_OBJS  :=
    23492339
    23502340# Do units pre source callouts.
     
    24192409# Adjust paths if we got a default path.
    24202410ifneq ($(defpath),)
    2421  $(target)_OBJS_  := $(abspathex $($(target)_OBJS_),$(defpath))
     2411 $(target)_2_OBJS := $(abspathex $($(target)_2_OBJS),$(defpath))
    24222412 local deps       := $(abspathex $(deps),$(defpath))
    24232413 local orderdeps  := $(abspathex $(orderdeps),$(defpath))
     
    24902480
    24912481# eliminate this guy?
    2492 local objs = $($(target)_OBJS_)
     2482local objs = $($(target)_2_OBJS)
    24932483
    24942484# dependency file
     
    25312521$(target)_2_OUTPUT := $(TOOL_$(tool)_LINK_LIBRARY_OUTPUT)
    25322522$(target)_2_OUTPUT_MAYBE := $(TOOL_$(tool)_LINK_LIBRARY_OUTPUT_MAYBE)
    2533 $(target)_2_DEPEND := $(TOOL_$(tool)_LINK_LIBRARY_DEPEND) $(deps) $($(target)_OBJS_)
     2523$(target)_2_DEPEND := $(TOOL_$(tool)_LINK_LIBRARY_DEPEND) $(deps) $($(target)_2_OBJS)
    25342524$(target)_2_DEPORD := $(TOOL_$(tool)_LINK_LIBRARY_DEPORD) $(dirdep) $(orderdeps)
    25352525
     
    25992589# no local here - must be writable across some foreachs.
    26002590othersrc          :=
    2601 $(target)_OBJS_   :=
     2591$(target)_2_OBJS  :=
    26022592
    26032593# Do units pre source callouts.
     
    27852775ifneq ($(defpath),)
    27862776 local libpath    := $(abspathex $(libpath),$(defpath))
    2787  $(target)_OBJS_  := $(abspathex $($(target)_OBJS_),$(defpath))
     2777 $(target)_2_OBJS := $(abspathex $($(target)_2_OBJS),$(defpath))
    27882778 local deps       := $(abspathex $(deps),$(defpath))
    27892779 local orderdeps  := $(abspathex $(orderdeps),$(defpath))
     
    28552845
    28562846# eliminate this guy?
    2857 local objs = $($(target)_OBJS_)
     2847local objs = $($(target)_2_OBJS)
    28582848
    28592849# installation targets
     
    29542944$(target)_2_OUTPUT := $(TOOL_$(tool)_$(tool_do)_OUTPUT)
    29552945$(target)_2_OUTPUT_MAYBE := $(TOOL_$(tool)_$(tool_do)_OUTPUT_MAYBE)
    2956 $(target)_2_DEPEND := $(TOOL_$(tool)_$(tool_do)_DEPEND) $(deps) $($(target)_OBJS_)
     2946$(target)_2_DEPEND := $(TOOL_$(tool)_$(tool_do)_DEPEND) $(deps) $($(target)_2_OBJS)
    29572947$(target)_2_DEPORD := $(TOOL_$(tool)_$(tool_do)_DEPORD) $(dirdep) $(orderdeps)
    29582948
     
    29622952
    29632953# Update globals.
    2964 _OBJS += $($(target)_OBJS_)
     2954_OBJS += $($(target)_2_OBJS)
    29652955_OUT_FILES += $($(target)_2_OUTPUT) $($(target)_2_OUTPUT_MAYBE) $(out)
    29662956_CLEAN_FILES += $($(target)_CLEAN) $($(target)_CLEAN.$(bld_trg)) $($(target)_CLEAN.$(bld_trg).$(bld_trg_arch)) $($(target)_CLEAN.$(bld_trg_arch)) $($(target)_CLEAN.$(bld_trg_cpu)) $($(target)_CLEAN.$(bld_type))
     
    37823772        @$(ECHO) "  TARGET_$(target)=$(TARGET_$(target))" $(NLTAB)\
    37833773        @$(ECHO) "  INSTARGET_$(target)=$(INSTARGET_$(target))" $(NLTAB)\
    3784 $(foreach prop,$(PROPS_SINGLE) $(PROPS_ACCUMULATE_L) $(PROPS_ACCUMULATE_R) OBJS_ CLEAN, \
     3774$(foreach prop,$(PROPS_SINGLE) $(PROPS_ACCUMULATE_L) $(PROPS_ACCUMULATE_R) 2_OBJS CLEAN, \
    37853775        $(eval _tmp:=$(firstword $($(target)_BLD_TRG) $(KBUILD_TARGET))) \
    37863776        $(if $($(target)_$(prop).$(_tmp)),\
Note: See TracChangeset for help on using the changeset viewer.