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