make/linux/makefiles/sparcWorks.make

Tue, 05 Apr 2011 14:12:31 -0700

author
trims
date
Tue, 05 Apr 2011 14:12:31 -0700
changeset 2708
1d1603768966
parent 2683
7e88bdae86ec
child 3518
719f7007c8e8
permissions
-rw-r--r--

7010070: Update all 2010 Oracle-changed OpenJDK files to have the proper copyright dates - second pass
Summary: Update the copyright to be 2010 on all changed files in OpenJDK
Reviewed-by: ohair

dcubed@485 1 #
trims@2708 2 # Copyright (c) 1999, 2011, 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
roland@2683 32 HOSTCPP = $(CPP)
roland@2683 33 HOSTCC = $(CC)
roland@2683 34
dcubed@485 35 ARCHFLAG = $(ARCHFLAG/$(BUILDARCH))
dcubed@485 36 ARCHFLAG/i486 = -m32
dcubed@485 37 ARCHFLAG/amd64 = -m64
dcubed@485 38
dcubed@485 39 CFLAGS += $(ARCHFLAG)
dcubed@485 40 AOUT_FLAGS += $(ARCHFLAG)
dcubed@485 41 LFLAGS += $(ARCHFLAG)
dcubed@485 42 ASFLAGS += $(ARCHFLAG)
dcubed@485 43
dcubed@485 44 #------------------------------------------------------------------------
dcubed@485 45 # Compiler flags
dcubed@485 46
dcubed@485 47 # position-independent code
dcubed@485 48 PICFLAG = -KPIC
dcubed@485 49
dcubed@485 50 CFLAGS += $(PICFLAG)
dcubed@485 51 # no more exceptions
dcubed@485 52 CFLAGS += -features=no%except
dcubed@485 53 # Reduce code bloat by reverting back to 5.0 behavior for static initializers
dcubed@485 54 CFLAGS += -features=no%split_init
dcubed@485 55 # allow zero sized arrays
dcubed@485 56 CFLAGS += -features=zla
dcubed@485 57
dcubed@485 58 # Use C++ Interpreter
dcubed@485 59 ifdef CC_INTERP
dcubed@485 60 CFLAGS += -DCC_INTERP
dcubed@485 61 endif
dcubed@485 62
dcubed@485 63 # We don't need libCstd.so and librwtools7.so, only libCrun.so
dcubed@485 64 CFLAGS += -library=Crun
dcubed@485 65 LIBS += -lCrun
dcubed@485 66
dcubed@485 67 CFLAGS += -mt
dcubed@485 68 LFLAGS += -mt
dcubed@485 69
dcubed@485 70 # Compiler warnings are treated as errors
dcubed@485 71 #WARNINGS_ARE_ERRORS = -errwarn=%all
dcubed@485 72 CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS)
dcubed@485 73 # Special cases
dcubed@485 74 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@))
dcubed@485 75
dcubed@485 76 # The flags to use for an Optimized build
dcubed@485 77 OPT_CFLAGS+=-xO4
dcubed@485 78 OPT_CFLAGS/NOOPT=-xO0
dcubed@485 79
stefank@2314 80 # Flags for creating the dependency files.
stefank@2314 81 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
stefank@2314 82 DEPFLAGS = -xMMD -xMF $(DEP_DIR)/$(@:%=%.d)
stefank@2314 83 endif
stefank@2314 84
stefank@2325 85 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
stefank@2325 86 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER
stefank@2325 87
dcubed@485 88 #------------------------------------------------------------------------
dcubed@485 89 # Linker flags
dcubed@485 90
dcubed@485 91 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file.
dcubed@485 92 MAPFLAG = -Wl,--version-script=FILENAME
dcubed@485 93
dcubed@485 94 # Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj
dcubed@485 95 SONAMEFLAG = -h SONAME
dcubed@485 96
dcubed@485 97 # Build shared library
dcubed@485 98 SHARED_FLAG = -G
dcubed@485 99
dcubed@485 100 #------------------------------------------------------------------------
dcubed@485 101 # Debug flags
dcubed@485 102 DEBUG_CFLAGS += -g
dcubed@485 103 FASTDEBUG_CFLAGS = -g0
dcubed@485 104

mercurial