summaryrefslogtreecommitdiff
path: root/solenv/inc/startup/wnt/macros.mk
blob: e6b57692320eb80d626a3670b31184fa84161364 (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
79
80
81
82
83
84
85
86
87
88
89
90
# Define additional MSDOS specific settings.
#

# Execution environment configuration.

# 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 $(USE_SHELL) == 4nt

.IMPORT : COMSPEC

SHELL *:= $(COMSPEC)

   SHELLFLAGS       *:= $(SWITCHAR)c
   GROUPFLAGS       *:= $(SHELLFLAGS)
   SHELLMETAS       *:= "<>|
# Fix syntax highlighting: "
   GROUPSUFFIX      *:= .bat
   DIVFILE          *=  $(TMPFILE:s,/,\,)
   RM               *=  del
   RMFLAGS          *= /y /E
   MV	            *=  rename
   __.DIVSEP-sh-yes *:= \\
   __.DIVSEP-sh-no  *:= \\
   DIRSEPSTR        := \\
# See iz61212 for the reason why PWD is overwritten
   PWD:=$(shell +echo %_cwd)
.EXPORT : PWD
   
.ELSE	# Non 4nt case

.IF $(USE_SHELL) == bash
   SHELLFLAGS       *:= -c
.ELSE
   # See iz50689 why -f is needed.
   SHELLFLAGS       *:= -fc
.ENDIF # $(USE_SHELL) == bash

   GROUPFLAGS       *:=
   SHELLMETAS       *:= *";?<>|()&][$$\#`'
# Fix syntax highlighting: "
   GROUPSUFFIX      *:= .csh
# This is hopefully not used. Only in: dmake/msdos/spawn.c  
#  .MKSARGS         *:= yes
   DIVFILE          *=  $(TMPFILE:s,/,${__.DIVSEP-sh-${USESHELL}})
   RM               *=  $/bin$/rm
   RMFLAGS          *=  -f
   MV	            *=  $/bin$/mv
   __.DIVSEP-sh-yes *:= \\\
   __.DIVSEP-sh-no  *:= \\
   DIRSEPSTR :=/
.EXPORT : PWD

.ENDIF

.IF $(USE_SHELL) == 4nt

my4ver:=$(shell +echo %_4ver)

.IF "$(my4ver:s/.//:s/,//)" >= "400"
.ELSE			# "$(my4ver:s/.//:s/,//)" >= "400"
.ERROR : ; @echo Forced error: 4NT version too old! Version 4.0 or newer is required.
4NT_version_too_old
.ENDIF			# "$(my4ver:s/.//:s/,//)" >= "400"

.ELSE # $(USE_SHELL) == 4nt

.IF $(SHELL) == $(NULL)
# SHELL has to be set in (non-4NT) OOobuild environment
.ERROR : ; @echo Forced error: Environment variable SHELL has to be set for OOo build!
SHELL_variable_needed
.END

.END # $(USE_SHELL) == 4nt

GROUPSHELL *:= $(SHELL)

# Does not respect case of filenames.
.DIRCACHERESPCASE := no
NAMEMAX	=	256