1cdf0e10cSrcweir#************************************************************************* 2cdf0e10cSrcweir# 3cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4cdf0e10cSrcweir# 5cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6cdf0e10cSrcweir# 7cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8cdf0e10cSrcweir# 9cdf0e10cSrcweir# This file is part of OpenOffice.org. 10cdf0e10cSrcweir# 11cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14cdf0e10cSrcweir# 15cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20cdf0e10cSrcweir# 21cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25cdf0e10cSrcweir# 26cdf0e10cSrcweir#************************************************************************* 27cdf0e10cSrcweir 28cdf0e10cSrcweir# --- OS2-Environment ---------------------------------------------- 29cdf0e10cSrcweir 30cdf0e10cSrcweir.IF "$(GUI)" == "OS2" 31cdf0e10cSrcweir 32cdf0e10cSrcweir# YD defined in os2env.cmd 33cdf0e10cSrcweir#.IF "$(NOSOLAR_JAVA)"=="" 34cdf0e10cSrcweir#SOLAR_JAVA=TRUE 35cdf0e10cSrcweir#.ENDIF 36cdf0e10cSrcweir 37cdf0e10cSrcweir.IF "$(SOLAR_JAVA)"!="" 38cdf0e10cSrcweirJAVADEF=-DSOLAR_JAVA 39cdf0e10cSrcweir.ENDIF 40cdf0e10cSrcweirJAVAFLAGSDEBUG=-g 41cdf0e10cSrcweir 42cdf0e10cSrcweir# --- Borland --- 43cdf0e10cSrcweir.IF "$(COM)" == "BLC" 44cdf0e10cSrcweir 45cdf0e10cSrcweirJAVADEF=-DSOLAR_JAVA 46cdf0e10cSrcweir 47cdf0e10cSrcweirASM=tasm 48cdf0e10cSrcweirAFLAGS= 49cdf0e10cSrcweir 50cdf0e10cSrcweirCXX=bcc 51cdf0e10cSrcweirCC=bcc 52cdf0e10cSrcweirCFLAGS=-c -3 -a1 -X -d -wbbf -weas -wucp -w-hid -w-par -I. $(MINUS_I)$(INCLUDE) 53cdf0e10cSrcweirCFLAGSCXX=-Pcxx -RT- -x- -V 54cdf0e10cSrcweirCFLAGSOBJGUIST= 55cdf0e10cSrcweirCFLAGSOBJCUIST= 56cdf0e10cSrcweirCFLAGSOBJGUIMT=-sm 57cdf0e10cSrcweirCFLAGSOBJCUIMT=-sm 58cdf0e10cSrcweirCFLAGSSLOGUIMT=-sm -sd 59cdf0e10cSrcweirCFLAGSSLOCUIMT=-sm -sd 60cdf0e10cSrcweirCFLAGSPROF= 61cdf0e10cSrcweirCFLAGSDEBUG=-v 62cdf0e10cSrcweirCFLAGSDBGUTIL= 63cdf0e10cSrcweirCFLAGSOPT=-Os -Ob -k- 64cdf0e10cSrcweirCFLAGSNOOPT=-Od 65cdf0e10cSrcweirCFLAGSOUTOBJ=-o 66cdf0e10cSrcweir 67cdf0e10cSrcweirLINK=tlink 68cdf0e10cSrcweirLINKFLAGS=/m /L$(LIB) 69cdf0e10cSrcweir#LINKFLAGSAPPGUI=/Toe /B:0x10000 /aa 70cdf0e10cSrcweir#Base wg. lxopt raus 71cdf0e10cSrcweirLINKFLAGSAPPGUI=/Toe /aa 72cdf0e10cSrcweirLINKFLAGSSHLGUI=/Tod 73cdf0e10cSrcweirLINKFLAGSAPPCUI=/Toe /B:0x10000 /ap 74cdf0e10cSrcweirLINKFLAGSSHLCUI=/Tod 75cdf0e10cSrcweirLINKFLAGSTACK=/S: 76cdf0e10cSrcweirLINKFLAGSPROF= 77cdf0e10cSrcweirLINKFLAGSDEBUG=/v 78cdf0e10cSrcweir.IF "$(SOLAR_JAVA)"=="" 79cdf0e10cSrcweirLINKFLAGSOPT=/Oc 80cdf0e10cSrcweir.ENDIF 81cdf0e10cSrcweir 82cdf0e10cSrcweirSTDOBJVCL=$(L)/salmain.obj 83cdf0e10cSrcweirSTDOBJGUI=c02.obj 84cdf0e10cSrcweirSTDSLOGUI=c02d.obj 85cdf0e10cSrcweirSTDOBJCUI=c02.obj 86cdf0e10cSrcweirSTDSLOCUI=c02d.obj 87cdf0e10cSrcweirSTDLIBGUIST=c2.lib os2.lib 88cdf0e10cSrcweirSTDLIBCUIST=c2.lib os2.lib 89cdf0e10cSrcweirSTDLIBGUIMT=c2mt.lib os2.lib 90cdf0e10cSrcweirSTDLIBCUIMT=c2mt.lib os2.lib 91cdf0e10cSrcweirSTDSHLGUIMT=c2mt.lib os2.lib 92cdf0e10cSrcweirSTDSHLCUIMT=c2mt.lib os2.lib 93cdf0e10cSrcweir 94cdf0e10cSrcweirLIBMGR=tlib 95cdf0e10cSrcweirLIBFLAGS=/C /P128 96cdf0e10cSrcweir 97cdf0e10cSrcweirIMPLIB=implib 98cdf0e10cSrcweirIMPLIBFLAGS=/c 99cdf0e10cSrcweir 100cdf0e10cSrcweirMAPSYM= 101cdf0e10cSrcweirMAPSYMFLAGS= 102cdf0e10cSrcweir 103cdf0e10cSrcweirRC=rc 104cdf0e10cSrcweirRCFLAGS=-r $(RCFILES) $@ 105cdf0e10cSrcweirRCLINK=rc 106cdf0e10cSrcweirRCLINKFLAGS= 107cdf0e10cSrcweirRCSETVERSION= 108cdf0e10cSrcweir 109*a4f23604SHerbert DürrDLLPOSTFIX= 110cdf0e10cSrcweir 111cdf0e10cSrcweir.ENDIF 112cdf0e10cSrcweir 113cdf0e10cSrcweir# --- IBM --- 114cdf0e10cSrcweir.IF "$(COM)" == "ICC" 115cdf0e10cSrcweir 116cdf0e10cSrcweirASM=tasm 117cdf0e10cSrcweirAFLAGS=/ml /oi 118cdf0e10cSrcweir 119cdf0e10cSrcweirCXX=icc 120cdf0e10cSrcweirCC=icc 121cdf0e10cSrcweir.IF "$(COMEX)"=="3" 122cdf0e10cSrcweirCFLAGS=/C+ /Q+ /Gf+ /Sp1 /G4 /Se /Gs+ /Gt+ /Gd+ /J- /W2 /D__EXTENDED__ /Si+ /Xi+ $(MINUS_I)$(INCLUDE) /Wvft- 123cdf0e10cSrcweir.ELSE 124cdf0e10cSrcweir.IF "$(COMEX)"=="I" 125cdf0e10cSrcweirCFLAGS=/C+ /Tl10 /Q+ /Gf+ /Sp4 /G4 /Sc /Gs- /D__EXTENDED__ /Si+ /Su4 126cdf0e10cSrcweir.ELSE 127cdf0e10cSrcweirCFLAGS=/C+ /Tl10 /Q+ /Gf+ /Sp1 /G4 /Sc /Gs+ /D__EXTENDED__ /Si+ 128cdf0e10cSrcweir.ENDIF 129cdf0e10cSrcweir.ENDIF 130cdf0e10cSrcweir 131cdf0e10cSrcweirCFLAGSCXX=/Tdp 132cdf0e10cSrcweir 133cdf0e10cSrcweirCFLAGSEXCEPTIONS=-Gx- 134cdf0e10cSrcweirCFLAGS_NO_EXCEPTIONS=-Gx+ 135cdf0e10cSrcweir 136cdf0e10cSrcweirCFLAGSOBJGUIST=/Ge+ 137cdf0e10cSrcweirCFLAGSOBJCUIST=/Ge+ 138cdf0e10cSrcweir.IF "$(COMEX)"=="I" 139cdf0e10cSrcweirCFLAGSOBJGUIMT=/Ge+ /Gm+ 140cdf0e10cSrcweirCFLAGSOBJCUIMT=/Ge+ /Gm+ 141cdf0e10cSrcweirCFLAGSSLOGUIMT=/Ge- /Gm+ 142cdf0e10cSrcweirCFLAGSSLOCUIMT=/Ge- /Gm+ 143cdf0e10cSrcweir.ELSE 144cdf0e10cSrcweirCFLAGSOBJGUIMT=/Ge+ /Gm+ 145cdf0e10cSrcweirCFLAGSOBJCUIMT=/Ge+ /Gm+ 146cdf0e10cSrcweirCFLAGSSLOGUIMT=/Ge- /Gm+ 147cdf0e10cSrcweirCFLAGSSLOCUIMT=/Ge- /Gm+ 148cdf0e10cSrcweir.ENDIF 149cdf0e10cSrcweirCFLAGSPROF=/Gh+ 150cdf0e10cSrcweirCFLAGSDEBUG=/Ti+ 151cdf0e10cSrcweirCFLAGSDBGUTIL= 152cdf0e10cSrcweirCFLAGSOPT=/O+ /Oi+ /Oc+ 153cdf0e10cSrcweirCFLAGSNOOPT=/O- 154cdf0e10cSrcweirCFLAGSOUTOBJ=/Fo 155cdf0e10cSrcweir 156cdf0e10cSrcweirCDEFS+=-D_STD_NO_NAMESPACE -D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE 157cdf0e10cSrcweir 158cdf0e10cSrcweirLINK=ilink 159cdf0e10cSrcweir#LINKFLAGS=/PACKCODE:8192 /ALIGN:16 /NOD /NOE /NOI /MAP /NOFREE 160cdf0e10cSrcweir 161cdf0e10cSrcweir#bei too many segments ist /SEGMENTS:nnnn hilfreich. 3072 ist max! 162cdf0e10cSrcweir.IF "$(CPPRTST)"!="" 163cdf0e10cSrcweirLINKFLAGS=/NOFREE /NOD /NOE /NOI /MAP /OPTFUNC /PACKD:65536 /EXEPACK:2 164cdf0e10cSrcweir.ELSE 165cdf0e10cSrcweirLINKFLAGS=/NOFREE /NOD /NOE /NOI /MAP /OPTFUNC /PACKD:65536 166cdf0e10cSrcweir.ENDIF 167cdf0e10cSrcweirLINKFLAGSAPPGUI=/PM:PM /NOBASE 168cdf0e10cSrcweirLINKFLAGSSHLGUI= 169cdf0e10cSrcweirLINKFLAGSAPPCUI=/PM:VIO /NOBASE 170cdf0e10cSrcweirLINKFLAGSSHLCUI= 171cdf0e10cSrcweirLINKFLAGSTACK=/STACK: 172cdf0e10cSrcweirLINKFLAGSPROF= 173cdf0e10cSrcweirLINKFLAGSDEBUG=/COD 174cdf0e10cSrcweir#LINKFLAGSOPT=/EXEPACK:2 /OPTFUNC 175cdf0e10cSrcweirLINKFLAGSOPT= 176cdf0e10cSrcweir#.IF "$(product)"!="full" && "$(product)"!="demo" && "$(product)"!="compact" 177cdf0e10cSrcweir#LINKFLAGS=$(LINKFLAGS) /COD 178cdf0e10cSrcweir#.ELSE 179cdf0e10cSrcweir#LINKFLAGS=$(LINKFLAGS) 180cdf0e10cSrcweir#.ENDIF 181cdf0e10cSrcweir 182cdf0e10cSrcweir.IF "$(product)"=="full" || "$(product)"=="demo" || "$(product)"=="compact" 183cdf0e10cSrcweir# LINKFLAGS=$(LINKFLAGS) 184cdf0e10cSrcweir.ELSE 185cdf0e10cSrcweirLINKFLAGS+=/COD 186cdf0e10cSrcweir.ENDIF 187cdf0e10cSrcweir 188cdf0e10cSrcweirSTDOBJVCL=$(L)/salmain.obj 189cdf0e10cSrcweirSTDOBJGUI= 190cdf0e10cSrcweirSTDSLOGUI= 191cdf0e10cSrcweirSTDOBJCUI= 192cdf0e10cSrcweirSTDSLOCUI= 193cdf0e10cSrcweir.IF "$(COMEX)"=="3" 194cdf0e10cSrcweir.IF "$(CPPRTST)"!="" 195cdf0e10cSrcweirSTDLIBGUIST=cppom30o.lib cpprtst.lib os2386.lib 196cdf0e10cSrcweirSTDLIBCUIST=cppom30o.lib cpprtst.lib os2386.lib 197cdf0e10cSrcweirSTDLIBGUIMT=cppom30o.lib cpprtst.lib os2386.lib 198cdf0e10cSrcweirSTDLIBCUIMT=cppom30o.lib cpprtst.lib os2386.lib 199cdf0e10cSrcweirSTDSHLGUIMT=cppom30o.lib cpprtst.lib os2386.lib 200cdf0e10cSrcweirSTDSHLCUIMT=cppom30o.lib cpprtst.lib os2386.lib 201cdf0e10cSrcweir.ELSE 202cdf0e10cSrcweirSTDLIBGUIST=cppom30o.lib cppom30i.lib os2386.lib 203cdf0e10cSrcweirSTDLIBCUIST=cppom30o.lib cppom30i.lib os2386.lib 204cdf0e10cSrcweirSTDLIBGUIMT=cppom30o.lib cppom30i.lib os2386.lib 205cdf0e10cSrcweirSTDLIBCUIMT=cppom30o.lib cppom30i.lib os2386.lib 206cdf0e10cSrcweirSTDSHLGUIMT=cppom30o.lib cppom30i.lib os2386.lib 207cdf0e10cSrcweirSTDSHLCUIMT=cppom30o.lib cppom30i.lib os2386.lib 208cdf0e10cSrcweir.ENDIF 209cdf0e10cSrcweir.ELSE 210cdf0e10cSrcweirSTDLIBGUIST=dde4sbs.lib os2386.lib 211cdf0e10cSrcweirSTDLIBCUIST=dde4sbs.lib os2386.lib 212cdf0e10cSrcweirSTDLIBGUIMT=dde4mbs.lib os2386.lib 213cdf0e10cSrcweirSTDLIBCUIMT=dde4mbs.lib os2386.lib 214cdf0e10cSrcweirSTDSHLGUIMT=dde4mbs.lib os2386.lib 215cdf0e10cSrcweirSTDSHLCUIMT=dde4mbs.lib os2386.lib 216cdf0e10cSrcweir.ENDIF 217cdf0e10cSrcweir 218cdf0e10cSrcweir.IF "$(COMEX)"=="3" 219cdf0e10cSrcweirLIBMGR=ilib 220cdf0e10cSrcweir.ELSE 221cdf0e10cSrcweirLIBMGR=lib 222cdf0e10cSrcweir.ENDIF 223cdf0e10cSrcweirLIBFLAGS=/NOI 224cdf0e10cSrcweir 225cdf0e10cSrcweirIMPLIB=implib 226cdf0e10cSrcweirIMPLIBFLAGS=/noi 227cdf0e10cSrcweir 228cdf0e10cSrcweirMAPSYM= 229cdf0e10cSrcweirMAPSYMFLAGS= 230cdf0e10cSrcweir 231cdf0e10cSrcweirRC=rc 232cdf0e10cSrcweirRCFLAGS=-r $(RCFILES) $@ 233cdf0e10cSrcweirRCLINK=rc 234cdf0e10cSrcweirRCLINKFLAGS= 235cdf0e10cSrcweirRCSETVERSION= 236cdf0e10cSrcweir 237cdf0e10cSrcweirDLLPOSTFIX=co 238cdf0e10cSrcweir 239cdf0e10cSrcweir.ENDIF 240cdf0e10cSrcweir 241cdf0e10cSrcweir# --- GNU --- 242cdf0e10cSrcweir.IF "$(COM)" == "GCC" 243cdf0e10cSrcweir 244cdf0e10cSrcweir.INCLUDE : os2gcci.mk 245cdf0e10cSrcweir 246cdf0e10cSrcweir.ENDIF 247cdf0e10cSrcweir 248cdf0e10cSrcweir# --- Watcom --- 249cdf0e10cSrcweir.IF "$(COM)" == "WTC" 250cdf0e10cSrcweir 251cdf0e10cSrcweirASM=wasm 252cdf0e10cSrcweirAFLAGS=/ml /4pr 253cdf0e10cSrcweir 254cdf0e10cSrcweirCC=wcl386 255cdf0e10cSrcweirCXX=wcl386 256cdf0e10cSrcweir.IF "$(e2p)" != "" 257cdf0e10cSrcweirCFLAGS=-c -W3 -Zp4 -Zld $(MINUS_I)$(INCLUDE) -bt=os2 -zq -zm -ep -ee 258cdf0e10cSrcweir.ELSE 259cdf0e10cSrcweirCFLAGS=-c -Zp4 -W3 -Zl -Zld $(MINUS_I)$(INCLUDE) -bt=os2 -zq -s 260cdf0e10cSrcweir.ENDIF 261cdf0e10cSrcweirCFLAGSCXX=-cc++ -xst 262cdf0e10cSrcweirCFLAGSOBJGUIST= #-Alfd -GA -GEfs 263cdf0e10cSrcweirCFLAGSOBJCUIST= 264cdf0e10cSrcweirCFLAGSOBJGUIMT=-bm #-Alfw -GA -GEd 265cdf0e10cSrcweirCFLAGSOBJCUIMT=-bm 266cdf0e10cSrcweirCFLAGSSLOGUIMT=-bm -bd #-Alfw -GD -GEfd 267cdf0e10cSrcweirCFLAGSSLOCUIMT=-bm -bd 268cdf0e10cSrcweirCFLAGSPROF= 269cdf0e10cSrcweirCFLAGSDEBUG=/d2 270cdf0e10cSrcweirCFLAGSDBGUTIL= 271cdf0e10cSrcweir.IF "$(e2p)" != "" 272cdf0e10cSrcweirCFLAGSOPT=-otexan -3s 273cdf0e10cSrcweirCFLAGSNOOPT=-od -3s 274cdf0e10cSrcweir.ELSE 275cdf0e10cSrcweirCFLAGSOPT=-otexan -4s 276cdf0e10cSrcweirCFLAGSNOOPT=-od -4s 277cdf0e10cSrcweir.ENDIF 278cdf0e10cSrcweirCFLAGSOUTOBJ=-Fo 279cdf0e10cSrcweir 280cdf0e10cSrcweirLINK=wlink 281cdf0e10cSrcweirLINKFLAGS=op symf op caseexact op statics op MANY 282cdf0e10cSrcweirLINKFLAGSAPPGUI=sys os2v2 pm 283cdf0e10cSrcweirLINKFLAGSSHLGUI=sys os2v2 dll INITINSTANCE TERMINSTANCE 284cdf0e10cSrcweirLINKFLAGSAPPCUI=sys os2v2 285cdf0e10cSrcweirLINKFLAGSSHLCUI=sys os2v2 dll 286cdf0e10cSrcweirLINKFLAGSTACK=op stack= 287cdf0e10cSrcweirLINKFLAGSPROF= 288cdf0e10cSrcweirLINKFLAGSDEBUG=debug all op undefsok 289cdf0e10cSrcweirLINKFLAGSOPT= 290cdf0e10cSrcweir 291cdf0e10cSrcweirSTDOBJVCL=$(L)/salmain.obj 292cdf0e10cSrcweirSTDOBJGUI=libr clib3s.lib libr plib3s.lib libr math387s.lib 293cdf0e10cSrcweirSTDSLOGUI=libr clib3s.lib libr os2386.lib libr plib3s.lib libr math387s.lib 294cdf0e10cSrcweirSTDOBJCUI=libr clib3s.lib libr plib3s.lib libr math387s.lib 295cdf0e10cSrcweirSTDSLOCUI=libr clib3s.lib libr plib3s.lib libr math387s.lib 296cdf0e10cSrcweirSTDLIBGUIST=libr os2386.lib libr clib3s.lib libr plib3s.lib 297cdf0e10cSrcweirSTDLIBCUIST=libr os2386.lib libr clib3s.lib libr plib3s.lib 298cdf0e10cSrcweirSTDLIBGUIMT=libr os2386.lib libr clib3s.lib libr plib3s.lib 299cdf0e10cSrcweirSTDLIBCUIMT=libr os2386.lib libr clib3s.lib libr plib3s.lib 300cdf0e10cSrcweirSTDSHLGUIMT=libr os2386.lib libr clib3s.lib libr plibmt3s.lib libr math387s.lib libr plib3s.lib libr noemu387.lib 301cdf0e10cSrcweirSTDSHLCUIMT=libr os2386.lib libr clib3s.lib libr plibmt3s.lib libr matg387s.lib libr plib3s.lib 302cdf0e10cSrcweir 303cdf0e10cSrcweirLIBMGR=wlib 304cdf0e10cSrcweirLIBFLAGS=/p=128 /c /m 305cdf0e10cSrcweir 306cdf0e10cSrcweirIMPLIB=echo 307cdf0e10cSrcweirIMPLIBFLAGS= 308cdf0e10cSrcweir 309cdf0e10cSrcweirMAPSYM=mapsym 310cdf0e10cSrcweirMAPSYMFLAGS= 311cdf0e10cSrcweir 312cdf0e10cSrcweirRC=rc 313cdf0e10cSrcweirRCFLAGS=-r $(RCFILES) $@ 314cdf0e10cSrcweirRCLINK=rc 315cdf0e10cSrcweirRCLINKFLAGS= 316cdf0e10cSrcweirRCSETVERSION= 317cdf0e10cSrcweir 318cdf0e10cSrcweirDLLPOSTFIX=wo 319cdf0e10cSrcweir 320cdf0e10cSrcweir.ENDIF 321cdf0e10cSrcweir 322cdf0e10cSrcweir# --- OS2 Allgemein --- 323cdf0e10cSrcweirHC=toipf 324cdf0e10cSrcweirHCFLAGS= 325cdf0e10cSrcweirPATH_SEPERATOR*=; 326cdf0e10cSrcweirDLLPRE= 327cdf0e10cSrcweirDLLPOST=.dll 328cdf0e10cSrcweirEXECPOST=.exe 329cdf0e10cSrcweirSCPPOST=.ins 330cdf0e10cSrcweirDLLDEST=$(BIN) 331cdf0e10cSrcweirSOLARSHAREDBIN=$(SOLARBINDIR) 332cdf0e10cSrcweir 333cdf0e10cSrcweir.ENDIF 334