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