Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/make/linux/makefiles/sparcWorks.make
32284 views
#1# Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.2# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3#4# This code is free software; you can redistribute it and/or modify it5# under the terms of the GNU General Public License version 2 only, as6# published by the Free Software Foundation.7#8# This code is distributed in the hope that it will be useful, but WITHOUT9# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11# version 2 for more details (a copy is included in the LICENSE file that12# accompanied this code).13#14# You should have received a copy of the GNU General Public License version15# 2 along with this work; if not, write to the Free Software Foundation,16# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17#18# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19# or visit www.oracle.com if you need additional information or have any20# questions.21#22#2324#------------------------------------------------------------------------25# CC, CXX & AS2627# If a SPEC is not set already, then use these defaults.28ifeq ($(SPEC),)29CXX = CC30CC = cc31AS = $(CC) -c3233HOSTCXX = $(CXX)34HOSTCC = $(CC)35endif3637ARCHFLAG = $(ARCHFLAG/$(BUILDARCH))38ARCHFLAG/i486 = -m3239ARCHFLAG/amd64 = -m644041CFLAGS += $(ARCHFLAG)42AOUT_FLAGS += $(ARCHFLAG)43LFLAGS += $(ARCHFLAG)44ASFLAGS += $(ARCHFLAG)4546#------------------------------------------------------------------------47# Compiler flags4849# position-independent code50PICFLAG = -KPIC5152CFLAGS += $(PICFLAG)53# no more exceptions54CFLAGS += -features=no%except55# Reduce code bloat by reverting back to 5.0 behavior for static initializers56CFLAGS += -features=no%split_init57# allow zero sized arrays58CFLAGS += -features=zla5960# Use C++ Interpreter61ifdef CC_INTERP62CFLAGS += -DCC_INTERP63endif6465# We don't need libCstd.so and librwtools7.so, only libCrun.so66CFLAGS += -library=Crun67LIBS += -lCrun6869CFLAGS += -mt70LFLAGS += -mt7172# Compiler warnings are treated as errors73#WARNINGS_ARE_ERRORS = -errwarn=%all74CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS)75# Special cases76CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@))7778# The flags to use for an Optimized build79OPT_CFLAGS+=-xO480OPT_CFLAGS/NOOPT=-xO08182# Flags for creating the dependency files.83ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)84DEPFLAGS = -xMMD -xMF $(DEP_DIR)/$(@:%=%.d)85endif8687# -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.88CFLAGS += -DDONT_USE_PRECOMPILED_HEADER8990#------------------------------------------------------------------------91# Linker flags9293# Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file.94MAPFLAG = -Wl,--version-script=FILENAME9596# Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj97SONAMEFLAG = -h SONAME9899# Build shared library100SHARED_FLAG = -G101102#------------------------------------------------------------------------103# Debug flags104DEBUG_CFLAGS += -g105FASTDEBUG_CFLAGS = -g0106107108109