author | asano |
Fri, 26 Aug 2011 10:48:58 +0900 | |
changeset 192 | 0789bb457ffd |
parent 185 | f908e0010703 |
permissions | -rw-r--r-- |
0 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
5 |
# Common Development and Distribution License (the "License"). |
|
6 |
# You may not use this file except in compliance with the License. |
|
7 |
# |
|
8 |
# You can obtain a copy of the license at $(SRC)/OPENSOLARIS.LICENSE |
|
9 |
# or http://www.opensolaris.org/os/licensing. |
|
10 |
# See the License for the specific language governing permissions |
|
11 |
# and limitations under the License. |
|
12 |
# |
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
# file and include the License file at $(SRC)/OPENSOLARIS.LICENSE. |
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
|
21 |
# |
|
143
b2e21d6a21b8
6893288 Integrate Catalan Translation into g11n-messages workspace
Ales Cernosek <ales.cernosek@sun.com>
parents:
0
diff
changeset
|
22 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
0 | 23 |
# Use is subject to license terms. |
24 |
# |
|
25 |
# ident "@(#)Makefile.master 1.0 06/03/07 SMI" |
|
26 |
# |
|
27 |
||
28 |
MACH :sh= echo ${MACH-`uname -p`} |
|
29 |
MACH64:sh = isainfo -k |
|
30 |
||
31 |
# |
|
32 |
# Global path variables - change these to suit your own build environment |
|
33 |
# |
|
34 |
||
35 |
# Base directory where compilers are located. |
|
36 |
SPRO_VROOT= /opt/SUNWspro |
|
37 |
||
38 |
# List of all our locales - if you need to add/remove any, do it here |
|
39 |
||
143
b2e21d6a21b8
6893288 Integrate Catalan Translation into g11n-messages workspace
Ales Cernosek <ales.cernosek@sun.com>
parents:
0
diff
changeset
|
40 |
ALL_LOCALES = ar_EG ar_SA bg_BG ca ca_ES cs_CZ da_DK da_DK de_DE de_AT de_CH de_LU el_GR el_CY \ |
0 | 41 |
en_AU en_CA en_GB en_IE en_MT en_NZ en_US es_ES es_AR es_BO es_CL es_CO es_CR es_EC es_GT \ |
42 |
es_MX es_NI es_PA es_PE es_PY es_SV es_UY es_VE et_EE fi_FI fr_FR fr_BE fr_CA fr_CH fr_LU \ |
|
43 |
he_IL hi_IN hr_HR hu_HU is_IS it_IT ja_JP ko_KR lt_LT lv_LV mk_MK nb_NO nl_NL nl_BE nn_NO \ |
|
44 |
no_NO no_NY pl_PL pt_PT pt_BR ro_RO ru_RU sh_BA sk_SK sl_SI sq_AL sr_CS sr_SP sr_YU sv_SE \ |
|
45 |
ta_IN th_TH tr_TR zh_CN zh_HK zh_TW iconv |
|
46 |
||
47 |
# Method version - the suffix for all shared objects |
|
48 |
METHOD_VERSION = 3 |
|
49 |
||
50 |
# |
|
51 |
# End global variables - you shouldn't need to change anything from here down |
|
52 |
# |
|
53 |
||
54 |
||
55 |
# the location of the built pkgs |
|
56 |
DEST = $(SRC)/dist/$(MACH) |
|
57 |
||
58 |
# the location of the built binary-only tarballs |
|
59 |
TB_DEST = $(SRC)/dist/closed_tarballs |
|
60 |
||
61 |
# the location of the pkg building files |
|
62 |
ROOT = $(SRC)/proto/$(MACH) |
|
63 |
PKGROOT = $(ROOT)/pkgroot |
|
64 |
FILEROOT = $(ROOT)/fileroot |
|
65 |
||
66 |
||
67 |
# BUILD_TOOLS is the root of all tools including compilers. |
|
68 |
# ONBLD_TOOLS is the root of all the tools that are part of SUNWonbld. |
|
69 |
||
70 |
BUILD_TOOLS= /ws/onnv-tools |
|
71 |
ONBLD_TOOLS= $(BUILD_TOOLS)/onbld |
|
72 |
||
73 |
JAVA_ROOT= /usr/java |
|
74 |
||
75 |
SFW_ROOT= /usr/sfw |
|
76 |
SFWINCDIR= $(SFW_ROOT)/include |
|
77 |
SFWLIBDIR= $(SFW_ROOT)/lib |
|
78 |
SFWLIBDIR64= $(SFW_ROOT)/lib/$(MACH64) |
|
79 |
||
80 |
RPCGEN= /usr/bin/rpcgen |
|
81 |
STABS= $(ONBLD_TOOLS)/bin/$(MACH)/stabs |
|
82 |
ECHO= echo |
|
83 |
INS= /usr/sbin/install -f |
|
84 |
INSDIR= /usr/sbin/install -d |
|
85 |
TRUE= true |
|
86 |
TR = /usr/bin/tr |
|
87 |
SYMLINK= /usr/bin/ln -s |
|
88 |
LN= /usr/bin/ln |
|
89 |
CHMOD= /usr/bin/chmod |
|
90 |
CHOWN= $(TRUE) |
|
91 |
CHGRP= $(TRUE) |
|
92 |
COMPRESS= /usr/bin/compress |
|
93 |
MV= /usr/bin/mv -f |
|
94 |
RM= /usr/bin/rm -f |
|
95 |
GREP= /usr/bin/grep |
|
96 |
SED= /usr/bin/sed |
|
97 |
NAWK= /usr/bin/nawk |
|
98 |
CP= /usr/bin/cp -f |
|
99 |
MCS= /usr/ccs/bin/mcs |
|
100 |
CAT= /usr/bin/cat |
|
101 |
M4= /usr/ccs/bin/m4 |
|
102 |
STRIP= /usr/ccs/bin/strip |
|
103 |
LEX= /usr/ccs/bin/lex |
|
104 |
YACC= /usr/ccs/bin/yacc |
|
105 |
CPP= /usr/lib/cpp |
|
106 |
JAVAC= $(JAVA_ROOT)/bin/javac |
|
107 |
JAVAH= $(JAVA_ROOT)/bin/javah |
|
108 |
JAVADOC= $(JAVA_ROOT)/bin/javadoc |
|
109 |
RMIC= $(JAVA_ROOT)/bin/rmic |
|
110 |
JAR= $(JAVA_ROOT)/bin/jar |
|
111 |
GENOFFSETS= $(ONBLD_TOOLS)/bin/genoffsets |
|
112 |
CTFCVTPTBL= $(ONBLD_TOOLS)/bin/ctfcvtptbl |
|
113 |
CTFFINDMOD= $(ONBLD_TOOLS)/bin/ctffindmod |
|
114 |
XREF= $(ONBLD_TOOLS)/bin/xref |
|
115 |
FIND= /usr/bin/find |
|
116 |
PERL= /usr/bin/perl |
|
117 |
SORT= /usr/bin/sort |
|
118 |
TOUCH= /usr/bin/touch |
|
119 |
WC= /usr/bin/wc |
|
120 |
XARGS= /usr/bin/xargs |
|
121 |
ELFSIGN= /usr/bin/elfsign |
|
122 |
PKGMK= pkgmk |
|
123 |
TAR= /usr/bin/tar -cf |
|
124 |
LD= /usr/ccs/bin/ld |
|
125 |
BDFTOPCF = /usr/openwin/bin/bdftopcf |
|
185
f908e0010703
7068147 removing CDDL from copies of source/text files delivered to the binary product
jenda
parents:
143
diff
changeset
|
126 |
CDDL_FILTER= $(SED) -e '/CDDL HEADER START/,/CDDL HEADER END/d' |
0 | 127 |
|
128 |
# MACH must be set in the shell environment per uname -p on the build host |
|
129 |
# More specific architecture variables should be set in lower makefiles. |
|
130 |
# |
|
131 |
# MACH64 is derived from MACH, and BUILD64 is set to `#' for |
|
132 |
# architectures on which we do not build 64-bit versions. |
|
133 |
# (There are no such architectures at the moment.) |
|
134 |
# |
|
135 |
# Set BUILD64=# in the environment to disable 64-bit amd64 |
|
136 |
# builds on i386 machines. |
|
137 |
||
138 |
MACH64_1= $(MACH:sparc=sparcv9) |
|
139 |
MACH64= $(MACH64_1:i386=amd64) |
|
140 |
||
141 |
MACH32_1= $(MACH:sparc=sparcv7) |
|
142 |
MACH32= $(MACH32_1:i386=i86) |
|
143 |
||
144 |
sparc_BUILD64= |
|
145 |
i386_BUILD64= |
|
146 |
BUILD64= $($(MACH)_BUILD64) |
|
147 |
||
148 |
# |
|
149 |
# C compiler mode. Future compilers may change the default on us, |
|
150 |
# so force extended ANSI mode globally. Lower level makefiles can |
|
151 |
# override this by setting CCMODE. |
|
152 |
# |
|
153 |
CCMODE= -Xa |
|
154 |
CCMODE64= -Xa |
|
155 |
||
156 |
# |
|
157 |
# C compiler verbose mode. This is so we can enable it globally, |
|
158 |
# but turn it off in the lower level makefiles of things we cannot |
|
159 |
# (or aren't going to) fix. |
|
160 |
# |
|
161 |
CCVERBOSE= -v |
|
162 |
||
163 |
# set this to the secret flag "-Wc,-Qiselect-v9abiwarn=1" to get warnings |
|
164 |
# from the compiler about places the -xarch=v9 may differ from -xarch=v9c. |
|
165 |
V9ABIWARN= |
|
166 |
||
167 |
# set this to the secret flag "-Wc,-Qiselect-regsym=0" to disable register |
|
168 |
# symbols (used to detect conflicts between objects that use global registers) |
|
169 |
# we disable this now for safety, and because genunix doesn't link with |
|
170 |
# this feature (the v9 default) enabled. |
|
171 |
# |
|
172 |
# REGSYM is separate since the C++ driver syntax is different. |
|
173 |
CCREGSYM= -Wc,-Qiselect-regsym=0 |
|
174 |
CCCREGSYM= -Qoption cg -Qiselect-regsym=0 |
|
175 |
||
176 |
# |
|
177 |
# generate 32-bit addresses in the v9 kernel. Saves memory. |
|
178 |
CCABS32= -Wc,-xcode=abs32 |
|
179 |
||
180 |
# One optimization the compiler might perform is to turn this: |
|
181 |
# #pragma weak foo |
|
182 |
# extern int foo; |
|
183 |
# if (&foo) |
|
184 |
# foo = 5; |
|
185 |
# into |
|
186 |
# foo = 5; |
|
187 |
# Since we do some of this (foo might be referenced in common kernel code |
|
188 |
# but provided only for some cpu modules or platforms), we disable this |
|
189 |
# optimization. |
|
190 |
# |
|
191 |
sparc_CCUNBOUND = -Wd,-xsafe=unboundsym |
|
192 |
i386_CCUNBOUND = |
|
193 |
CCUNBOUND = $($(MACH)_CCUNBOUND) |
|
194 |
||
195 |
# |
|
196 |
# compiler '-xarch' flag. This is here to centralize it and make it |
|
197 |
# overridable for testing. |
|
198 |
sparc_XARCH= -xarch=v8 |
|
199 |
sparcv9_XARCH= -xarch=v9 |
|
200 |
i386_XARCH= |
|
201 |
amd64_XARCH= -xarch=amd64 -Ui386 -U__i386 |
|
202 |
||
203 |
# assembler '-xarch' flag. Different from compiler '-xarch' flag. |
|
204 |
sparc_AS_XARCH= -xarch=v8 |
|
205 |
sparcv9_AS_XARCH= -xarch=v9 |
|
206 |
i386_AS_XARCH= |
|
207 |
amd64_AS_XARCH= -xarch=amd64 -P -Ui386 -U__i386 |
|
208 |
||
209 |
# |
|
210 |
# These flags define what we need to be 'standalone' i.e. -not- part |
|
211 |
# of the rather more cosy userland environment. This basically means |
|
212 |
# the kernel. |
|
213 |
# |
|
214 |
# XX64 future versions of gcc will make -mcmodel=kernel imply -mno-red-zone |
|
215 |
# |
|
216 |
sparc_STAND_FLAGS= -_gcc=-ffreestanding |
|
217 |
sparcv9_STAND_FLAGS= -_gcc=-ffreestanding |
|
218 |
i386_STAND_FLAGS= -_gcc=-ffreestanding |
|
219 |
amd64_STAND_FLAGS= -Wu,-xmodel=kernel |
|
220 |
||
221 |
SAVEARGS= -Wu,-save_args |
|
222 |
amd64_STAND_FLAGS += $(SAVEARGS) |
|
223 |
||
224 |
STAND_FLAGS_32 = $($(MACH)_STAND_FLAGS) |
|
225 |
STAND_FLAGS_64 = $($(MACH64)_STAND_FLAGS) |
|
226 |
||
227 |
# |
|
228 |
# disable the incremental linker |
|
229 |
ILDOFF= -xildoff |
|
230 |
# |
|
231 |
XDEPEND= -xdepend |
|
232 |
XFFLAG= -xF |
|
233 |
XESS= -xs |
|
234 |
XSTRCONST= -xstrconst |
|
235 |
||
236 |
# |
|
237 |
# turn warnings into errors (C) |
|
238 |
CERRWARN = -errtags=yes -errwarn=%all |
|
239 |
CERRWARN += -erroff=E_EMPTY_TRANSLATION_UNIT |
|
240 |
CERRWARN += -erroff=E_STATEMENT_NOT_REACHED |
|
241 |
||
242 |
# |
|
243 |
# turn warnings into errors (C++) |
|
244 |
CCERRWARN= -xwe |
|
245 |
||
246 |
# C99 mode |
|
247 |
C99_ENABLE= -xc99=%all |
|
248 |
C99_DISABLE= -xc99=%none |
|
249 |
C99MODE= $(C99_DISABLE) |
|
250 |
C99LMODE= $(C99MODE:-xc99%=-Xc99%) |
|
251 |
||
252 |
# In most places, assignments to these macros should be appended with += |
|
253 |
# (CPPFLAGS.master allows values to be prepended to CPPFLAGS). |
|
254 |
sparc_CFLAGS= $(sparc_XARCH) |
|
255 |
sparcv9_CFLAGS= $(sparcv9_XARCH) -dalign $(CCVERBOSE) $(V9ABIWARN) $(CCREGSYM) |
|
256 |
i386_CFLAGS= $(i386_XARCH) |
|
257 |
amd64_CFLAGS= $(amd64_XARCH) |
|
258 |
||
259 |
sparc_ASFLAGS= $(sparc_AS_XARCH) |
|
260 |
sparcv9_ASFLAGS=$(sparcv9_AS_XARCH) |
|
261 |
i386_ASFLAGS= $(i386_AS_XARCH) |
|
262 |
amd64_ASFLAGS= $(amd64_AS_XARCH) |
|
263 |
||
264 |
# |
|
265 |
sparc_COPTFLAG= -xO3 |
|
266 |
sparcv9_COPTFLAG= -xO3 |
|
267 |
i386_COPTFLAG= -xO3 |
|
268 |
amd64_COPTFLAG= -xO3 |
|
269 |
||
270 |
COPTFLAG= $($(MACH)_COPTFLAG) |
|
271 |
COPTFLAG64= $($(MACH64)_COPTFLAG) |
|
272 |
||
273 |
# |
|
274 |
# tradeoff time for space (smaller is better) |
|
275 |
# |
|
276 |
sparc_SPACEFLAG = -xspace -W0,-Lt -W2,-Rcond_elim |
|
277 |
sparcv9_SPACEFLAG = -xspace -W0,-Lt -W2,-Rcond_elim |
|
278 |
i386_SPACEFLAG = -xspace |
|
279 |
amd64_SPACEFLAG = |
|
280 |
||
281 |
SPACEFLAG = $($(MACH)_SPACEFLAG) |
|
282 |
SPACEFLAG64 = $($(MACH64)_SPACEFLAG) |
|
283 |
||
284 |
sparc_XREGSFLAG = -xregs=no%appl |
|
285 |
sparcv9_XREGSFLAG = -xregs=no%appl |
|
286 |
i386_XREGSFLAG = |
|
287 |
amd64_XREGSFLAG = |
|
288 |
||
289 |
XREGSFLAG = $($(MACH)_XREGSFLAG) |
|
290 |
XREGSFLAG64 = $($(MACH64)_XREGSFLAG) |
|
291 |
||
292 |
CFLAGS= $(COPTFLAG) $($(MACH)_CFLAGS) $(SPACEFLAG) $(CCMODE) \ |
|
293 |
$(ILDOFF) $(CERRWARN) $(C99MODE) $(CCUNBOUND) |
|
294 |
CFLAGS64= $(COPTFLAG64) $($(MACH64)_CFLAGS) $(SPACEFLAG64) $(CCMODE64) \ |
|
295 |
$(ILDOFF) $(CERRWARN) $(C99MODE) $(CCUNBOUND) |
|
296 |
NATIVE_CFLAGS= $(COPTFLAG) $($(NATIVE_MACH)_CFLAGS) $(CCMODE) \ |
|
297 |
$(ILDOFF) $(CERRWARN) $(C99MODE) $($(NATIVE_MACH)_CCUNBOUND) |
|
298 |
||
299 |
DTEXTDOM=-DTEXT_DOMAIN=\"$(TEXT_DOMAIN)\" # For messaging. |
|
300 |
DTS_ERRNO=-D_TS_ERRNO |
|
301 |
CPPFLAGS.master=$(DTEXTDOM) $(DTS_ERRNO) \ |
|
302 |
$(ENVCPPFLAGS1) $(ENVCPPFLAGS2) $(ENVCPPFLAGS3) $(ENVCPPFLAGS4) |
|
303 |
CPPFLAGS= $(CPPFLAGS.master) |
|
304 |
AS_CPPFLAGS= $(CPPFLAGS.master) |
|
305 |
JAVAFLAGS= -deprecation |
|
306 |
# |
|
307 |
# This is overwritten by local Makefile when PROG is a list. |
|
308 |
# |
|
309 |
POFILE= $(PROG).po |
|
310 |
||
311 |
sparc_CCFLAGS= -cg92 -compat=4 \ |
|
312 |
-Qoption ccfe -messages=no%anachronism \ |
|
313 |
$(CCERRWARN) |
|
314 |
sparcv9_CCFLAGS= $(sparcv9_XARCH) -dalign -compat=5 \ |
|
315 |
-Qoption ccfe -messages=no%anachronism \ |
|
316 |
-Qoption ccfe -features=no%conststrings \ |
|
317 |
$(CCCREGSYM) \ |
|
318 |
$(CCERRWARN) |
|
319 |
i386_CCFLAGS= -compat=4 \ |
|
320 |
-Qoption ccfe -messages=no%anachronism \ |
|
321 |
-Qoption ccfe -features=no%conststrings \ |
|
322 |
$(CCERRWARN) |
|
323 |
amd64_CCFLAGS= $(amd64_XARCH) -compat=5 \ |
|
324 |
-Qoption ccfe -messages=no%anachronism \ |
|
325 |
-Qoption ccfe -features=no%conststrings \ |
|
326 |
$(CCERRWARN) |
|
327 |
||
328 |
sparc_CCOPTFLAG= -O |
|
329 |
sparcv9_CCOPTFLAG= -O |
|
330 |
i386_CCOPTFLAG= -O |
|
331 |
amd64_CCOPTFLAG= -O |
|
332 |
||
333 |
CCOPTFLAG= $($(MACH)_CCOPTFLAG) |
|
334 |
CCOPTFLAG64= $($(MACH64)_CCOPTFLAG) |
|
335 |
CCFLAGS= $(CCOPTFLAG) $($(MACH)_CCFLAGS) |
|
336 |
CCFLAGS64= $(CCOPTFLAG64) $($(MACH64)_CCFLAGS) |
|
337 |
||
338 |
# For some future builds, NATIVE_MACH and MACH might be different. |
|
339 |
# Therefore, NATIVE_MACH needs to be redefined in the |
|
340 |
# environment as `uname -p` to override this macro. |
|
341 |
# |
|
342 |
# For now at least, we cross-compile amd64 on i386 machines. |
|
343 |
NATIVE_MACH= $(MACH:amd64=i386) |
|
344 |
||
345 |
# Define native compilation macros |
|
346 |
# |
|
347 |
||
348 |
# Specify platform compiler versions for languages |
|
349 |
# that we use (currently only c and c++). |
|
350 |
# |
|
351 |
sparc_CC= $(SPRO_VROOT)/bin/cc |
|
352 |
sparc_CCC= $(SPRO_VROOT)/bin/CC |
|
353 |
sparc_CPP= /usr/ccs/lib/cpp |
|
354 |
sparc_LD= /usr/ccs/bin/ld |
|
355 |
sparc_LINT= $(SPRO_VROOT)/bin/lint |
|
356 |
||
357 |
sparcv9_CC= $(SPRO_VROOT)/bin/cc |
|
358 |
sparcv9_CCC= $(SPRO_VROOT)/bin/CC |
|
359 |
sparcv9_CPP= /usr/ccs/lib/cpp |
|
360 |
sparcv9_LD= /usr/ccs/bin/ld |
|
361 |
sparcv9_LINT= $(SPRO_VROOT)/bin/lint |
|
362 |
||
363 |
# We compile 32-bit objects with cc by default |
|
364 |
i386_CC= $(SPRO_VROOT)/bin/cc |
|
365 |
i386_CCC= $(SPRO_VROOT)/bin/CC |
|
366 |
i386_CPP= /usr/ccs/lib/cpp |
|
367 |
i386_LD= /usr/ccs/bin/ld |
|
368 |
i386_LINT= $(SPRO_VROOT)/bin/lint |
|
369 |
||
370 |
# We compile 64-bit objects with cc by default |
|
371 |
amd64_CC= $(SPRO_VROOT)/bin/cc |
|
372 |
amd64_CCC= $(SPRO_VROOT)/bin/CC |
|
373 |
amd64_CPP= /usr/ccs/lib/cpp |
|
374 |
amd64_LD= /usr/ccs/bin/ld |
|
375 |
amd64_LINT= $(SPRO_VROOT)/bin/lint |
|
376 |
||
377 |
NATIVECC= $($(NATIVE_MACH)_CC) |
|
378 |
NATIVECCC= $($(NATIVE_MACH)_CCC) |
|
379 |
NATIVECPP= $($(NATIVE_MACH)_CPP) |
|
380 |
NATIVELD= $($(NATIVE_MACH)_LD) |
|
381 |
NATIVELINT= $($(NATIVE_MACH)_LINT) |
|
382 |
||
383 |
# |
|
384 |
# Makefile.master.64 overrides these settings |
|
385 |
# |
|
386 |
CC= $(NATIVECC) |
|
387 |
CCC= $(NATIVECCC) |
|
388 |
CPP= $(NATIVECPP) |
|
389 |
LD= $(NATIVELD) |
|
390 |
LINT= $(NATIVELINT) |
|
391 |
||
392 |
# |
|
393 |
# Optimization CFLAG |
|
394 |
# |
|
395 |
||
396 |
CFLAG_OPT = -D_REENTRANT |
|
397 |
||
398 |
CFLAG_OPT += $(SPACEFLAG) $(C99MODE) $(ILDOFF) $(CCUNBOUND) |
|
399 |
||
400 |
CFLAG_OPT_64:sh=if [ "`isainfo -k`" = "sparcv9" ]; then \ |
|
401 |
echo "-xarch=v9 -dalign -D`/usr/bin/uname -p`" ;\ |
|
402 |
elif [ "`isainfo -k`" = "amd64" ]; then \ |
|
403 |
echo "-xarch=amd64" ;\ |
|
404 |
else \ |
|
405 |
echo ""; \ |
|
406 |
fi |
|
407 |
||
408 |
CFLAG_OPT_64 += $(CFLAG_OPT) |
|
409 |
||
410 |