Line 0
Link Here
|
|
|
1 |
#************************************************************************* |
2 |
# |
3 |
# $RCSfile: unxlngs3904.mk,v $ |
4 |
# |
5 |
# $Revision: 1.1.2.3 $ |
6 |
# |
7 |
# last change: $Author: khendricks $ $Date: 2002/06/07 14:11:58 $ |
8 |
# |
9 |
# The Contents of this file are made available subject to the terms of |
10 |
# either of the following licenses |
11 |
# |
12 |
# - GNU Lesser General Public License Version 2.1 |
13 |
# - Sun Industry Standards Source License Version 1.1 |
14 |
# |
15 |
# Sun Microsystems Inc., October, 2000 |
16 |
# |
17 |
# GNU Lesser General Public License Version 2.1 |
18 |
# ============================================= |
19 |
# Copyright 2000 by Sun Microsystems, Inc. |
20 |
# 901 San Antonio Road, Palo Alto, CA 94303, USA |
21 |
# |
22 |
# This library is free software; you can redistribute it and/or |
23 |
# modify it under the terms of the GNU Lesser General Public |
24 |
# License version 2.1, as published by the Free Software Foundation. |
25 |
# |
26 |
# This library is distributed in the hope that it will be useful, |
27 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
28 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
29 |
# Lesser General Public License for more details. |
30 |
# |
31 |
# You should have received a copy of the GNU Lesser General Public |
32 |
# License along with this library; if not, write to the Free Software |
33 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
34 |
# MA 02111-1307 USA |
35 |
# |
36 |
# |
37 |
# Sun Industry Standards Source License Version 1.1 |
38 |
# ================================================= |
39 |
# The contents of this file are subject to the Sun Industry Standards |
40 |
# Source License Version 1.1 (the "License"); You may not use this file |
41 |
# except in compliance with the License. You may obtain a copy of the |
42 |
# License at http://www.openoffice.org/license.html. |
43 |
# |
44 |
# Software provided under this License is provided on an "AS IS" basis, |
45 |
# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, |
46 |
# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, |
47 |
# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. |
48 |
# See the License for the specific provisions governing your rights and |
49 |
# obligations concerning the Software. |
50 |
# |
51 |
# The Initial Developer of the Original Code is: Sun Microsystems, Inc. |
52 |
# |
53 |
# Copyright: 2000 by Sun Microsystems, Inc. |
54 |
# |
55 |
# All Rights Reserved. |
56 |
# |
57 |
# Contributor(s): _______________________________________ |
58 |
# |
59 |
# |
60 |
# |
61 |
#************************************************************************* |
62 |
|
63 |
# mk file for linux s390 using gcc 3.X |
64 |
ASM= |
65 |
AFLAGS= |
66 |
|
67 |
SOLAR_JAVA=TRUE |
68 |
JAVAFLAGSDEBUG=-g |
69 |
|
70 |
# filter for supressing verbose messages from linker |
71 |
#not needed at the moment |
72 |
#LINKOUTPUT_FILTER=" |& $(SOLARENV)$/bin$/msg_filter" |
73 |
|
74 |
# _PTHREADS is needed for the stl |
75 |
CDEFS+=-DGLIBC=2 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 |
76 |
|
77 |
# this is a platform with JAVA support |
78 |
.IF "$(SOLAR_JAVA)"!="" |
79 |
JAVADEF=-DSOLAR_JAVA |
80 |
.IF "$(debug)"=="" |
81 |
JAVA_RUNTIME=-ljava |
82 |
.ELSE |
83 |
JAVA_RUNTIME=-ljava_g |
84 |
.ENDIF |
85 |
.ENDIF |
86 |
|
87 |
# name of C++ Compiler |
88 |
CC=$(CXXCOMP) |
89 |
# name of C Compiler |
90 |
cc=$(CCCOMP) |
91 |
|
92 |
# flags for C and C++ Compiler |
93 |
# do not use standard header search paths |
94 |
# if installed elsewhere |
95 |
.IF "$(BUILD_SOSL)"!="" |
96 |
CFLAGS= |
97 |
.ENDIF |
98 |
CFLAGS+=-fsigned-char -fmessage-length=0 -c $(INCLUDE) |
99 |
|
100 |
# flags for the C++ Compiler |
101 |
CFLAGSCC= -fsigned-char -pipe |
102 |
|
103 |
# Flags for enabling exception handling |
104 |
CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs |
105 |
|
106 |
# Flags for disabling exception handling |
107 |
CFLAGS_NO_EXCEPTIONS=-fno-exceptions |
108 |
|
109 |
# -fpermissive should be removed as soon as possible |
110 |
#CFLAGSCXX= -fsigned-char -pipe -fno-for-scope -fpermissive -fno-rtti |
111 |
CFLAGSCXX= -fsigned-char -pipe -fno-for-scope -fpermissive |
112 |
|
113 |
|
114 |
# Compiler flags for compiling static object in single threaded environment with graphical user interface |
115 |
CFLAGSOBJGUIST=-fPIC |
116 |
# Compiler flags for compiling static object in single threaded environment with character user interface |
117 |
CFLAGSOBJCUIST=-fPIC |
118 |
# Compiler flags for compiling static object in multi threaded environment with graphical user interface |
119 |
CFLAGSOBJGUIMT=-fPIC |
120 |
# Compiler flags for compiling static object in multi threaded environment with character user interface |
121 |
CFLAGSOBJCUIMT=-fPIC |
122 |
# Compiler flags for compiling shared object in multi threaded environment with graphical user interface |
123 |
CFLAGSSLOGUIMT=-fPIC |
124 |
# Compiler flags for compiling shared object in multi threaded environment with character user interface |
125 |
CFLAGSSLOCUIMT=-fPIC |
126 |
|
127 |
# Compiler flags for profiling |
128 |
CFLAGSPROF= |
129 |
|
130 |
# Compiler flags for debugging |
131 |
CFLAGSDEBUG=-g |
132 |
CFLAGSDBGUTIL= |
133 |
|
134 |
# Compiler flags for enabling optimazations |
135 |
#CFLAGSOPT=-O2 -fno-schedule-insns -fno-strict-aliasing -fno-schedule-insns2 |
136 |
CFLAGSOPT=-O2 -fno-strict-aliasing |
137 |
|
138 |
# Compiler flags for disabling optimazations |
139 |
# don't change - require dto work around optimization bugs |
140 |
CFLAGSNOOPT=-O0 |
141 |
|
142 |
# Compiler flags for discibing the output path |
143 |
CFLAGSOUTOBJ=-o |
144 |
|
145 |
# Enable all warnings |
146 |
CFLAGSWALL=-Wall |
147 |
|
148 |
# Set default warn level |
149 |
CFLAGSDFLTWARN=-w |
150 |
|
151 |
# switches for dynamic and static linking |
152 |
STATIC = -Wl,-Bstatic |
153 |
DYNAMIC = -Wl,-Bdynamic |
154 |
|
155 |
# name of linker |
156 |
LINK=$(CXXCOMP) |
157 |
# default linker flags |
158 |
LINKFLAGS= |
159 |
|
160 |
# linker flags for linking applications |
161 |
LINKFLAGSAPPGUI= -Wl,-export-dynamic -Wl,--noinhibit-exec |
162 |
LINKFLAGSAPPCUI= -Wl,-export-dynamic -Wl,--noinhibit-exec |
163 |
|
164 |
# linker flags for linking shared libraries |
165 |
LINKFLAGSSHLGUI= -shared |
166 |
LINKFLAGSSHLCUI= -shared |
167 |
|
168 |
LINKFLAGSTACK= |
169 |
LINKFLAGSPROF= |
170 |
LINKFLAGSDEBUG=-g |
171 |
LINKFLAGSOPT= |
172 |
|
173 |
.IF "$(NO_BSYMBOLIC)"=="" |
174 |
.IF "$(PRJNAME)" != "envtest" |
175 |
LINKFLAGSSHLGUI+=-Wl,-Bsymbolic |
176 |
LINKFLAGSSHLCUI+=-Wl,-Bsymbolic |
177 |
.ENDIF |
178 |
.ENDIF # "$(NO_BSYMBOLIC)"=="" |
179 |
|
180 |
LINKVERSIONMAPFLAG=-Wl,--version-script |
181 |
|
182 |
SONAME_SWITCH=-Wl,-h |
183 |
|
184 |
# Sequence of libs does matter ! |
185 |
|
186 |
STDLIBCPP=-lstdc++ |
187 |
|
188 |
# default objectfilenames to link |
189 |
STDOBJGUI= |
190 |
STDSLOGUI= |
191 |
STDOBJCUI= |
192 |
STDSLOCUI= |
193 |
|
194 |
# libraries for linking applications |
195 |
STDLIBCUIST=-ldl -lm |
196 |
STDLIBGUIMT=-lX11 -ldl -lpthread -lm |
197 |
STDLIBCUIMT=-ldl -lpthread -lm |
198 |
STDLIBGUIST=-lX11 -ldl -lm |
199 |
# libraries for linking shared libraries |
200 |
STDSHLGUIMT=-lX11 -lXext -ldl -lpthread -lm |
201 |
STDSHLCUIMT=-ldl -lpthread -lm |
202 |
|
203 |
LIBSTLPORT=$(DYNAMIC) -lstlport_gcc -lstdc++ |
204 |
LIBSTLPORTST=$(STATIC) -lstlport_gcc $(DYNAMIC) |
205 |
|
206 |
#FILLUPARC=$(STATIC) -lsupc++ $(DYNAMIC) |
207 |
|
208 |
# name of library manager |
209 |
LIBMGR=ar |
210 |
LIBFLAGS=-r |
211 |
|
212 |
# tool for generating import libraries |
213 |
IMPLIB= |
214 |
IMPLIBFLAGS= |
215 |
|
216 |
MAPSYM= |
217 |
MAPSYMFLAGS= |
218 |
|
219 |
RC=irc |
220 |
RCFLAGS=-fo$@ $(RCFILES) |
221 |
RCLINK= |
222 |
RCLINKFLAGS= |
223 |
RCSETVERSION= |
224 |
|
225 |
# platform specific identifier for shared libs |
226 |
DLLPOSTFIX=l3 |
227 |
DLLPRE=lib |
228 |
DLLPOST=.so |