merge the formfield patch from ooo-build
[ooovba.git] / dmake / startup / win95 / macros.mk
blob5490634e67621a30a74aacee73c986b8d7b12788
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 .IF $(COMSPEC:lf) == cmd.exe
37 SHELLFLAGS *:= $(SWITCHAR)S $(SWITCHAR)c
38 SHELLCMDQUOTE *:= "
39 # " fix syntax highlighting
40 .ELIF $(COMSPEC:lf) == command.com
41 SHELLFLAGS *:= $(SWITCHAR)c
42 SHELLCMDQUOTE *:= "
43 # " fix syntax highlighting
44 .ELSE
45 SHELLFLAGS *:= $(SWITCHAR)c
46 .END
47 GROUPFLAGS *:= $(SWITCHAR)c
48 SHELLMETAS *:= "<>|
49 # " fix syntax highlighting
50 GROUPSUFFIX *:= .bat
51 DIVFILE *= $(TMPFILE:s,/,\,)
52 RM *= del
53 RMFLAGS *=
54 MV *= rename
55 __.DIVSEP-sh-yes *:= \\
56 __.DIVSEP-sh-no *:= \\
57 .ELSE
58 SHELL !:= $(SHELL:s,/,\,)
59 COMMAND *= $(CMNDNAME:s,/,\,) $(CMNDARGS)
60 SHELLFLAGS *:= -c
61 GROUPFLAGS *:=
62 SHELLMETAS *:= *";?<>|()&][$$\#`'
63 GROUPSUFFIX *:= .ksh
64 .MKSARGS *:= yes
65 RM *= $(ROOTDIR)$/bin$/rm
66 RMFLAGS *= -f
67 MV *= $(ROOTDIR)$/bin$/mv
68 DIVFILE *= $(TMPFILE:s,/,${__.DIVSEP-sh-${USESHELL}},)
69 __.DIVSEP-sh-yes *:= \\\
70 __.DIVSEP-sh-no *:= \\
71 .ENDIF
74 # Does not respect case of filenames.
75 .DIRCACHERESPCASE := no