make/linux/makefiles/sparcWorks.make

Mon, 03 Jan 2011 15:30:05 -0800

author
trims
date
Mon, 03 Jan 2011 15:30:05 -0800
changeset 2384
0a8e0d4345b3
parent 2325
c760f78e0a53
child 2683
7e88bdae86ec
permissions
-rw-r--r--

7010068: Update all 2010 Oracle-changed OpenJDK files to have the proper copyright dates - first pass
Summary: Update the copyright to be 2010 on all changed files in OpenJDK
Reviewed-by: jcoomes

dcubed@485 1 #
trims@2384 2 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. 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 #
trims@1907 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1907 20 # or visit www.oracle.com if you need additional information or have any
trims@1907 21 # 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
stefank@2314 77 # Flags for creating the dependency files.
stefank@2314 78 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
stefank@2314 79 DEPFLAGS = -xMMD -xMF $(DEP_DIR)/$(@:%=%.d)
stefank@2314 80 endif
stefank@2314 81
stefank@2325 82 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
stefank@2325 83 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER
stefank@2325 84
dcubed@485 85 #------------------------------------------------------------------------
dcubed@485 86 # Linker flags
dcubed@485 87
dcubed@485 88 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file.
dcubed@485 89 MAPFLAG = -Wl,--version-script=FILENAME
dcubed@485 90
dcubed@485 91 # Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj
dcubed@485 92 SONAMEFLAG = -h SONAME
dcubed@485 93
dcubed@485 94 # Build shared library
dcubed@485 95 SHARED_FLAG = -G
dcubed@485 96
dcubed@485 97 #------------------------------------------------------------------------
dcubed@485 98 # Debug flags
dcubed@485 99 DEBUG_CFLAGS += -g
dcubed@485 100 FASTDEBUG_CFLAGS = -g0
dcubed@485 101

mercurial