make/linux/makefiles/sparcWorks.make

Wed, 02 Jul 2008 12:55:16 -0700

author
xdono
date
Wed, 02 Jul 2008 12:55:16 -0700
changeset 631
d1605aabd0a1
parent 526
a294fd0c4b38
child 1907
c18cbe5936b8
permissions
-rw-r--r--

6719955: Update copyright year
Summary: Update copyright year for files that have been modified in 2008
Reviewed-by: ohair, tbell

dcubed@485 1 #
xdono@631 2 # Copyright 1999-2008 Sun Microsystems, Inc. All Rights Reserved.
dcubed@485 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
dcubed@485 4 #
dcubed@485 5 # This code is free software; you can redistribute it and/or modify it
dcubed@485 6 # under the terms of the GNU General Public License version 2 only, as
dcubed@485 7 # published by the Free Software Foundation.
dcubed@485 8 #
dcubed@485 9 # This code is distributed in the hope that it will be useful, but WITHOUT
dcubed@485 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
dcubed@485 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dcubed@485 12 # version 2 for more details (a copy is included in the LICENSE file that
dcubed@485 13 # accompanied this code).
dcubed@485 14 #
dcubed@485 15 # You should have received a copy of the GNU General Public License version
dcubed@485 16 # 2 along with this work; if not, write to the Free Software Foundation,
dcubed@485 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
dcubed@485 18 #
dcubed@485 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
dcubed@485 20 # CA 95054 USA or visit www.sun.com if you need additional information or
dcubed@485 21 # have any questions.
dcubed@485 22 #
dcubed@485 23 #
dcubed@485 24
dcubed@485 25 #------------------------------------------------------------------------
dcubed@485 26 # CC, CPP & AS
dcubed@485 27
dcubed@485 28 CPP = CC
dcubed@485 29 CC = cc
dcubed@485 30 AS = $(CC) -c
dcubed@485 31
dcubed@485 32 ARCHFLAG = $(ARCHFLAG/$(BUILDARCH))
dcubed@485 33 ARCHFLAG/i486 = -m32
dcubed@485 34 ARCHFLAG/amd64 = -m64
dcubed@485 35
dcubed@485 36 CFLAGS += $(ARCHFLAG)
dcubed@485 37 AOUT_FLAGS += $(ARCHFLAG)
dcubed@485 38 LFLAGS += $(ARCHFLAG)
dcubed@485 39 ASFLAGS += $(ARCHFLAG)
dcubed@485 40
dcubed@485 41 #------------------------------------------------------------------------
dcubed@485 42 # Compiler flags
dcubed@485 43
dcubed@485 44 # position-independent code
dcubed@485 45 PICFLAG = -KPIC
dcubed@485 46
dcubed@485 47 CFLAGS += $(PICFLAG)
dcubed@485 48 # no more exceptions
dcubed@485 49 CFLAGS += -features=no%except
dcubed@485 50 # Reduce code bloat by reverting back to 5.0 behavior for static initializers
dcubed@485 51 CFLAGS += -features=no%split_init
dcubed@485 52 # allow zero sized arrays
dcubed@485 53 CFLAGS += -features=zla
dcubed@485 54
dcubed@485 55 # Use C++ Interpreter
dcubed@485 56 ifdef CC_INTERP
dcubed@485 57 CFLAGS += -DCC_INTERP
dcubed@485 58 endif
dcubed@485 59
dcubed@485 60 # We don't need libCstd.so and librwtools7.so, only libCrun.so
dcubed@485 61 CFLAGS += -library=Crun
dcubed@485 62 LIBS += -lCrun
dcubed@485 63
dcubed@485 64 CFLAGS += -mt
dcubed@485 65 LFLAGS += -mt
dcubed@485 66
dcubed@485 67 # Compiler warnings are treated as errors
dcubed@485 68 #WARNINGS_ARE_ERRORS = -errwarn=%all
dcubed@485 69 CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS)
dcubed@485 70 # Special cases
dcubed@485 71 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@))
dcubed@485 72
dcubed@485 73 # The flags to use for an Optimized build
dcubed@485 74 OPT_CFLAGS+=-xO4
dcubed@485 75 OPT_CFLAGS/NOOPT=-xO0
dcubed@485 76
dcubed@485 77 #------------------------------------------------------------------------
dcubed@485 78 # Linker flags
dcubed@485 79
dcubed@485 80 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file.
dcubed@485 81 MAPFLAG = -Wl,--version-script=FILENAME
dcubed@485 82
dcubed@485 83 # Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj
dcubed@485 84 SONAMEFLAG = -h SONAME
dcubed@485 85
dcubed@485 86 # Build shared library
dcubed@485 87 SHARED_FLAG = -G
dcubed@485 88
dcubed@485 89 #------------------------------------------------------------------------
dcubed@485 90 # Debug flags
dcubed@485 91 DEBUG_CFLAGS += -g
dcubed@485 92 FASTDEBUG_CFLAGS = -g0
dcubed@485 93

mercurial