1 # Define additional MSDOS specific settings.
4 # Execution environment configuration.
5 # Grab the current setting of COMSPEC.
7 .IMPORT .IGNORE
: COMSPEC ROOTDIR
9 # First check if SHELL is defined to be something other than COMSPEC.
10 # If it is, then assume that SHELL is a Korn compatible shell like MKS's
11 .IF
$(SHELL
) == $(NULL
)
12 .IF
$(COMSPEC
) == $(NULL
)
13 SHELL
*:= $(ROOTDIR
)$/bin
$/sh
$E
18 GROUPSHELL
*:= $(SHELL
)
20 # Process release-specific refinements, if any.
21 .INCLUDE .NOINFER .IGNORE
: $(INCFILENAME
:d
)$(OSRELEASE
)$/macros.mk
23 # Applicable suffix definitions
24 A
*:= .lib
# Libraries
25 E
*:= .exe
# Executables
29 S
*:= .asm
# Assembler sources
32 # Now set the remaining arguments depending on which SHELL we
33 # are going to use. COMSPEC (assumed to be command.com) or
35 .IF
$(SHELL
) == $(COMSPEC
)
36 .IF
$(COMSPEC
:lf
) == cmd.exe
37 SHELLFLAGS
*:= $(SWITCHAR
)S
$(SWITCHAR
)c
39 # " fix syntax highlighting
40 .ELIF
$(COMSPEC
:lf
) == command.com
41 SHELLFLAGS
*:= $(SWITCHAR
)c
43 # " fix syntax highlighting
45 SHELLFLAGS
*:= $(SWITCHAR
)c
47 GROUPFLAGS
*:= $(SWITCHAR
)c
49 # " fix syntax highlighting
51 DIVFILE
*= $(TMPFILE
:s
,/,\
,)
55 __.DIVSEP-sh-yes
*:= \\
56 __.DIVSEP-sh-no
*:= \\
58 SHELL
!:= $(SHELL
:s
,/,\
,)
59 COMMAND
*= $(CMNDNAME
:s
,/,\
,) $(CMNDARGS
)
62 SHELLMETAS
*:= *";?<>|()&][$$\#`'
65 RM *= $(ROOTDIR)$/bin$/rm
67 MV *= $(ROOTDIR)$/bin$/mv
68 DIVFILE *= $(TMPFILE:s,/,${__.DIVSEP-sh-${USESHELL}},)
69 __.DIVSEP-sh-yes *:= \\\
70 __.DIVSEP-sh-no *:= \\
74 # Does not respect case of filenames.
75 .DIRCACHERESPCASE := no