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# mk file for unxsogs 25cdf0e10cSrcweirASM=/usr/ccs/bin/as 26cdf0e10cSrcweirAFLAGS=-P 27cdf0e10cSrcweir 28cdf0e10cSrcweirSOLAR_JAVA=TRUE 29cdf0e10cSrcweirJAVAFLAGSDEBUG=-g 30cdf0e10cSrcweir 31cdf0e10cSrcweir# _PTHREADS is needed for the stl 32cdf0e10cSrcweirCDEFS+=-D_PTHREADS -D_REENTRANT -DSYSV -DSUN -DSUN4 -D_POSIX_PTHREAD_SEMANTICS -DSTLPORT_VERSION=$(STLPORT_VER) -D_USE_NAMESPACE=1 33cdf0e10cSrcweir 34cdf0e10cSrcweir 35cdf0e10cSrcweir.IF "$(SOLAR_JAVA)"!="" 36cdf0e10cSrcweirJAVADEF=-DSOLAR_JAVA 37cdf0e10cSrcweir.IF "$(debug)"=="" 38cdf0e10cSrcweirJAVA_RUNTIME=-ljava 39cdf0e10cSrcweir.ELSE 40cdf0e10cSrcweirJAVA_RUNTIME=-ljava_g 41cdf0e10cSrcweir.ENDIF 42cdf0e10cSrcweir.ENDIF 43cdf0e10cSrcweir 44cdf0e10cSrcweir# architecture dependent flags for the C and C++ compiler that can be changed by 45cdf0e10cSrcweir# exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build 46cdf0e10cSrcweirARCH_FLAGS*= 47cdf0e10cSrcweir 48cdf0e10cSrcweirCXX*=g++ 49cdf0e10cSrcweirCC*=gcc 50cdf0e10cSrcweirCFLAGS=-c 51cdf0e10cSrcweirCFLAGSCC= -pipe $(ARCH_FLAGS) 52cdf0e10cSrcweir 53cdf0e10cSrcweirCFLAGSEXCEPTIONS=-fexceptions 54cdf0e10cSrcweirCFLAGS_NO_EXCEPTIONS=-fno-exceptions 55cdf0e10cSrcweir 56cdf0e10cSrcweirCFLAGSCXX= -pipe $(ARCH_FLAGS) 57cdf0e10cSrcweirPICSWITCH:=-fPIC 58cdf0e10cSrcweirCFLAGSOBJGUIMT= 59cdf0e10cSrcweirCFLAGSOBJCUIMT= 60cdf0e10cSrcweirCFLAGSSLOGUIMT=$(PICSWITCH) 61cdf0e10cSrcweirCFLAGSSLOCUIMT=$(PICSWITCH) 62cdf0e10cSrcweirCFLAGSPROF= 63cdf0e10cSrcweirCFLAGSDEBUG=-g 64cdf0e10cSrcweirCFLAGSDBGUTIL= 65cdf0e10cSrcweirCFLAGSOPT=-O2 66cdf0e10cSrcweirCFLAGSNOOPT= 67cdf0e10cSrcweirCFLAGSOUTOBJ=-o 68cdf0e10cSrcweir 69cdf0e10cSrcweirSTATIC = -Wl,-Bstatic 70cdf0e10cSrcweirDYNAMIC = -Wl,-Bdynamic 71cdf0e10cSrcweir 72cdf0e10cSrcweirLINK*=$(CXX) 73cdf0e10cSrcweirLINKC*=$(CC) 74cdf0e10cSrcweir 75cdf0e10cSrcweirLINKFLAGS= 76cdf0e10cSrcweirLINKFLAGSAPPGUI=-Wl,-export-dynamic 77cdf0e10cSrcweirLINKFLAGSSHLGUI=-shared 78cdf0e10cSrcweirLINKFLAGSAPPCUI=-Wl,-export-dynamic 79cdf0e10cSrcweirLINKFLAGSSHLCUI=-shared 80cdf0e10cSrcweirLINKFLAGSTACK= 81cdf0e10cSrcweirLINKFLAGSPROF= 82cdf0e10cSrcweirLINKFLAGSDEBUG=-g 83cdf0e10cSrcweirLINKFLAGSOPT= 84cdf0e10cSrcweir 85cdf0e10cSrcweirLINKVERSIONMAPFLAG=-Wl,--version-script 86cdf0e10cSrcweir 87cdf0e10cSrcweir# enable visibility define in "sal/types.h" 88cdf0e10cSrcweir.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" 89cdf0e10cSrcweirCDEFS += -DHAVE_GCC_VISIBILITY_FEATURE 90cdf0e10cSrcweir.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" 91cdf0e10cSrcweir 92cdf0e10cSrcweir# Reihenfolge der libs NICHT egal! 93cdf0e10cSrcweir 94cdf0e10cSrcweirSTDLIBCPP=-lstdc++ 95cdf0e10cSrcweir 96cdf0e10cSrcweirSTDOBJVCL=$(L)/salmain.o 97cdf0e10cSrcweirSTDOBJGUI= 98cdf0e10cSrcweirSTDSLOGUI= 99cdf0e10cSrcweirSTDOBJCUI= 100cdf0e10cSrcweirSTDSLOCUI= 101cdf0e10cSrcweir 102cdf0e10cSrcweirSTDLIBGUIMT=$(DYNAMIC) -lpthread -lthread -lm 103cdf0e10cSrcweirSTDLIBCUIMT=$(DYNAMIC) -lpthread -lthread -lm 104cdf0e10cSrcweir# libraries for linking shared libraries 105cdf0e10cSrcweirSTDSHLGUIMT=$(DYNAMIC) -lpthread -lthread -lm 106cdf0e10cSrcweirSTDSHLCUIMT=$(DYNAMIC) -lpthread -lthread -lm 107cdf0e10cSrcweir 108cdf0e10cSrcweirSTDLIBGUIMT+=-lX11 109cdf0e10cSrcweir 110cdf0e10cSrcweir.IF "$(STLPORT_VER)" >= "500" 111cdf0e10cSrcweirLIBSTLPORT=$(DYNAMIC) -lstlport 112cdf0e10cSrcweirLIBSTLPORTST=$(STATIC) -lstlport $(DYNAMIC) 113cdf0e10cSrcweir.ELSE 114cdf0e10cSrcweirLIBSTLPORT=$(DYNAMIC) -lstlport_gcc 115cdf0e10cSrcweirLIBSTLPORTST=$(STATIC) -lstlport_gcc $(DYNAMIC) 116cdf0e10cSrcweir.ENDIF 117cdf0e10cSrcweir 118cdf0e10cSrcweirLIBMGR=ar 119cdf0e10cSrcweirLIBFLAGS=-r 120cdf0e10cSrcweir# LIBEXT=.so 121cdf0e10cSrcweir 122cdf0e10cSrcweirIMPLIB= 123cdf0e10cSrcweirIMPLIBFLAGS= 124cdf0e10cSrcweir 125cdf0e10cSrcweirMAPSYM= 126cdf0e10cSrcweirMAPSYMFLAGS= 127cdf0e10cSrcweir 128cdf0e10cSrcweirRC=irc 129cdf0e10cSrcweirRCFLAGS=-fo$@ $(RCFILES) 130cdf0e10cSrcweirRCLINK= 131cdf0e10cSrcweirRCLINKFLAGS= 132cdf0e10cSrcweirRCSETVERSION= 133cdf0e10cSrcweir 134a4f23604SHerbert DürrDLLPOSTFIX= 135cdf0e10cSrcweirDLLPRE=lib 136cdf0e10cSrcweirDLLPOST=.so 137