1#ident "@(#)mk-smake.id 1.11 18/04/15 " 2########################################################################### 3# Written 1996-2018 by J. Schilling 4########################################################################### 5# 6# Name of make program (make/gmake/smake) 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.oev) 26___GETENV= $(__GETENV:$(_UNIQ)TRUE=rules.nul) 27GET_ENV= $(___GETENV:$(_UNIQ)%=%) 28 29# 30# Disable warnings for nonportable variable assignements. 31# We only use smake MS-WIN, so this is not a problem. 32# 33.NO_WARN: := 34include $(SRCROOT)/$(RULESDIR)/$(GET_ENV) 35# 36# Re-enable all warnings. 37# 38.NO_WARN: 39 40_SETENV= $(_UNIQ)$(SETENV) 41__SETENV= $(_SETENV:$(_UNIQ)=rules.env) 42___SETENV= $(__SETENV:$(_UNIQ)none=rules.nul) 43SET_ENV= $(___SETENV:$(_UNIQ)%=%) 44 45include $(SRCROOT)/$(RULESDIR)/$(SET_ENV) 46 47MAKEPROG= $(MAKE_NAME) 48WAIT= # smake-1.2.1 does not yet wait for parallel targets 49 50SPACE= $(_UNIQ:$(_UNIQ)%= ) 51#NUMBER_SIGN= NUMBER_SIGN is defined internally by smake 52 53########################################################################### 54# 55# standard (automatic) machine identification 56# 57########################################################################### 58# 59# XP_ARCH = MAKE_ARCH = uname -p = mach # Processor (sparc/mc68020) 60# XK_ARCH = MAKE_MACH = uname -m = arch -k # Kernel (sun3/sun4c/sun4m) 61# XM_ARCH = MAKE_M_ARCH = arch ~ arch -k # Machine (sun3/sun4) 62# 63########################################################################### 64 65XP_ARCH= $(MAKE_ARCH) 66XK_ARCH= $(MAKE_MACH) 67XM_ARCH= $(MAKE_M_ARCH) 68 69P_ARCH= $(XP_ARCH) 70K_ARCH= $(XK_ARCH) 71M_ARCH= $(XM_ARCH) 72 73_P_ARCH= $(_UNIQ)$(XP_ARCH) 74__P_ARCH= $(_P_ARCH:$(_UNIQ)=$(MAKE_MACH)) 75P_ARCH= $(__P_ARCH:$(_UNIQ)%=%) 76 77_M_ARCH= $(_UNIQ)$(MAKE_M_ARCH) 78__M_ARCH= $(_M_ARCH:$(_UNIQ)=$(MAKE_MACH)) 79M_ARCH= $(__M_ARCH:$(_UNIQ)%=%) 80 81HOSTNAME= $(MAKE_HOST) 82OSNAME= $(MAKE_OS) 83OSDEFS= $(MAKE_OSDEFS) 84OSREL= $(MAKE_OSREL) 85OSVERSION= $(MAKE_OSVERSION) 86 87# 88# Disable Simple Suffix Rules 89# 90.SSUFFIX_RULES: 91# 92# Disable Suffix Rules 93# 94.SUFFIXES: 95 96ARCH_DONE= TRUE 97export ARCH_DONE 98