author | hnhn |
Tue, 25 Jan 2011 15:54:29 +0100 | |
changeset 519 | cff3eb0cf6ff |
parent 455 | fb16726337be |
child 523 | 236459c1413a |
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. |
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 |
||
40 |
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 \ |
|
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 |
|
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
|
123 |
TAR= /usr/bin/tar |
0 | 124 |
LD= /usr/ccs/bin/ld |
125 |
BDFTOPCF = /usr/openwin/bin/bdftopcf |
|
162 | 126 |
BZIP2= /usr/bin/bzip2 -9 |
405 | 127 |
RSYNC= /usr/bin/rsync |
128 |
UNPACKARCHIVE= $(SRC)/tools/unpack-archive |
|
0 | 129 |
|
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
|
130 |
# SUNWwgetu |
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 |
WGET= /usr/sfw/bin/wget |
eb55d85bc649
remove '-cf' from $(TAR), add definition of $(WGET), $(XKBCOMP_XSUN) and $(XKBCOMP_XORG)
Jan Lana <jan.lana@sun.com>
parents:
0
diff
changeset
|
132 |
|
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 |
# SUNWxorg-server |
423 | 134 |
XKBCOMP= /usr/X11/lib/X11/xkb/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
|
135 |
|
345 | 136 |
# locale_cldr |
137 |
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
|
138 |
|
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 |
|
0 | 140 |
# MACH must be set in the shell environment per uname -p on the build host |
141 |
# More specific architecture variables should be set in lower makefiles. |
|
142 |
# |
|
143 |
# MACH64 is derived from MACH, and BUILD64 is set to `#' for |
|
144 |
# architectures on which we do not build 64-bit versions. |
|
145 |
# (There are no such architectures at the moment.) |
|
146 |
# |
|
147 |
# Set BUILD64=# in the environment to disable 64-bit amd64 |
|
148 |
# builds on i386 machines. |
|
149 |
||
150 |
MACH64_1= $(MACH:sparc=sparcv9) |
|
151 |
MACH64= $(MACH64_1:i386=amd64) |
|
152 |
||
153 |
MACH32_1= $(MACH:sparc=sparcv7) |
|
154 |
MACH32= $(MACH32_1:i386=i86) |
|
155 |
||
156 |
sparc_BUILD64= |
|
157 |
i386_BUILD64= |
|
158 |
BUILD64= $($(MACH)_BUILD64) |
|
159 |
||
160 |
# |
|
161 |
# C compiler mode. Future compilers may change the default on us, |
|
162 |
# so force extended ANSI mode globally. Lower level makefiles can |
|
163 |
# override this by setting CCMODE. |
|
164 |
# |
|
165 |
CCMODE= -Xa |
|
166 |
CCMODE64= -Xa |
|
167 |
||
168 |
# |
|
169 |
# C compiler verbose mode. This is so we can enable it globally, |
|
170 |
# but turn it off in the lower level makefiles of things we cannot |
|
171 |
# (or aren't going to) fix. |
|
172 |
# |
|
173 |
CCVERBOSE= -v |
|
174 |
||
175 |
# set this to the secret flag "-Wc,-Qiselect-v9abiwarn=1" to get warnings |
|
176 |
# from the compiler about places the -xarch=v9 may differ from -xarch=v9c. |
|
177 |
V9ABIWARN= |
|
178 |
||
179 |
# set this to the secret flag "-Wc,-Qiselect-regsym=0" to disable register |
|
180 |
# symbols (used to detect conflicts between objects that use global registers) |
|
181 |
# we disable this now for safety, and because genunix doesn't link with |
|
182 |
# this feature (the v9 default) enabled. |
|
183 |
# |
|
184 |
# REGSYM is separate since the C++ driver syntax is different. |
|
185 |
CCREGSYM= -Wc,-Qiselect-regsym=0 |
|
186 |
CCCREGSYM= -Qoption cg -Qiselect-regsym=0 |
|
187 |
||
188 |
# |
|
189 |
# generate 32-bit addresses in the v9 kernel. Saves memory. |
|
190 |
CCABS32= -Wc,-xcode=abs32 |
|
191 |
||
192 |
# One optimization the compiler might perform is to turn this: |
|
193 |
# #pragma weak foo |
|
194 |
# extern int foo; |
|
195 |
# if (&foo) |
|
196 |
# foo = 5; |
|
197 |
# into |
|
198 |
# foo = 5; |
|
199 |
# Since we do some of this (foo might be referenced in common kernel code |
|
200 |
# but provided only for some cpu modules or platforms), we disable this |
|
201 |
# optimization. |
|
202 |
# |
|
203 |
sparc_CCUNBOUND = -Wd,-xsafe=unboundsym |
|
204 |
i386_CCUNBOUND = |
|
205 |
CCUNBOUND = $($(MACH)_CCUNBOUND) |
|
206 |
||
207 |
# |
|
208 |
# compiler '-xarch' flag. This is here to centralize it and make it |
|
209 |
# overridable for testing. |
|
318 | 210 |
#sparc_XARCH= -xarch=v8 |
211 |
#sparcv9_XARCH= -xarch=v9 |
|
212 |
#i386_XARCH= |
|
213 |
#amd64_XARCH= -xarch=amd64 -Ui386 -U__i386 |
|
214 |
||
215 |
#replace with ss12 specific flags |
|
216 |
sparc_XARCH= -xarch=sparc -m32 |
|
217 |
sparcv9_XARCH= -xarch=sparc -m64 |
|
0 | 218 |
i386_XARCH= |
318 | 219 |
amd64_XARCH= -xarch=sse2 -m64 -Ui386 -U__i386 |
0 | 220 |
|
221 |
# assembler '-xarch' flag. Different from compiler '-xarch' flag. |
|
318 | 222 |
#sparc_AS_XARCH= -xarch=v8 |
223 |
#sparcv9_AS_XARCH= -xarch=v9 |
|
224 |
#i386_AS_XARCH= |
|
225 |
#amd64_AS_XARCH= -xarch=amd64 -P -Ui386 -U__i386 |
|
226 |
||
227 |
#replace with ss12 specific flags |
|
228 |
sparc_AS_XARCH= -xarch=sparc -m32 |
|
229 |
sparcv9_AS_XARCH= -xarch=sparc -64 |
|
0 | 230 |
i386_AS_XARCH= |
318 | 231 |
amd64_AS_XARCH= -xarch=sse2 -m64 -P -Ui386 -U__i386 |
0 | 232 |
|
233 |
# |
|
234 |
# These flags define what we need to be 'standalone' i.e. -not- part |
|
235 |
# of the rather more cosy userland environment. This basically means |
|
236 |
# the kernel. |
|
237 |
# |
|
238 |
# XX64 future versions of gcc will make -mcmodel=kernel imply -mno-red-zone |
|
239 |
# |
|
240 |
sparc_STAND_FLAGS= -_gcc=-ffreestanding |
|
241 |
sparcv9_STAND_FLAGS= -_gcc=-ffreestanding |
|
242 |
i386_STAND_FLAGS= -_gcc=-ffreestanding |
|
455 | 243 |
amd64_STAND_FLAGS= -xmodel=kernel |
0 | 244 |
|
245 |
SAVEARGS= -Wu,-save_args |
|
246 |
amd64_STAND_FLAGS += $(SAVEARGS) |
|
247 |
||
248 |
STAND_FLAGS_32 = $($(MACH)_STAND_FLAGS) |
|
249 |
STAND_FLAGS_64 = $($(MACH64)_STAND_FLAGS) |
|
250 |
||
251 |
# |
|
252 |
# disable the incremental linker |
|
253 |
ILDOFF= -xildoff |
|
254 |
# |
|
255 |
XDEPEND= -xdepend |
|
256 |
XFFLAG= -xF |
|
257 |
XESS= -xs |
|
258 |
XSTRCONST= -xstrconst |
|
259 |
||
260 |
# |
|
261 |
# turn warnings into errors (C) |
|
262 |
CERRWARN = -errtags=yes -errwarn=%all |
|
263 |
CERRWARN += -erroff=E_EMPTY_TRANSLATION_UNIT |
|
264 |
CERRWARN += -erroff=E_STATEMENT_NOT_REACHED |
|
265 |
||
266 |
# |
|
267 |
# turn warnings into errors (C++) |
|
268 |
CCERRWARN= -xwe |
|
269 |
||
270 |
# C99 mode |
|
271 |
C99_ENABLE= -xc99=%all |
|
272 |
C99_DISABLE= -xc99=%none |
|
273 |
C99MODE= $(C99_DISABLE) |
|
274 |
C99LMODE= $(C99MODE:-xc99%=-Xc99%) |
|
275 |
||
276 |
# In most places, assignments to these macros should be appended with += |
|
277 |
# (CPPFLAGS.master allows values to be prepended to CPPFLAGS). |
|
278 |
sparc_CFLAGS= $(sparc_XARCH) |
|
279 |
sparcv9_CFLAGS= $(sparcv9_XARCH) -dalign $(CCVERBOSE) $(V9ABIWARN) $(CCREGSYM) |
|
280 |
i386_CFLAGS= $(i386_XARCH) |
|
281 |
amd64_CFLAGS= $(amd64_XARCH) |
|
282 |
||
283 |
sparc_ASFLAGS= $(sparc_AS_XARCH) |
|
284 |
sparcv9_ASFLAGS=$(sparcv9_AS_XARCH) |
|
285 |
i386_ASFLAGS= $(i386_AS_XARCH) |
|
286 |
amd64_ASFLAGS= $(amd64_AS_XARCH) |
|
287 |
||
288 |
# |
|
289 |
sparc_COPTFLAG= -xO3 |
|
290 |
sparcv9_COPTFLAG= -xO3 |
|
318 | 291 |
i386_COPTFLAG= -O |
0 | 292 |
amd64_COPTFLAG= -xO3 |
293 |
||
294 |
COPTFLAG= $($(MACH)_COPTFLAG) |
|
295 |
COPTFLAG64= $($(MACH64)_COPTFLAG) |
|
296 |
||
297 |
# |
|
298 |
# tradeoff time for space (smaller is better) |
|
299 |
# |
|
300 |
sparc_SPACEFLAG = -xspace -W0,-Lt -W2,-Rcond_elim |
|
301 |
sparcv9_SPACEFLAG = -xspace -W0,-Lt -W2,-Rcond_elim |
|
302 |
i386_SPACEFLAG = -xspace |
|
303 |
amd64_SPACEFLAG = |
|
304 |
||
305 |
SPACEFLAG = $($(MACH)_SPACEFLAG) |
|
306 |
SPACEFLAG64 = $($(MACH64)_SPACEFLAG) |
|
307 |
||
308 |
sparc_XREGSFLAG = -xregs=no%appl |
|
309 |
sparcv9_XREGSFLAG = -xregs=no%appl |
|
310 |
i386_XREGSFLAG = |
|
311 |
amd64_XREGSFLAG = |
|
312 |
||
313 |
XREGSFLAG = $($(MACH)_XREGSFLAG) |
|
314 |
XREGSFLAG64 = $($(MACH64)_XREGSFLAG) |
|
315 |
||
316 |
CFLAGS= $(COPTFLAG) $($(MACH)_CFLAGS) $(SPACEFLAG) $(CCMODE) \ |
|
317 |
$(ILDOFF) $(CERRWARN) $(C99MODE) $(CCUNBOUND) |
|
318 |
CFLAGS64= $(COPTFLAG64) $($(MACH64)_CFLAGS) $(SPACEFLAG64) $(CCMODE64) \ |
|
319 |
$(ILDOFF) $(CERRWARN) $(C99MODE) $(CCUNBOUND) |
|
320 |
NATIVE_CFLAGS= $(COPTFLAG) $($(NATIVE_MACH)_CFLAGS) $(CCMODE) \ |
|
321 |
$(ILDOFF) $(CERRWARN) $(C99MODE) $($(NATIVE_MACH)_CCUNBOUND) |
|
322 |
||
323 |
DTEXTDOM=-DTEXT_DOMAIN=\"$(TEXT_DOMAIN)\" # For messaging. |
|
324 |
DTS_ERRNO=-D_TS_ERRNO |
|
325 |
CPPFLAGS.master=$(DTEXTDOM) $(DTS_ERRNO) \ |
|
326 |
$(ENVCPPFLAGS1) $(ENVCPPFLAGS2) $(ENVCPPFLAGS3) $(ENVCPPFLAGS4) |
|
327 |
CPPFLAGS= $(CPPFLAGS.master) |
|
328 |
AS_CPPFLAGS= $(CPPFLAGS.master) |
|
329 |
JAVAFLAGS= -deprecation |
|
330 |
# |
|
331 |
# This is overwritten by local Makefile when PROG is a list. |
|
332 |
# |
|
333 |
POFILE= $(PROG).po |
|
334 |
||
335 |
sparc_CCFLAGS= -cg92 -compat=4 \ |
|
336 |
-Qoption ccfe -messages=no%anachronism \ |
|
337 |
$(CCERRWARN) |
|
338 |
sparcv9_CCFLAGS= $(sparcv9_XARCH) -dalign -compat=5 \ |
|
339 |
-Qoption ccfe -messages=no%anachronism \ |
|
340 |
-Qoption ccfe -features=no%conststrings \ |
|
341 |
$(CCCREGSYM) \ |
|
342 |
$(CCERRWARN) |
|
343 |
i386_CCFLAGS= -compat=4 \ |
|
344 |
-Qoption ccfe -messages=no%anachronism \ |
|
345 |
-Qoption ccfe -features=no%conststrings \ |
|
346 |
$(CCERRWARN) |
|
347 |
amd64_CCFLAGS= $(amd64_XARCH) -compat=5 \ |
|
348 |
-Qoption ccfe -messages=no%anachronism \ |
|
349 |
-Qoption ccfe -features=no%conststrings \ |
|
350 |
$(CCERRWARN) |
|
351 |
||
352 |
sparc_CCOPTFLAG= -O |
|
353 |
sparcv9_CCOPTFLAG= -O |
|
354 |
i386_CCOPTFLAG= -O |
|
355 |
amd64_CCOPTFLAG= -O |
|
356 |
||
357 |
CCOPTFLAG= $($(MACH)_CCOPTFLAG) |
|
358 |
CCOPTFLAG64= $($(MACH64)_CCOPTFLAG) |
|
359 |
CCFLAGS= $(CCOPTFLAG) $($(MACH)_CCFLAGS) |
|
360 |
CCFLAGS64= $(CCOPTFLAG64) $($(MACH64)_CCFLAGS) |
|
361 |
||
362 |
# For some future builds, NATIVE_MACH and MACH might be different. |
|
363 |
# Therefore, NATIVE_MACH needs to be redefined in the |
|
364 |
# environment as `uname -p` to override this macro. |
|
365 |
# |
|
366 |
# For now at least, we cross-compile amd64 on i386 machines. |
|
367 |
NATIVE_MACH= $(MACH:amd64=i386) |
|
368 |
||
369 |
# Define native compilation macros |
|
370 |
# |
|
371 |
||
372 |
# Specify platform compiler versions for languages |
|
373 |
# that we use (currently only c and c++). |
|
374 |
# |
|
375 |
sparc_CC= $(SPRO_VROOT)/bin/cc |
|
376 |
sparc_CCC= $(SPRO_VROOT)/bin/CC |
|
377 |
sparc_CPP= /usr/ccs/lib/cpp |
|
378 |
sparc_LD= /usr/ccs/bin/ld |
|
379 |
sparc_LINT= $(SPRO_VROOT)/bin/lint |
|
380 |
||
381 |
sparcv9_CC= $(SPRO_VROOT)/bin/cc |
|
382 |
sparcv9_CCC= $(SPRO_VROOT)/bin/CC |
|
383 |
sparcv9_CPP= /usr/ccs/lib/cpp |
|
384 |
sparcv9_LD= /usr/ccs/bin/ld |
|
385 |
sparcv9_LINT= $(SPRO_VROOT)/bin/lint |
|
386 |
||
387 |
# We compile 32-bit objects with cc by default |
|
388 |
i386_CC= $(SPRO_VROOT)/bin/cc |
|
389 |
i386_CCC= $(SPRO_VROOT)/bin/CC |
|
390 |
i386_CPP= /usr/ccs/lib/cpp |
|
391 |
i386_LD= /usr/ccs/bin/ld |
|
392 |
i386_LINT= $(SPRO_VROOT)/bin/lint |
|
393 |
||
394 |
# We compile 64-bit objects with cc by default |
|
395 |
amd64_CC= $(SPRO_VROOT)/bin/cc |
|
396 |
amd64_CCC= $(SPRO_VROOT)/bin/CC |
|
397 |
amd64_CPP= /usr/ccs/lib/cpp |
|
398 |
amd64_LD= /usr/ccs/bin/ld |
|
399 |
amd64_LINT= $(SPRO_VROOT)/bin/lint |
|
400 |
||
401 |
NATIVECC= $($(NATIVE_MACH)_CC) |
|
402 |
NATIVECCC= $($(NATIVE_MACH)_CCC) |
|
403 |
NATIVECPP= $($(NATIVE_MACH)_CPP) |
|
404 |
NATIVELD= $($(NATIVE_MACH)_LD) |
|
405 |
NATIVELINT= $($(NATIVE_MACH)_LINT) |
|
406 |
||
407 |
# |
|
408 |
# Makefile.master.64 overrides these settings |
|
409 |
# |
|
410 |
CC= $(NATIVECC) |
|
411 |
CCC= $(NATIVECCC) |
|
412 |
CPP= $(NATIVECPP) |
|
413 |
LD= $(NATIVELD) |
|
414 |
LINT= $(NATIVELINT) |
|
415 |
||
416 |
# |
|
417 |
# Optimization CFLAG |
|
418 |
# |
|
419 |
||
420 |
CFLAG_OPT = -D_REENTRANT |
|
421 |
||
422 |
CFLAG_OPT += $(SPACEFLAG) $(C99MODE) $(ILDOFF) $(CCUNBOUND) |
|
423 |
||
424 |
CFLAG_OPT_64:sh=if [ "`isainfo -k`" = "sparcv9" ]; then \ |
|
430 | 425 |
echo "-m64 -dalign -D`/usr/bin/uname -p`" ;\ |
0 | 426 |
elif [ "`isainfo -k`" = "amd64" ]; then \ |
430 | 427 |
echo "-m64" ;\ |
0 | 428 |
else \ |
429 |
echo ""; \ |
|
430 |
fi |
|
431 |
||
432 |
CFLAG_OPT_64 += $(CFLAG_OPT) |
|
433 |
||
434 |