xref: /aoo41x/main/solenv/inc/unxscoi.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
29cdf0e10cSrcweir# mak file fuer wnticci
30cdf0e10cSrcweirASM=
31cdf0e10cSrcweirAFLAGS=
32cdf0e10cSrcweir
33cdf0e10cSrcweirCDEFS+=-D_PTHREADS -D_REENTRANT
34cdf0e10cSrcweirCDEFS+=-D_STD_NO_NAMESPACE -D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE -DX86 -DNEW_SOLAR
35cdf0e10cSrcweir# kann c++ was c braucht??
36cdf0e10cSrcweir
37cdf0e10cSrcweir# architecture dependent flags for the C and C++ compiler that can be changed by
38cdf0e10cSrcweir# exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
39cdf0e10cSrcweirARCH_FLAGS*=-mpentium
40cdf0e10cSrcweir
41cdf0e10cSrcweirCXX*=/nw386/dev/s/solenv/unxscoi/bin/g++
42cdf0e10cSrcweirCC*=/nw386/dev/s/solenv/unxscoi/bin/gcc
43cdf0e10cSrcweirCFLAGS=-c
44cdf0e10cSrcweirCFLAGSCC=$(ARCH_FLAGS)
45cdf0e10cSrcweirCFLAGSEXCEPTIONS=-fexceptions
46cdf0e10cSrcweirCFLAGS_NO_EXCEPTIONS=-fno-exceptions
47cdf0e10cSrcweirCFLAGSCXX=-fguiding-decls -frtti $(ARCH_FLAGS)
48cdf0e10cSrcweirPICSWITCH:=-fPIC
49cdf0e10cSrcweirCFLAGSOBJGUIMT=$(PICSWITCH)
50cdf0e10cSrcweirCFLAGSOBJCUIMT=$(PICSWITCH)
51cdf0e10cSrcweirCFLAGSSLOGUIMT=$(PICSWITCH)
52cdf0e10cSrcweirCFLAGSSLOCUIMT=$(PICSWITCH)
53cdf0e10cSrcweirCFLAGSPROF=
54cdf0e10cSrcweirCFLAGSDEBUG=-g
55cdf0e10cSrcweirCFLAGSDBGUTIL=
56cdf0e10cSrcweirCFLAGSOPT=-O2
57cdf0e10cSrcweirCFLAGSNOOPT=-O
58cdf0e10cSrcweirCFLAGSOUTOBJ=-o
59cdf0e10cSrcweir
60cdf0e10cSrcweirCFLAGSWARNCC=
61cdf0e10cSrcweirCFLAGSWARNCXX=$(CFLAGSWARNCC) -Wno-ctor-dtor-privacy
62cdf0e10cSrcweir# -Wshadow does not work for C with nested uses of pthread_cleanup_push:
63cdf0e10cSrcweirCFLAGSWALLCC=-Wall -Wextra -Wendif-labels
64cdf0e10cSrcweirCFLAGSWALLCXX=$(CFLAGSWALLCC) -Wshadow -Wno-ctor-dtor-privacy
65cdf0e10cSrcweirCFLAGSWERRCC=-Werror
66cdf0e10cSrcweir
67cdf0e10cSrcweirSTATIC		= -Wl,-Bstatic
68cdf0e10cSrcweirDYNAMIC		= -Wl,-Bdynamic
69cdf0e10cSrcweir
70cdf0e10cSrcweirTHREADLIB=
71cdf0e10cSrcweirLINK=/nw386/dev/s/solenv/unxscoi/bin/gcc
72cdf0e10cSrcweirLINKFLAGS=
73cdf0e10cSrcweir# SCO hat grosse Probleme mit fork/exec und einigen shared libraries
74cdf0e10cSrcweir# rsc2 muss daher statisch gelinkt werden
75cdf0e10cSrcweir.IF "$(PRJNAME)"=="rsc"
76cdf0e10cSrcweirLINKFLAGSAPPGUI=-L/nw386/dev/s/solenv/unxscoi/lib $(STATIC) -lpthread_init $(DYNAMIC)
77cdf0e10cSrcweirLINKFLAGSAPPCUI=-L/nw386/dev/s/solenv/unxscoi/lib $(STATIC) -lpthread_init $(DYNAMIC)
78cdf0e10cSrcweir.ELSE
79cdf0e10cSrcweirLINKFLAGSAPPGUI=-L/nw386/dev/s/solenv/unxscoi/lib -lpthread_init
80cdf0e10cSrcweirLINKFLAGSAPPCUI=-L/nw386/dev/s/solenv/unxscoi/lib -lpthread_init
81cdf0e10cSrcweir.ENDIF
82cdf0e10cSrcweirLINKFLAGSSHLGUI=-G -W,l,-Bsymbolic
83cdf0e10cSrcweirLINKFLAGSSHLCUI=-G -W,l,-Bsymbolic
84cdf0e10cSrcweirLINKFLAGSTACK=
85cdf0e10cSrcweirLINKFLAGSPROF=
86cdf0e10cSrcweirLINKFLAGSDEBUG=-g
87cdf0e10cSrcweirLINKFLAGSOPT=
88cdf0e10cSrcweir
89cdf0e10cSrcweir# standard C++ Library
90cdf0e10cSrcweir#
91cdf0e10cSrcweir# das statische dazulinken der libstdc++ macht jede shared library um 50k
92cdf0e10cSrcweir# (ungestrippt) oder so groesser, auch wenn sie ueberhaupt nicht gebraucht
93cdf0e10cSrcweir# wird. Da muessen wir uns was besseres ueberlegen.
94cdf0e10cSrcweirSTDLIBCPP=-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
95cdf0e10cSrcweir
96cdf0e10cSrcweir# reihenfolge der libs NICHT egal!
97cdf0e10cSrcweirSTDOBJGUI=
98cdf0e10cSrcweirSTDSLOGUI=
99cdf0e10cSrcweirSTDOBJCUI=
100cdf0e10cSrcweirSTDSLOCUI=
101cdf0e10cSrcweir.IF "$(PRJNAME)"=="rsc"
102cdf0e10cSrcweirSTDLIBGUIMT=-lXext -lX11 $(STATIC) -lpthread $(DYNAMIC) -ldl -lsocket -lm
103cdf0e10cSrcweirSTDLIBCUIMT=$(STATIC) -lpthread $(DYNAMIC) -ldl -lsocket -lm
104cdf0e10cSrcweir.ELSE
105cdf0e10cSrcweirSTDLIBGUIMT=-lXext -lX11 -lpthread -ldl -lsocket -lm
106cdf0e10cSrcweirSTDLIBCUIMT=-lpthread -ldl -lsocket -lm
107cdf0e10cSrcweir.ENDIF
108cdf0e10cSrcweir#STDSHLGUIMT=-lXext -lX11 -lpthread -ldl -lsocket -lm
109cdf0e10cSrcweir#STDSHLCUIMT=-lpthread -ldl -lsocket -lm
110cdf0e10cSrcweir
111cdf0e10cSrcweirSTDLIBCPP= -lstdc++
112cdf0e10cSrcweirSHLLINKARCONLY=yes
113cdf0e10cSrcweir
114cdf0e10cSrcweirLIBMGR=ar
115cdf0e10cSrcweirLIBFLAGS=-r
116cdf0e10cSrcweir# LIBEXT=.so
117cdf0e10cSrcweir
118cdf0e10cSrcweirIMPLIB=
119cdf0e10cSrcweirIMPLIBFLAGS=
120cdf0e10cSrcweir
121cdf0e10cSrcweirMAPSYM=
122cdf0e10cSrcweirMAPSYMFLAGS=
123cdf0e10cSrcweir
124cdf0e10cSrcweirRC=irc
125cdf0e10cSrcweirRCFLAGS=-fo$@ $(RCFILES)
126cdf0e10cSrcweirRCLINK=
127cdf0e10cSrcweirRCLINKFLAGS=
128cdf0e10cSrcweirRCSETVERSION=
129cdf0e10cSrcweir
130*a4f23604SHerbert DürrDLLPOSTFIX=
131cdf0e10cSrcweirDLLPRE=lib
132cdf0e10cSrcweirDLLPOST=.so
133cdf0e10cSrcweir
134cdf0e10cSrcweirLDUMP=cppfilt /b /n /o /p
135cdf0e10cSrcweir
136