summaryrefslogtreecommitdiff
path: root/solenv/inc/startup/wnt/macros.mk
blob: 35f903f60922842270a38b80461912008ca6d5aa (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
# Define additional MSDOS specific settings.
#

# --- Set Wrapper command ---
# Provide a macro that can be used to access the wrapper and to avoid
# hardcoding the program name everywhere
GUWCMD*=guw.exe

# This is a no-op for native W32 dmake
.WINPATH !:= yes

# 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) == 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 : GUWCMD

.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

GROUPSHELL *:= $(SHELL)

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