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