jvmg.make revision 1123
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Copyright 1999-2008 Sun Microsystems, Inc. All Rights Reserved.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# This code is free software; you can redistribute it and/or modify it
03831d35f7499c87d51205817c93e9a8d42c4baestevel# under the terms of the GNU General Public License version 2 only, as
03831d35f7499c87d51205817c93e9a8d42c4baestevel# published by the Free Software Foundation.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# This code is distributed in the hope that it will be useful, but WITHOUT
03831d35f7499c87d51205817c93e9a8d42c4baestevel# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
03831d35f7499c87d51205817c93e9a8d42c4baestevel# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
03831d35f7499c87d51205817c93e9a8d42c4baestevel# version 2 for more details (a copy is included in the LICENSE file that
03831d35f7499c87d51205817c93e9a8d42c4baestevel# accompanied this code).
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# You should have received a copy of the GNU General Public License version
03831d35f7499c87d51205817c93e9a8d42c4baestevel# 2 along with this work; if not, write to the Free Software Foundation,
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
03831d35f7499c87d51205817c93e9a8d42c4baestevel# CA 95054 USA or visit www.sun.com if you need additional information or
03831d35f7499c87d51205817c93e9a8d42c4baestevel# have any questions.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Sets make macros for making debug version of VM
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Compiler specific DEBUG_CFLAGS are passed in from gcc.make, sparcWorks.make
03831d35f7499c87d51205817c93e9a8d42c4baestevelDEBUG_CFLAGS/DEFAULT= $(DEBUG_CFLAGS)
03831d35f7499c87d51205817c93e9a8d42c4baestevelDEBUG_CFLAGS/BYFILE = $(DEBUG_CFLAGS/$@)$(DEBUG_CFLAGS/DEFAULT$(DEBUG_CFLAGS/$@))
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelifeq ("${Platform_compiler}", "sparcWorks")
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelifeq ($(COMPILER_REV_NUMERIC),508)
03831d35f7499c87d51205817c93e9a8d42c4baestevel # SS11 SEGV when compiling with -g and -xarch=v8, using different backend
03831d35f7499c87d51205817c93e9a8d42c4baestevel DEBUG_CFLAGS/compileBroker.o = $(DEBUG_CFLAGS) -xO0
03831d35f7499c87d51205817c93e9a8d42c4baestevel DEBUG_CFLAGS/jvmtiTagMap.o = $(DEBUG_CFLAGS) -xO0
03831d35f7499c87d51205817c93e9a8d42c4baestevelendif
03831d35f7499c87d51205817c93e9a8d42c4baestevelendif
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelCFLAGS += $(DEBUG_CFLAGS/BYFILE)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Set the environment variable HOTSPARC_GENERIC to "true"
03831d35f7499c87d51205817c93e9a8d42c4baestevel# to inhibit the effect of the previous line on CFLAGS.
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Linker mapfiles
03831d35f7499c87d51205817c93e9a8d42c4baestevelMAPFILE = $(GAMMADIR)/make/solaris/makefiles/mapfile-vers \
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(GAMMADIR)/make/solaris/makefiles/mapfile-vers-debug \
$(GAMMADIR)/make/solaris/makefiles/mapfile-vers-nonproduct
# This mapfile is only needed when compiling with dtrace support,
# and mustn't be otherwise.
MAPFILE_DTRACE = $(GAMMADIR)/make/solaris/makefiles/mapfile-vers-$(TYPE)
G_SUFFIX = _g
VERSION = debug
SYSDEFS += -DASSERT -DDEBUG
PICFLAGS = DEFAULT