summaryrefslogtreecommitdiff
path: root/solenv/inc/startup
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-07-22 15:52:34 +0000
committerOliver Bolte <obo@openoffice.org>2008-07-22 15:52:34 +0000
commite49c312cb05745d10fd7f835bc6a2c41c2f7252f (patch)
tree2efa8580dc77fb942cc56606dfb44b89235c57b4 /solenv/inc/startup
parent9b4c9a44af3b2cd39d798f9715c3a04fc9291ecb (diff)
INTEGRATION: CWS os2port03 (1.1.2); FILE ADDED
2008/01/15 08:49:56 ydario 1.1.2.1: os2 startup macros. Issue number:i85203 Submitted by:ydario
Diffstat (limited to 'solenv/inc/startup')
-rw-r--r--solenv/inc/startup/OS2/macros.mk73
1 files changed, 73 insertions, 0 deletions
diff --git a/solenv/inc/startup/OS2/macros.mk b/solenv/inc/startup/OS2/macros.mk
new file mode 100644
index 000000000000..08d2be3f9a48
--- /dev/null
+++ b/solenv/inc/startup/OS2/macros.mk
@@ -0,0 +1,73 @@
+# Define additional OS/2 specific macros.
+#
+
+# Process release-specific refinements, if any.
+# YD .INCLUDE .NOINFER .IGNORE : $(INCFILENAME:d)$(OSRELEASE)$/macros.mk
+
+# Execution environment configuration.
+# Grab the current setting of COMSPEC.
+#
+.IMPORT .IGNORE : COMSPEC
+
+# First check if SHELL is defined to be something other than COMSPEC.
+# If it is assume that SHELL is a Korn compatible shell like MKS's
+.IF $(SHELL) == $(NULL)
+ .IF $(COMSPEC) == $(NULL)
+ SHELL *:= $(ROOTDIR)$/bin$/sh$E
+ .ELSE
+ SHELL *:= $(COMSPEC)
+ .END
+.END
+GROUPSHELL *:= $(SHELL)
+
+# Directory entries are case incensitive
+.DIRCACHERESPCASE *:= no
+
+# tmp is already imported - use it!
+TMPDIR *= $(TMP)
+
+# Applicable suffix definitions
+A *:= .lib # Libraries
+E *:= .exe # Executables
+F *:= .for # Fortran
+O *:= .obj # Objects
+P *:= .pas # Pascal
+S *:= .asm # Assembler sources
+V *:= # RCS suffix
+
+# Now set the remaining arguments depending on which SHELL we
+# are going to use. COMSPEC (assumed to be command.com) or
+# MKS Korn shell.
+.IF $(SHELL) == $(COMSPEC)
+ SHELLFLAGS *:= $(SWITCHAR)c
+ GROUPFLAGS *:= $(SHELLFLAGS)
+ SHELLMETAS *:= <>|*?&
+ GROUPSUFFIX *:= .bat
+ DIVFILE *= $(TMPFILE:s,/,\\,)
+ RM *= rm
+ RMFLAGS *= -f
+ MV *= rename
+ __.DIVSEP-sh-yes *:= \\
+ __.DIVSEP-sh-no *:= \\
+ DIRSEPSTR := \\
+# See iz61212 for the reason why PWD is overwritten
+# PWD:=$(shell +echo %_cwd:s,/,\\,)
+# PWD:=$(shell +cd)
+#.EXPORT : PWD
+
+.ELSE
+ SHELLFLAGS *:= -c
+ GROUPFLAGS *:=
+ SHELLMETAS *:= *"?<>|()&][$$\#`'
+ GROUPSUFFIX *:= .ksh
+ .MKSARGS *:= yes
+ RM *= $(ROOTDIR)$/bin$/rm
+ RMFLAGS *= -f
+ MV *= $(ROOTDIR)$/bin$/mv
+ DIVFILE *= $(TMPFILE:s,/,${__.DIVSEP-sh-${USESHELL}})
+ __.DIVSEP-sh-yes !:= \\\
+ __.DIVSEP-sh-no !:= \\
+.ENDIF
+
+NAMEMAX = 256
+