Ignore:
Timestamp:
Dec 17, 2006, 9:12:30 AM (19 years ago)
Author:
bird
Message:

set PATH_target early (i.e. in subheader/subfooter).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/gnumake-header.kmk

    r723 r743  
    3333$(warning kBuild: Using vanilla GNU make isn't safe for anything but kBuild bootstrapping!)
    3434
     35##
     36# Pushes an item onto a 'stack' variable.
     37# @param    $1   The stack variable name
     38# @param    $2   What to push.
     39stack-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
     45stack-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).
     52stack-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
     57stack-top  = $(lastword $($1))
     58
    3559
    3660#
    37 # Default variables.
     61# Fix some default variables.
    3862#
    3963ifeq ($(MAKEFLAGS),$(MAKEFLAGS:R=x))
     
    5478
    5579#
    56 # Suffixes.
     80# Zap suffixes.
    5781#
    5882.SUFFIXES:
     
    6084
    6185#
    62 # Implicit rules
     86# Zap implicit rules
    6387#
    6488ifeq ($(MAKEFLAGS),$(MAKEFLAGS:r=x))
Note: See TracChangeset for help on using the changeset viewer.