1#ident "@(#)mk-sunpro.id	1.23 20/03/30 "
2###########################################################################
3# Written 1996-2020 by J. Schilling
4###########################################################################
5#
6# Name of make program SunPro Make
7#
8###########################################################################
9# Copyright (c) J. Schilling
10###########################################################################
11# The contents of this file are subject to the terms of the
12# Common Development and Distribution License, Version 1.0 only
13# (the "License").  You may not use this file except in compliance
14# with the License.
15#
16# See the file CDDL.Schily.txt in this distribution for details.
17# A copy of the CDDL is also available via the Internet at
18# http://www.opensource.org/licenses/cddl1.txt
19#
20# When distributing Covered Code, include this CDDL HEADER in each
21# file and include the License file CDDL.Schily.txt from this distribution.
22###########################################################################
23
24_GETENV=	$(_UNIQ)$(ARCH_DONE)
25__GETENV=	$(_GETENV:$(_UNIQ)=rules.oes)
26___GETENV=	$(__GETENV:$(_UNIQ)TRUE=rules.nul)
27GET_ENV=	$(___GETENV:$(_UNIQ)%=%)
28
29include		$(SRCROOT)/$(RULESDIR)/$(GET_ENV)
30
31_SETENV=	$(_UNIQ)$(SETENV)
32__SETENV=	$(_SETENV:$(_UNIQ)=rules.env)
33___SETENV=	$(__SETENV:$(_UNIQ)none=rules.nul)
34SET_ENV=	$(___SETENV:$(_UNIQ)%=%)
35
36include		$(SRCROOT)/$(RULESDIR)/$(SET_ENV)
37
38MAKEPROG=	$(MAKE_NAME)	# Use the new ID from the Schilytools version
39WAIT=		.WAIT		# Sun make notation to wait for parallel targets
40
41SPACE=		$(_UNIQ:$(_UNIQ)%= )
42PRE_NUMBER=	pre\#
43NUMBER_SIGN=	$(PRE_NUMBER:pre\%=%)
44
45###########################################################################
46#
47# standard (automatic) machine identification
48#
49###########################################################################
50#
51# XP_ARCH = uname -p	= mach	  # Processor (sparc/mc68020)
52# XK_ARCH = uname -m	= arch -k # Kernel (sun3/sun4c/sun4m)
53# XM_ARCH = arch	~ arch -k # Machine (sun3/sun4)
54#
55###########################################################################
56
57###########################################################################
58#
59# Set up the values for XP_ARCH/XK_ARCH/XM_ARCH/...
60# For older versions of the Schily version of SunPro Make, we use rules.ars
61# For newer versions with support for archconfig.cc we use rules.arn
62#
63###########################################################################
64_ARX=		$(_UNIQ)$(MAKE_OS)
65__ARX=		$(_ARX:$(_UNIQ)=rules.ars)
66ARX=		$(__ARX:$(_UNIQ)%=rules.arn)
67
68_ARS=		$(_UNIQ)$(ARCH_DONE)
69#__ARS=		$(_ARS:$(_UNIQ)=rules.ars)
70__ARS=		$(_ARS:$(_UNIQ)=$(ARX))
71___ARS=		$(__ARS:$(_UNIQ)TRUE=rules.nul)
72ARS=		$(___ARS:$(_UNIQ)%=%)
73
74include		$(SRCROOT)/$(RULESDIR)/$(ARS)
75###########################################################################
76
77P_ARCH=		$(XP_ARCH)
78K_ARCH=		$(XK_ARCH)
79M_ARCH=		$(XM_ARCH)
80
81_XP_ARCH=	$(XP_ARCH:unknown=$(K_ARCH))
82
83_P_ARCH=	$(_UNIQ)$(_XP_ARCH)
84__P_ARCH=	$(_P_ARCH:$(_UNIQ)=$(K_ARCH))
85P_ARCH=		$(__P_ARCH:$(_UNIQ)%=%)
86
87_M_ARCH=	$(_UNIQ)$(XM_ARCH)
88__M_ARCH=	$(_M_ARCH:$(_UNIQ)=$(K_ARCH))
89M_ARCH=		$(__M_ARCH:$(_UNIQ)%=%)
90
91#
92# Turn off the
93#	<hostname> --> # jobs
94#	<hostname> --> Job output
95# messages.
96# You may turn them on again by calling: dmake DMAKE_OUTPUT_MODE=TXT1
97#
98DMAKE_OUTPUT_MODE=TXT2
99