1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
#ident "@(#)mk-.id 1.10 98/10/13 "
###########################################################################
# Written 1996 by J. Schilling
###########################################################################
#
# Name of make program (make/gmake/smake)
#
###########################################################################
# Copyright Jrg Schilling. All rights reserved.
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only.
# See the file CDDL.Schily.txt in this distribution or
# http://opensource.org/licenses/cddl1.php for details.
###########################################################################
MAKEPROG= make # Sun make
###########################################################################
#
# standard (automatic) machine identification
#
###########################################################################
#
# XP_ARCH = uname -p = mach # Processor (sparc/mc68020)
# XK_ARCH = uname -m = arch -k # Kernel (sun3/sun4c/sun4m)
# XM_ARCH = arch ~ arch -k # Machine (sun3/sun4)
#
###########################################################################
XP_ARCH:sh= (mach || uname -p || true)2>/dev/null | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------'
XK_ARCH:sh= uname -m | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------'
XM_ARCH:sh= (arch || /usr/ucb/arch || true)2>/dev/null | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------'
P_ARCH= $(XP_ARCH)
K_ARCH= $(XK_ARCH)
M_ARCH= $(XM_ARCH)
_XP_ARCH= $(XP_ARCH:unknown=$(K_ARCH))
_P_ARCH= $(_UNIQ)$(_XP_ARCH)
__P_ARCH= $(_P_ARCH:$(_UNIQ)=$(K_ARCH))
P_ARCH= $(__P_ARCH:$(_UNIQ)%=%)
_M_ARCH= $(_UNIQ)$(XM_ARCH)
__M_ARCH= $(_M_ARCH:$(_UNIQ)=$(K_ARCH))
M_ARCH= $(__M_ARCH:$(_UNIQ)%=%)
OSNAME:sh= uname -s | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------'
OSREL:sh= uname -r | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------'
|