1#ident "@(#)mk-.id	1.10 98/10/13 "
2###########################################################################
3# Written 1996 by J. Schilling
4###########################################################################
5#
6# Name of make program (make/gmake/smake)
7#
8###########################################################################
9# This program is free software; you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation; either version 2, or (at your option)
12# any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with this program; see the file COPYING.  If not, write to
21# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
22###########################################################################
23
24MAKEPROG=	make		# Sun make
25
26###########################################################################
27#
28# standard (automatic) machine identification
29#
30###########################################################################
31#
32# XP_ARCH = uname -p	= mach	  # Processor (sparc/mc68020)
33# XK_ARCH = uname -m	= arch -k # Kernel (sun3/sun4c/sun4m)
34# XM_ARCH = arch	~ arch -k # Machine (sun3/sun4)
35#
36###########################################################################
37
38XP_ARCH:sh=	(mach || uname -p || true)2>/dev/null      | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------'
39XK_ARCH:sh=	uname -m                                   | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------'
40XM_ARCH:sh=	(arch || /usr/ucb/arch || true)2>/dev/null | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------'
41
42P_ARCH=		$(XP_ARCH)
43K_ARCH=		$(XK_ARCH)
44M_ARCH=		$(XM_ARCH)
45
46_XP_ARCH=	$(XP_ARCH:unknown=$(K_ARCH))
47
48_P_ARCH=	$(_UNIQ)$(_XP_ARCH)
49__P_ARCH=	$(_P_ARCH:$(_UNIQ)=$(K_ARCH))
50P_ARCH=		$(__P_ARCH:$(_UNIQ)%=%)
51
52_M_ARCH=	$(_UNIQ)$(XM_ARCH)
53__M_ARCH=	$(_M_ARCH:$(_UNIQ)=$(K_ARCH))
54M_ARCH=		$(__M_ARCH:$(_UNIQ)%=%)
55
56OSNAME:sh=	uname -s | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------'
57OSREL:sh=	uname -r | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------'
58