summaryrefslogtreecommitdiff
path: root/solenv/inc/startup/OS2/macros.mk
blob: 08d2be3f9a48627eec2da969d1d65b4ea0445b11 (plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Define additional OS/2 specific macros.
#

# Process release-specific refinements, if any.
# YD .INCLUDE .NOINFER .IGNORE : $(INCFILENAME:d)$(OSRELEASE)$/macros.mk

# Execution environment configuration.
# Grab the current setting of COMSPEC.
#
.IMPORT .IGNORE : COMSPEC

# First check if SHELL is defined to be something other than COMSPEC.
# If it is assume that SHELL is a Korn compatible shell like MKS's
.IF $(SHELL) == $(NULL)
   .IF $(COMSPEC) == $(NULL)
      SHELL *:= $(ROOTDIR)$/bin$/sh$E
   .ELSE
      SHELL *:= $(COMSPEC)
   .END
.END
GROUPSHELL *:= $(SHELL)

# Directory entries are case incensitive
.DIRCACHERESPCASE *:= no

# tmp is already imported - use it!
TMPDIR *= $(TMP)

# Applicable suffix definitions
A *:= .lib	# Libraries
E *:= .exe	# Executables
F *:= .for	# Fortran
O *:= .obj	# Objects
P *:= .pas	# Pascal
S *:= .asm	# Assembler sources
V *:= 		# RCS suffix

# Now set the remaining arguments depending on which SHELL we
# are going to use.  COMSPEC (assumed to be command.com) or
# MKS Korn shell.
.IF $(SHELL) == $(COMSPEC)
   SHELLFLAGS       *:= $(SWITCHAR)c
   GROUPFLAGS       *:= $(SHELLFLAGS)
   SHELLMETAS       *:= <>|*?&
   GROUPSUFFIX      *:= .bat
   DIVFILE          *=  $(TMPFILE:s,/,\\,)
   RM               *=  rm
   RMFLAGS          *=  -f
   MV	            *=  rename
   __.DIVSEP-sh-yes *:= \\
   __.DIVSEP-sh-no  *:= \\
   DIRSEPSTR        := \\
# See iz61212 for the reason why PWD is overwritten
#   PWD:=$(shell +echo %_cwd:s,/,\\,)
#   PWD:=$(shell +cd)
#.EXPORT : PWD

.ELSE
   SHELLFLAGS       *:= -c
   GROUPFLAGS       *:=
   SHELLMETAS       *:= *"?<>|()&][$$\#`'
   GROUPSUFFIX      *:= .ksh
   .MKSARGS         *:= yes
   RM               *=  $(ROOTDIR)$/bin$/rm
   RMFLAGS          *=  -f
   MV	            *=  $(ROOTDIR)$/bin$/mv
   DIVFILE          *=  $(TMPFILE:s,/,${__.DIVSEP-sh-${USESHELL}})
   __.DIVSEP-sh-yes !:= \\\
   __.DIVSEP-sh-no  !:= \\
.ENDIF

NAMEMAX		=	256