Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / dmake / startup / msdos / macros.mk
blob8f8c57c5a479d3eb1b439f8b0acf433136b8c373
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
14 .ELSE
15 SHELL *:= $(COMSPEC)
16 .END
17 .END
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
26 F *:= .for # Fortran
27 O *:= .obj # Objects
28 P *:= .pas # Pascal
29 S *:= .asm # Assembler sources
30 V *:= # RCS suffix
32 # Now set the remaining arguments depending on which SHELL we
33 # are going to use. COMSPEC (assumed to be command.com) or
34 # MKS Korn shell.
35 .IF $(SHELL) == $(COMSPEC)
36 SHELLFLAGS *:= $(SWITCHAR)c
37 GROUPFLAGS *:= $(SHELLFLAGS)
38 SHELLMETAS *:= "<>|
39 GROUPSUFFIX *:= .bat
40 DIVFILE *= $(TMPFILE:s,/,\,)
41 RM *= del
42 RMFLAGS *=
43 MV *= rename
44 __.DIVSEP-sh-yes *:= \\
45 __.DIVSEP-sh-no *:= \\
46 .ELSE
47 SHELLFLAGS *:= -c
48 GROUPFLAGS *:=
49 SHELLMETAS *:= *";?<>|()&][$$\#`'
50 GROUPSUFFIX *:= .ksh
51 .MKSARGS *:= yes
52 RM *= $(ROOTDIR)$/bin$/rm
53 RMFLAGS *= -f
54 MV *= $(ROOTDIR)$/bin$/mv
55 DIVFILE *= $(TMPFILE:s,/,${__.DIVSEP-sh-${USESHELL}},)
56 __.DIVSEP-sh-yes *:= \\\
57 __.DIVSEP-sh-no *:= \\
58 .ENDIF
61 # Does not respect case of filenames.
62 .DIRCACHERESPCASE := no