Changeset 412 for trunk/kBuild/footer.kmk
- Timestamp:
- Jan 18, 2006, 2:31:43 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer.kmk
r388 r412 185 185 186 186 # 187 # Template Inheritance. 188 # 189 define def_template_extends_prop 190 ifndef TEMPLATE_$(template)_$(prop) 191 ifdef TEMPLATE_$(parent)_$(prop) 192 TEMPLATE_$(template)_$(prop) = $$(TEMPLATE_$(parent)_$(prop)) 193 endif 194 endif 195 endef 196 197 define def_template_extends 198 ifdef TEMPLATE_$(template)_EXTENDS 199 parent := $(strip $(TEMPLATE_$(template)_EXTENDS)) 200 201 $(foreach prop, $(PROPS_SINGLE) $(PROPS_ACCUMULATE) $(PROPS_DEFERRED)\ 202 $(addsuffix .$(BUILD_TARGET), $(PROPS_SINGLE) $(PROPS_ACCUMULATE) $(PROPS_DEFERRED))\ 203 $(addsuffix .$(BUILD_TYPE), $(PROPS_SINGLE) $(PROPS_ACCUMULATE) $(PROPS_DEFERRED))\ 204 ,$(eval $(def_template_extends_prop))) # exploits the 2 evaluation, so no value! 205 endif 206 endef 207 208 # $ (foreach template, $(_TEMPLATES), $(if TEMPLATE_$(template)_EXTENDS, $(eval $(value def_template_extends)))) 209 $(foreach template, $(_TEMPLATES), $(eval $(value def_template_extends))) 210 211 212 # 187 213 # Common Inheritance 188 214 # … … 395 421 $(RM) -f $(dep) $(out) $($(target)_$(source)_OUTPUT_) 396 422 $(custom_pre) 397 423 398 424 $($(target)_$(source)_CMDS_) 399 425 … … 404 430 @$(APPEND) "$(dep)" '$(subst $(NL),'$(NL)$(TAB)@$(APPEND) "$(dep)" ',$($(target)_$(source)_CMDS_))' 405 431 @$(APPEND) "$(dep)" 'endef' 406 endif 432 endif 407 433 408 434 $(basename $(notdir $(obj))).o:: … … 439 465 $(RM) -f $(dep) $($(target)_OUTPUT_) 440 466 $(custom_pre) 441 467 442 468 $($(target)_CMDS_) 443 469 … … 447 473 @$(APPEND) "$(dep)" '$(subst $(NL),'$(NL)$(TAB)@$(APPEND) "$(dep)" ',$($(target)_CMDS_))' 448 474 @$(APPEND) "$(dep)" 'endef' 449 endif 475 endif 450 476 451 477 $(basename $(notdir $(out))):: … … 916 942 $(target)_DEPORD_ := $(TOOL_$(tool)_LINK_LIBRARY_DEPORD) $(dirdep) 917 943 918 # generate the link rule. 944 # generate the link rule. 919 945 $(eval $(def_link_rule)) 920 946 … … 1128 1154 $(target)_DEPORD_ := $(TOOL_$(tool)_$(tool_do)_DEPORD) $(dirdep) 1129 1155 1130 # generate the link rule. 1156 # generate the link rule. 1131 1157 $(eval $(def_link_rule)) 1132 1158 1133 1159 1134 1160 # Update globals. 1135 1161 _OBJS += $($(target)_OBJS_) … … 1349 1375 endef 1350 1376 1351 1377 1352 1378 ## generate the install rule 1353 1379 define def_install_directory_rule … … 1359 1385 $(if $(mode),-m $(mode))\ 1360 1386 $(insdst) 1361 1362 .NOTPARALLEL: $(insdst) 1363 endef 1364 1387 1388 .NOTPARALLEL: $(insdst) 1389 endef 1390 1365 1391 1366 1392 ## create one directory … … 1614 1640 + $(MAKE) -f $(firstword $(MAKEFILE_LIST)) all_recursive 1615 1641 1616 # @todo make this a non-default pass! 1642 # @todo make this a non-default pass! 1617 1643 uninstall: 1618 1644 $(RM) -f $(_INSTALLS) 1619 1645 1620 1646 install: pass_installs 1621 1647
Note:
See TracChangeset
for help on using the changeset viewer.