1*7871dc3eSAndrew Rist#************************************************************** 2*7871dc3eSAndrew Rist# 3*7871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 4*7871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 5*7871dc3eSAndrew Rist# distributed with this work for additional information 6*7871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 7*7871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 8*7871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 9*7871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 10*7871dc3eSAndrew Rist# 11*7871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12*7871dc3eSAndrew Rist# 13*7871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 14*7871dc3eSAndrew Rist# software distributed under the License is distributed on an 15*7871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*7871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 17*7871dc3eSAndrew Rist# specific language governing permissions and limitations 18*7871dc3eSAndrew Rist# under the License. 19*7871dc3eSAndrew Rist# 20*7871dc3eSAndrew Rist#************************************************************** 21*7871dc3eSAndrew Rist 22*7871dc3eSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir 25cdf0e10cSrcweir# mak file fuer wnticci 26cdf0e10cSrcweirASM= 27cdf0e10cSrcweirAFLAGS= 28cdf0e10cSrcweir 29cdf0e10cSrcweirCDEFS+=-D_PTHREADS -D_REENTRANT 30cdf0e10cSrcweirCDEFS+=-D_STD_NO_NAMESPACE -D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE -DX86 -DNEW_SOLAR 31cdf0e10cSrcweir# kann c++ was c braucht?? 32cdf0e10cSrcweir 33cdf0e10cSrcweir# architecture dependent flags for the C and C++ compiler that can be changed by 34cdf0e10cSrcweir# exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build 35cdf0e10cSrcweirARCH_FLAGS*=-mpentium 36cdf0e10cSrcweir 37cdf0e10cSrcweirCXX*=/nw386/dev/s/solenv/unxscoi/bin/g++ 38cdf0e10cSrcweirCC*=/nw386/dev/s/solenv/unxscoi/bin/gcc 39cdf0e10cSrcweirCFLAGS=-c 40cdf0e10cSrcweirCFLAGSCC=$(ARCH_FLAGS) 41cdf0e10cSrcweirCFLAGSEXCEPTIONS=-fexceptions 42cdf0e10cSrcweirCFLAGS_NO_EXCEPTIONS=-fno-exceptions 43cdf0e10cSrcweirCFLAGSCXX=-fguiding-decls -frtti $(ARCH_FLAGS) 44cdf0e10cSrcweirPICSWITCH:=-fPIC 45cdf0e10cSrcweirCFLAGSOBJGUIMT=$(PICSWITCH) 46cdf0e10cSrcweirCFLAGSOBJCUIMT=$(PICSWITCH) 47cdf0e10cSrcweirCFLAGSSLOGUIMT=$(PICSWITCH) 48cdf0e10cSrcweirCFLAGSSLOCUIMT=$(PICSWITCH) 49cdf0e10cSrcweirCFLAGSPROF= 50cdf0e10cSrcweirCFLAGSDEBUG=-g 51cdf0e10cSrcweirCFLAGSDBGUTIL= 52cdf0e10cSrcweirCFLAGSOPT=-O2 53cdf0e10cSrcweirCFLAGSNOOPT=-O 54cdf0e10cSrcweirCFLAGSOUTOBJ=-o 55cdf0e10cSrcweir 56cdf0e10cSrcweirCFLAGSWARNCC= 57cdf0e10cSrcweirCFLAGSWARNCXX=$(CFLAGSWARNCC) -Wno-ctor-dtor-privacy 58cdf0e10cSrcweir# -Wshadow does not work for C with nested uses of pthread_cleanup_push: 59cdf0e10cSrcweirCFLAGSWALLCC=-Wall -Wextra -Wendif-labels 60cdf0e10cSrcweirCFLAGSWALLCXX=$(CFLAGSWALLCC) -Wshadow -Wno-ctor-dtor-privacy 61cdf0e10cSrcweirCFLAGSWERRCC=-Werror 62cdf0e10cSrcweir 63cdf0e10cSrcweirSTATIC = -Wl,-Bstatic 64cdf0e10cSrcweirDYNAMIC = -Wl,-Bdynamic 65cdf0e10cSrcweir 66cdf0e10cSrcweirTHREADLIB= 67cdf0e10cSrcweirLINK=/nw386/dev/s/solenv/unxscoi/bin/gcc 68cdf0e10cSrcweirLINKFLAGS= 69cdf0e10cSrcweir# SCO hat grosse Probleme mit fork/exec und einigen shared libraries 70cdf0e10cSrcweir# rsc2 muss daher statisch gelinkt werden 71cdf0e10cSrcweir.IF "$(PRJNAME)"=="rsc" 72cdf0e10cSrcweirLINKFLAGSAPPGUI=-L/nw386/dev/s/solenv/unxscoi/lib $(STATIC) -lpthread_init $(DYNAMIC) 73cdf0e10cSrcweirLINKFLAGSAPPCUI=-L/nw386/dev/s/solenv/unxscoi/lib $(STATIC) -lpthread_init $(DYNAMIC) 74cdf0e10cSrcweir.ELSE 75cdf0e10cSrcweirLINKFLAGSAPPGUI=-L/nw386/dev/s/solenv/unxscoi/lib -lpthread_init 76cdf0e10cSrcweirLINKFLAGSAPPCUI=-L/nw386/dev/s/solenv/unxscoi/lib -lpthread_init 77cdf0e10cSrcweir.ENDIF 78cdf0e10cSrcweirLINKFLAGSSHLGUI=-G -W,l,-Bsymbolic 79cdf0e10cSrcweirLINKFLAGSSHLCUI=-G -W,l,-Bsymbolic 80cdf0e10cSrcweirLINKFLAGSTACK= 81cdf0e10cSrcweirLINKFLAGSPROF= 82cdf0e10cSrcweirLINKFLAGSDEBUG=-g 83cdf0e10cSrcweirLINKFLAGSOPT= 84cdf0e10cSrcweir 85cdf0e10cSrcweir# standard C++ Library 86cdf0e10cSrcweir# 87cdf0e10cSrcweir# das statische dazulinken der libstdc++ macht jede shared library um 50k 88cdf0e10cSrcweir# (ungestrippt) oder so groesser, auch wenn sie ueberhaupt nicht gebraucht 89cdf0e10cSrcweir# wird. Da muessen wir uns was besseres ueberlegen. 90cdf0e10cSrcweirSTDLIBCPP=-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic 91cdf0e10cSrcweir 92cdf0e10cSrcweir# reihenfolge der libs NICHT egal! 93cdf0e10cSrcweirSTDOBJGUI= 94cdf0e10cSrcweirSTDSLOGUI= 95cdf0e10cSrcweirSTDOBJCUI= 96cdf0e10cSrcweirSTDSLOCUI= 97cdf0e10cSrcweir.IF "$(PRJNAME)"=="rsc" 98cdf0e10cSrcweirSTDLIBGUIMT=-lXext -lX11 $(STATIC) -lpthread $(DYNAMIC) -ldl -lsocket -lm 99cdf0e10cSrcweirSTDLIBCUIMT=$(STATIC) -lpthread $(DYNAMIC) -ldl -lsocket -lm 100cdf0e10cSrcweir.ELSE 101cdf0e10cSrcweirSTDLIBGUIMT=-lXext -lX11 -lpthread -ldl -lsocket -lm 102cdf0e10cSrcweirSTDLIBCUIMT=-lpthread -ldl -lsocket -lm 103cdf0e10cSrcweir.ENDIF 104cdf0e10cSrcweir#STDSHLGUIMT=-lXext -lX11 -lpthread -ldl -lsocket -lm 105cdf0e10cSrcweir#STDSHLCUIMT=-lpthread -ldl -lsocket -lm 106cdf0e10cSrcweir 107cdf0e10cSrcweirSTDLIBCPP= -lstdc++ 108cdf0e10cSrcweirSHLLINKARCONLY=yes 109cdf0e10cSrcweir 110cdf0e10cSrcweirLIBMGR=ar 111cdf0e10cSrcweirLIBFLAGS=-r 112cdf0e10cSrcweir# LIBEXT=.so 113cdf0e10cSrcweir 114cdf0e10cSrcweirIMPLIB= 115cdf0e10cSrcweirIMPLIBFLAGS= 116cdf0e10cSrcweir 117cdf0e10cSrcweirMAPSYM= 118cdf0e10cSrcweirMAPSYMFLAGS= 119cdf0e10cSrcweir 120cdf0e10cSrcweirRC=irc 121cdf0e10cSrcweirRCFLAGS=-fo$@ $(RCFILES) 122cdf0e10cSrcweirRCLINK= 123cdf0e10cSrcweirRCLINKFLAGS= 124cdf0e10cSrcweirRCSETVERSION= 125cdf0e10cSrcweir 126a4f23604SHerbert DürrDLLPOSTFIX= 127cdf0e10cSrcweirDLLPRE=lib 128cdf0e10cSrcweirDLLPOST=.so 129cdf0e10cSrcweir 130cdf0e10cSrcweirLDUMP=cppfilt /b /n /o /p 131cdf0e10cSrcweir 132