Changeset 447 for trunk/kBuild/footer.kmk
- Timestamp:
- Jun 5, 2006, 6:22:01 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer.kmk
r445 r447 43 43 $(INSTALLS) $(INSTALLS.$(BUILD_TARGET)) \ 44 44 $(OTHERS) $(OTHERS.$(BUILD_TARGET)) 45 46 # all $(BUILD_TARGET) targets. 47 _ALL_BUILD_TARGET_TARGETS += \ 48 $(BLDPROGS) $(BLDPROGS.$(BUILD_PLATFORM)) \ 49 $(LIBRARIES) $(LIBRARIES.$(BUILD_TARGET)) \ 50 $(IMPORT_LIBS) $(IMPORT_LIBS.$(BUILD_TARGET)) \ 51 $(DLLS) $(DLLS.$(BUILD_TARGET)) \ 52 $(PROGRAMS) $(PROGRAMS.$(BUILD_TARGET)) \ 53 $(SYSMODS) $(SYSMODS.$(BUILD_TARGET)) \ 54 $(INSTALLS) $(INSTALLS.$(BUILD_TARGET)) \ 55 $(OTHERS) $(OTHERS.$(BUILD_TARGET)) 56 57 # all $(BUILD_TARGET) targets. 58 _ALL_BUILD_PLATFORM_TARGETS += \ 59 $(BLDPROGS) $(BLDPROGS.$(BUILD_PLATFORM)) 45 60 46 61 # dependency files. … … 218 233 # @param $(prop) Property name 219 234 # @param $(target) Target name. 235 # @param $(bld_trg) Build target name. 220 236 define def_inherit_defaults_one 221 237 ifndef $(target)_$(prop) 222 ifndef $(target)_$(prop).$( BUILD_TARGET)238 ifndef $(target)_$(prop).$(bld_trg) 223 239 ifdef $(prop) 224 240 $$(eval $(target)_$(prop) := $($(prop))) 225 endif 226 ifdef $(prop).$(BUILD_TARGET) 227 $$(eval $(target)_$(prop).$(BUILD_TARGET) := $($(prop).$(BUILD_TARGET))) 241 #$ (warning dbg idefone: $(target)_$(prop):=$($(prop))) 242 endif 243 ifdef $(prop).$(bld_trg) 244 $$(eval $(target)_$(prop).$(bld_trg) := $($(prop).$(bld_trg))) 245 #$ (warning dbg idefone: $(target)_$(prop).$(bld_trg) := $($(prop).$(bld_trg))) 228 246 endif 229 247 endif … … 235 253 # is inherited from the default properties. 236 254 # @param $(target) Target name 255 # @param $(bld_trg) Build target name. 237 256 # 238 257 define def_inherit_defaults 239 258 ifdef $(target)_TEMPLATE 240 ifeq ($(strip $(TEMPLATE_$($(target)_TEMPLATE)_TOOL) $(TEMPLATE_$($(target)_TEMPLATE)_TOOL.$( BUILD_TARGET))),)259 ifeq ($(strip $(TEMPLATE_$($(target)_TEMPLATE)_TOOL) $(TEMPLATE_$($(target)_TEMPLATE)_TOOL.$(bld_trg))),) 241 260 $$(foreach prop,TOOL, $$(eval $$(def_inherit_defaults_one))) 242 261 endif 243 ifeq ($(strip $(TEMPLATE_$($(target)_TEMPLATE)_SDKS) $(TEMPLATE_$($(target)_TEMPLATE)_SDKS.$( BUILD_TARGET))),)262 ifeq ($(strip $(TEMPLATE_$($(target)_TEMPLATE)_SDKS) $(TEMPLATE_$($(target)_TEMPLATE)_SDKS.$(bld_trg))),) 244 263 $$(foreach prop,SDKS, $$(eval $$(def_inherit_defaults_one))) 245 264 endif … … 250 269 # Inherit default properties. 251 270 # !!!!!!THIS IS MESSY AND NOT NECESSARY!!!!!! 252 $(foreach target, $(ALL_TARGETS),$(eval $(def_inherit_defaults))) 271 #bld_trg := $(BUILD_TARGET) 272 #$(foreach target, $(_ALL_BUILD_TARGET_TARGETS),$(eval $(def_inherit_defaults))) 273 #bld_trg := $(BUILD_PLATFORM) 274 #$(foreach target, $(_ALL_BUILD_PLATFORM_TARGETS),$(eval $(def_inherit_defaults))) 253 275 254 276 … … 264 286 endif 265 287 endif 266 ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$( BUILD_TARGET)267 ifndef $(target)_$(prop).$( BUILD_TARGET)268 #$ (warning dbgsource: $(target)_$(prop).$( BUILD_TARGET)="TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(BUILD_TARGET)" TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(BUILD_TARGET))269 $(target)_$(prop).$( BUILD_TARGET) := $(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(BUILD_TARGET))288 ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg) 289 ifndef $(target)_$(prop).$(bld_trg) 290 #$ (warning dbgsource: $(target)_$(prop).$(bld_trg)="TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg)" TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg)) 291 $(target)_$(prop).$(bld_trg) := $(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg)) 270 292 endif 271 293 endif … … 284 306 endif 285 307 endif 286 ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$( BUILD_TARGET)287 ifndef $(target)_$(prop).$( BUILD_TARGET)288 #$ (warning dbgsource: $(target)_$(prop).$( BUILD_TARGET)="TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(BUILD_TARGET)" TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(BUILD_TARGET))289 $(target)_$(prop).$( BUILD_TARGET) = $$(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(BUILD_TARGET))308 ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg) 309 ifndef $(target)_$(prop).$(bld_trg) 310 #$ (warning dbgsource: $(target)_$(prop).$(bld_trg)="TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg)" TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg)) 311 $(target)_$(prop).$(bld_trg) = $$(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg)) 290 312 endif 291 313 endif … … 305 327 $(target)_$(prop).$(BUILD_TYPE) += $(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(BUILD_TYPE)) 306 328 endif 307 ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$( BUILD_TARGET)308 #$ (warning dbg4: TEMPLATE_$($(target)_TEMPLATE)_$(prop).$( BUILD_TARGET))309 $(target)_$(prop).$( BUILD_TARGET) += $(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(BUILD_TARGET))310 endif 311 ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$( BUILD_TARGET_CPU)312 #$ (warning dbg5: TEMPLATE_$($(target)_TEMPLATE)_$(prop).$( BUILD_TARGET_CPU))313 $(target)_$(prop).$( BUILD_TARGET_CPU) += $(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(BUILD_TARGET_CPU))314 endif 315 ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$( BUILD_TARGET_ARCH)316 #$ (warning dbg6: TEMPLATE_$($(target)_TEMPLATE)_$(prop).$( BUILD_TARGET_ARCH))317 $(target)_$(prop).$( BUILD_TARGET_ARCH) += $(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(BUILD_TARGET_ARCH))329 ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg) 330 #$ (warning dbg4: TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg)) 331 $(target)_$(prop).$(bld_trg) += $(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg)) 332 endif 333 ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_cpu) 334 #$ (warning dbg5: TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_cpu)) 335 $(target)_$(prop).$(bld_trg_cpu) += $(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_cpu)) 336 endif 337 ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_arch) 338 #$ (warning dbg6: TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_arch)) 339 $(target)_$(prop).$(bld_trg_arch) += $(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_arch)) 318 340 endif 319 341 endef … … 322 344 # @param $(target) Target name. 323 345 define def_inherit_template 346 # Inherit any default template. 347 ifdef TEMPLATE 348 ifeq ($($(target)_TEMPLATE),) 349 $(eval $(target)_TEMPLATE:=$(TEMPLATE)) 350 endif 351 endif 352 # Expand the template if specified. 353 ifneq ($($(target)_TEMPLATE),) 324 354 $(foreach prop,$(PROPS_SINGLE),$(eval $(value def_inherit_template_one))) 325 355 $(foreach prop,$(PROPS_DEFERRED),$(eval $(def_inherit_template_one_deferred))) # exploits the 2 evaluation, so no value! 326 356 $(foreach prop,$(PROPS_ACCUMULATE),$(eval $(def_inherit_template_one_accumulate))) # += works fine (better) without value. 357 endif 327 358 endef 328 359 329 360 # Inherit template properties 330 $(foreach target, $(ALL_TARGETS),$(eval $(value def_inherit_template))) 361 bld_trg := $(BUILD_TARGET) 362 bld_trg_arch := $(BUILD_TARGET_ARCH) 363 bld_trg_cpu := $(BUILD_TARGET_CPU) 364 $(foreach target, $(_ALL_BUILD_TARGET_TARGETS),$(eval $(value def_inherit_template))) 365 366 bld_trg := $(BUILD_PLATFORM) 367 bld_trg_arch := $(BUILD_PLATFORM_ARCH) 368 bld_trg_cpu := $(BUILD_PLATFORM_CPU) 369 $(foreach target, $(_ALL_BUILD_PLATFORM_TARGETS),$(eval $(value def_inherit_template))) 331 370 332 371
Note:
See TracChangeset
for help on using the changeset viewer.