Changeset 723 for trunk/kBuild/header.kmk
- Timestamp:
- Dec 15, 2006, 3:54:52 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/header.kmk
r710 r723 217 217 endif 218 218 else 219 # Vanilla GNU Make. Only supported for kBuild bootstrapping. Disable some features to make it work. 220 NO_COMPILE_CMDS_DEPS:= 1 221 NO_LINK_CMDS_DEPS := 1 222 sinclude $(PATH_KBUILD)/StampOutPredefines.kmk 223 ifndef IS_BOOTSTRAPPING_KBUILD_NOW 224 $(warning kBuild: Using vanilla GNU make isn't safe for anything but kBuild bootstrapping!) 225 endif 219 include $(PATH_KBUILD)/gnumake-header.kmk 226 220 endif 227 221 … … 461 455 endif 462 456 457 458 ifneq ($(filter stack,$(KMK_FEATURES)),stack) ## @todo retire this to gnumake-header.kmk when all the programs have been recompiled. 459 ## 460 # Pushes an item onto a 'stack' variable. 461 # @param $1 The stack variable name 462 # @param $2 What to push. 463 stack-push = $(eval $1 +=$2) 464 465 ## 466 # Removes the top element from a 'stack' variable. 467 # @returns The popped element 468 # @param $1 The stack variable name 469 stack-pop = $(call stack-top,$1)$(call stack-popv,$1) 470 471 ## 472 # Removes the top element from a 'stack' variable. 473 # This does *NOT* return the top element, use 474 # @param $1 The stack variable name 475 # @remark This ain't very fast (that's why it's implemented in functions.c in kmk). 476 define def_stack-popv_sub 477 $1 :=$(__tmp) 478 __tmp+=$(item) 479 endef 480 define def_stack-popv 481 __tmp:= 482 $(foreach item,$($1),$(eval $(value def_stack-popv_sub))) 483 endef 484 stack-popv = $(eval $(value def_stack-popv)) 485 486 ## 487 # Retrieves the top element from the 'stack' variable. 488 # @param $1 The stack variable name 489 stack-top = $(lastword $($1)) 490 endif 491 492 463 493 # 464 494 # Initialize some of the globals which the Config.kmk and … … 649 679 # The passes that should be defined. This must include 650 680 # all passes mentioned by DEFAULT_PASSES. 651 PASSES := FETCHES PATCHES $(DEFAULT_PASSES) PACKINGNOTHING CLEAN681 PASSES := FETCHES PATCHES $(DEFAULT_PASSES) NOTHING CLEAN 652 682 653 683
Note:
See TracChangeset
for help on using the changeset viewer.