blob: 18aaf4c12b1d857e2a5a3124888ccdf2bbe70be1 (
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
74
75
76
77
78
|
# Define additional MSDOS specific settings.
#
# Execution environment configuration.
# Grab the current setting of COMSPEC.
#
.IMPORT .IGNORE : COMSPEC
.IF $(SHELL) == $(NULL)
.IF $(COMSPEC) == $(NULL)
# SHELL has to be set in OOo build environment
.ERROR : ; @echo Forced error: Environment variable SHELL has to be set for OOo build!
SHELL_variable_needed
.ELSE
SHELL *:= $(COMSPEC)
.END
.END
GROUPSHELL *:= $(SHELL)
# Standard C-language command names and flags
CC *:= cl # C compiler
# Directory cache configuration.
.DIRCACHE *:= no
# Applicable suffix definitions
E *:= .exe # Executables
# Now set the remaining arguments depending on which SHELL we
# are going to use.
.IF $(SHELL) == $(COMSPEC)
SHELLFLAGS *:= $(SWITCHAR)c
GROUPFLAGS *:= $(SHELLFLAGS)
SHELLMETAS *:= "<>|
GROUPSUFFIX *:= .bat
DIVFILE *= $(TMPFILE:s,/,\,)
RM *= del
RMFLAGS *= /y
MV *= rename
__.DIVSEP-sh-yes *:= \\
__.DIVSEP-sh-no *:= \\
DIRSEPSTR := \\
PWD:=$(shell +echo %_cwd)
.EXPORT : PWD
.ELSE # Non 4nt case
SHELLFLAGS *:= -c
GROUPFLAGS *:=
SHELLMETAS *:= *";?<>|()&][$$\#`'
GROUPSUFFIX *:= .csh
# This is hopefully not used. Only in: dmake/msdos/spawn.c
# .MKSARGS *:= yes
DIVFILE *= $(TMPFILE:s,/,${__.DIVSEP-sh-${USESHELL}})
RM *= $(ROOTDIR)$/bin$/rm
RMFLAGS *= -f
MV *= $(ROOTDIR)$/bin$/mv
__.DIVSEP-sh-yes *:= \\\
__.DIVSEP-sh-no *:= \\
DIRSEPSTR :=/
# See IZ 11093 why PWD has to be overwritten
PWD:=$(shell +pwd)
.EXPORT : PWD
.ENDIF
.IF "$(GUI)$(USE_SHELL)"=="WNT4nt"
my4ver:=$(shell +echo %_4ver)
.ENDIF # "$(GUI)$(USE_SHELL)"=="WNT4nt"
#.IF "$(my4ver:s/.//:s/,//)" >= "400"
# RMFLAGS +=/E
#.ENDIF # "$(my4ver:s/.//:s/,//)" >= "300"
# Does not respect case of filenames.
.DIRCACHERESPCASE := no
NAMEMAX = 256
|