Changeset 743 for trunk/kBuild/gnumake-header.kmk
- Timestamp:
- Dec 17, 2006, 9:12:30 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/gnumake-header.kmk
r723 r743 33 33 $(warning kBuild: Using vanilla GNU make isn't safe for anything but kBuild bootstrapping!) 34 34 35 ## 36 # Pushes an item onto a 'stack' variable. 37 # @param $1 The stack variable name 38 # @param $2 What to push. 39 stack-push = $(eval $1 +=$2) 40 41 ## 42 # Removes the top element from a 'stack' variable. 43 # @returns The popped element 44 # @param $1 The stack variable name 45 stack-pop = $(call stack-top,$1)$(call stack-popv,$1) 46 47 ## 48 # Removes the top element from a 'stack' variable. 49 # This does *NOT* return the top element, use 50 # @param $1 The stack variable name 51 # @remark This ain't very fast (that's why it's implemented in functions.c in kmk). 52 stack-popv = $(eval $1:=$(wordlist 1,$(words $(wordlist 2,9999,$($1))),$($1))) 53 54 ## 55 # Retrieves the top element from the 'stack' variable. 56 # @param $1 The stack variable name 57 stack-top = $(lastword $($1)) 58 35 59 36 60 # 37 # Default variables.61 # Fix some default variables. 38 62 # 39 63 ifeq ($(MAKEFLAGS),$(MAKEFLAGS:R=x)) … … 54 78 55 79 # 56 # Suffixes.80 # Zap suffixes. 57 81 # 58 82 .SUFFIXES: … … 60 84 61 85 # 62 # Implicit rules86 # Zap implicit rules 63 87 # 64 88 ifeq ($(MAKEFLAGS),$(MAKEFLAGS:r=x))
Note:
See TracChangeset
for help on using the changeset viewer.