Changeset 2236
- Timestamp:
- Jan 9, 2009, 3:59:39 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer.kmk
r2234 r2236 2166 2166 endef 2167 2167 2168 if $(KBUILD_VERSION_PATCH) != 42169 2168 define def_src_handler_obj 2170 2169 ifeq ($(defpath),) … … 2174 2173 endif 2175 2174 endef 2176 else # legacy - remove2177 define def_src_handler_obj2178 ifeq ($(defpath),)2179 $(target)_OBJS_ += $(source)2180 else2181 $(target)_OBJS_ += $(abspathex $(source), $(defpath))2182 endif2183 endef2184 endif # legacy - remove2185 2175 ## @} 2186 2176 … … 2202 2192 # @param $(defpath) 2203 2193 # @param much-more... 2204 # @returns othersrc, $(target)_ OBJS_, ++2194 # @returns othersrc, $(target)_2_OBJS, ++ 2205 2195 define def_target_sources 2206 2196 local target_src_handlers := $($(target)_SRC_HANDLERS) $(KBUILD_SRC_HANDLERS) … … 2297 2287 _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)) 2298 2288 _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) 2300 2290 2301 2291 endef # def_target_install_pluss … … 2346 2336 # no local here - must be writable across some foreachs. 2347 2337 othersrc := 2348 $(target)_ OBJS_:=2338 $(target)_2_OBJS := 2349 2339 2350 2340 # Do units pre source callouts. … … 2419 2409 # Adjust paths if we got a default path. 2420 2410 ifneq ($(defpath),) 2421 $(target)_ OBJS_ := $(abspathex $($(target)_OBJS_),$(defpath))2411 $(target)_2_OBJS := $(abspathex $($(target)_2_OBJS),$(defpath)) 2422 2412 local deps := $(abspathex $(deps),$(defpath)) 2423 2413 local orderdeps := $(abspathex $(orderdeps),$(defpath)) … … 2490 2480 2491 2481 # eliminate this guy? 2492 local objs = $($(target)_ OBJS_)2482 local objs = $($(target)_2_OBJS) 2493 2483 2494 2484 # dependency file … … 2531 2521 $(target)_2_OUTPUT := $(TOOL_$(tool)_LINK_LIBRARY_OUTPUT) 2532 2522 $(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) 2534 2524 $(target)_2_DEPORD := $(TOOL_$(tool)_LINK_LIBRARY_DEPORD) $(dirdep) $(orderdeps) 2535 2525 … … 2599 2589 # no local here - must be writable across some foreachs. 2600 2590 othersrc := 2601 $(target)_ OBJS_:=2591 $(target)_2_OBJS := 2602 2592 2603 2593 # Do units pre source callouts. … … 2785 2775 ifneq ($(defpath),) 2786 2776 local libpath := $(abspathex $(libpath),$(defpath)) 2787 $(target)_ OBJS_ := $(abspathex $($(target)_OBJS_),$(defpath))2777 $(target)_2_OBJS := $(abspathex $($(target)_2_OBJS),$(defpath)) 2788 2778 local deps := $(abspathex $(deps),$(defpath)) 2789 2779 local orderdeps := $(abspathex $(orderdeps),$(defpath)) … … 2855 2845 2856 2846 # eliminate this guy? 2857 local objs = $($(target)_ OBJS_)2847 local objs = $($(target)_2_OBJS) 2858 2848 2859 2849 # installation targets … … 2954 2944 $(target)_2_OUTPUT := $(TOOL_$(tool)_$(tool_do)_OUTPUT) 2955 2945 $(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) 2957 2947 $(target)_2_DEPORD := $(TOOL_$(tool)_$(tool_do)_DEPORD) $(dirdep) $(orderdeps) 2958 2948 … … 2962 2952 2963 2953 # Update globals. 2964 _OBJS += $($(target)_ OBJS_)2954 _OBJS += $($(target)_2_OBJS) 2965 2955 _OUT_FILES += $($(target)_2_OUTPUT) $($(target)_2_OUTPUT_MAYBE) $(out) 2966 2956 _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)) … … 3782 3772 @$(ECHO) " TARGET_$(target)=$(TARGET_$(target))" $(NLTAB)\ 3783 3773 @$(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, \ 3785 3775 $(eval _tmp:=$(firstword $($(target)_BLD_TRG) $(KBUILD_TARGET))) \ 3786 3776 $(if $($(target)_$(prop).$(_tmp)),\
Note:
See TracChangeset
for help on using the changeset viewer.