make/linux/makefiles/sparcWorks.make

Wed, 27 Apr 2016 01:25:04 +0800

author
aoqi
date
Wed, 27 Apr 2016 01:25:04 +0800
changeset 0
f90c822e73f8
child 1
2d8a650513c2
permissions
-rw-r--r--

Initial load
http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/
changeset: 6782:28b50d07f6f8
tag: jdk8u25-b17

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

mercurial