merge the formfield patch from ooo-build
[ooovba.git] / dmake / startup / unix / os2 / macros.mk
blob08c829ba0c585598de87fa190c5cdcefca694a04
1 # Define additional OS/2 specific macros.
4 # Process release-specific refinements, if any.
5 .INCLUDE .NOINFER .IGNORE : $(INCFILENAME:d)$(OSRELEASE)$/macros.mk
7 # Execution environment configuration.
8 # Grab the current setting of COMSPEC.
10 .IMPORT .IGNORE : COMSPEC ROOTDIR
12 # First check if SHELL is defined to be something other than COMSPEC.
13 # If it is assume that SHELL is a Korn compatible shell like MKS's
14 .IF $(SHELL) == $(NULL)
15 .IF $(COMSPEC) == $(NULL)
16 SHELL *:= $(ROOTDIR)$/bin$/sh$E
17 .ELSE
18 SHELL *:= $(COMSPEC)
19 .END
20 .END
21 GROUPSHELL *:= $(SHELL)
23 # Directory entries are case incensitive
24 .DIRCACHERESPCASE *:= no
26 # Applicable suffix definitions
27 A *:= .lib # Libraries
28 E *:= .exe # Executables
29 F *:= .for # Fortran
30 O *:= .obj # Objects
31 P *:= .pas # Pascal
32 S *:= .asm # Assembler sources
33 V *:= # RCS suffix
35 # Now set the remaining arguments depending on which SHELL we
36 # are going to use. COMSPEC (assumed to be command.com) or
37 # MKS Korn shell.
38 .IF $(SHELL) == $(COMSPEC)
39 SHELLFLAGS *:= $(SWITCHAR)c
40 GROUPFLAGS *:= $(SHELLFLAGS)
41 SHELLMETAS *:= *"?<>
42 GROUPSUFFIX *:= .bat
43 DIRSEPSTR *:= \\\
44 DIVFILE *= $(TMPFILE:s,/,\,)
45 RM *= del
46 RMFLAGS *=
47 MV *= rename
48 .ELSE
49 SHELLFLAGS *:= -c
50 GROUPFLAGS *:=
51 SHELLMETAS *:= *"?<>|()&][$$\#`'
52 GROUPSUFFIX *:= .ksh
53 .MKSARGS *:= yes
54 RM *= $(ROOTDIR)$/bin$/rm
55 RMFLAGS *= -f
56 MV *= $(ROOTDIR)$/bin$/mv
57 DIVFILE *= $(TMPFILE:s,/,${__.DIVSEP-sh-${USESHELL}},)
58 __.DIVSEP-sh-yes !:= \\\
59 __.DIVSEP-sh-no !:= \\
60 .ENDIF