xref: /aoo42x/main/solenv/inc/unxsogi.mk (revision 7871dc3e)
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 unxsogi
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
58cdf0e10cSrcweir
59cdf0e10cSrcweirCFLAGSOBJGUIMT=
60cdf0e10cSrcweirCFLAGSOBJCUIMT=
61cdf0e10cSrcweirCFLAGSSLOGUIMT=$(PICSWITCH)
62cdf0e10cSrcweirCFLAGSSLOCUIMT=$(PICSWITCH)
63cdf0e10cSrcweirCFLAGSPROF=
64cdf0e10cSrcweirCFLAGSDEBUG=-g
65cdf0e10cSrcweirCFLAGSDBGUTIL=
66cdf0e10cSrcweirCFLAGSOPT=-O2
67cdf0e10cSrcweirCFLAGSNOOPT=
68cdf0e10cSrcweirCFLAGSOUTOBJ=-o
69cdf0e10cSrcweir
70cdf0e10cSrcweirSTATIC		= -Wl,-Bstatic
71cdf0e10cSrcweirDYNAMIC		= -Wl,-Bdynamic
72cdf0e10cSrcweir
73cdf0e10cSrcweirLINK*=$(CXX)
74cdf0e10cSrcweirLINKC*=$(CC)
75cdf0e10cSrcweir
76cdf0e10cSrcweirLINKFLAGS=
77cdf0e10cSrcweirLINKFLAGSAPPGUI=-Wl,-export-dynamic
78cdf0e10cSrcweirLINKFLAGSSHLGUI=-shared
79cdf0e10cSrcweirLINKFLAGSAPPCUI=-Wl,-export-dynamic
80cdf0e10cSrcweirLINKFLAGSSHLCUI=-shared
81cdf0e10cSrcweirLINKFLAGSTACK=
82cdf0e10cSrcweirLINKFLAGSPROF=
83cdf0e10cSrcweirLINKFLAGSDEBUG=-g
84cdf0e10cSrcweirLINKFLAGSOPT=
85cdf0e10cSrcweir
86cdf0e10cSrcweirLINKVERSIONMAPFLAG=-Wl,--version-script
87cdf0e10cSrcweir
88cdf0e10cSrcweir# enable visibility define in "sal/types.h"
89cdf0e10cSrcweir.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
90cdf0e10cSrcweirCDEFS += -DHAVE_GCC_VISIBILITY_FEATURE
91cdf0e10cSrcweir.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
92cdf0e10cSrcweir
93cdf0e10cSrcweir# Reihenfolge der libs NICHT egal!
94cdf0e10cSrcweir
95cdf0e10cSrcweirSTDLIBCPP=-lstdc++
96cdf0e10cSrcweir
97cdf0e10cSrcweirSTDOBJVCL=$(L)/salmain.o
98cdf0e10cSrcweirSTDOBJGUI=
99cdf0e10cSrcweirSTDSLOGUI=
100cdf0e10cSrcweirSTDOBJCUI=
101cdf0e10cSrcweirSTDSLOCUI=
102cdf0e10cSrcweir
103cdf0e10cSrcweirSTDLIBGUIMT=$(DYNAMIC) -lpthread -lthread -lm
104cdf0e10cSrcweirSTDLIBCUIMT=$(DYNAMIC) -lpthread -lthread -lm
105cdf0e10cSrcweir# libraries for linking shared libraries
106cdf0e10cSrcweirSTDSHLGUIMT=$(DYNAMIC) -lpthread -lthread -lm
107cdf0e10cSrcweirSTDSHLCUIMT=$(DYNAMIC) -lpthread -lthread -lm
108cdf0e10cSrcweir
109cdf0e10cSrcweirSTDLIBGUIMT+=-lX11
110cdf0e10cSrcweir
111cdf0e10cSrcweir.IF "$(STLPORT_VER)" >= "500"
112cdf0e10cSrcweirLIBSTLPORT=$(DYNAMIC) -lstlport
113cdf0e10cSrcweirLIBSTLPORTST=$(STATIC) -lstlport $(DYNAMIC)
114cdf0e10cSrcweir.ELSE
115cdf0e10cSrcweirLIBSTLPORT=$(DYNAMIC) -lstlport_gcc
116cdf0e10cSrcweirLIBSTLPORTST=$(STATIC) -lstlport_gcc $(DYNAMIC)
117cdf0e10cSrcweir.ENDIF
118cdf0e10cSrcweir
119cdf0e10cSrcweirLIBMGR=ar
120cdf0e10cSrcweirLIBFLAGS=-r
121cdf0e10cSrcweir# LIBEXT=.so
122cdf0e10cSrcweir
123cdf0e10cSrcweirIMPLIB=
124cdf0e10cSrcweirIMPLIBFLAGS=
125cdf0e10cSrcweir
126cdf0e10cSrcweirMAPSYM=
127cdf0e10cSrcweirMAPSYMFLAGS=
128cdf0e10cSrcweir
129cdf0e10cSrcweirRC=irc
130cdf0e10cSrcweirRCFLAGS=-fo$@ $(RCFILES)
131cdf0e10cSrcweirRCLINK=
132cdf0e10cSrcweirRCLINKFLAGS=
133cdf0e10cSrcweirRCSETVERSION=
134cdf0e10cSrcweir
135a4f23604SHerbert DürrDLLPOSTFIX=
136cdf0e10cSrcweirDLLPRE=lib
137cdf0e10cSrcweirDLLPOST=.so
138