0N/A#
4093N/A# Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
4093N/A# Copyright (c) 2012 Red Hat, Inc.
0N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A#
0N/A# This code is free software; you can redistribute it and/or modify it
0N/A# under the terms of the GNU General Public License version 2 only, as
0N/A# published by the Free Software Foundation.
0N/A#
0N/A# This code is distributed in the hope that it will be useful, but WITHOUT
0N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A# version 2 for more details (a copy is included in the LICENSE file that
0N/A# accompanied this code).
0N/A#
0N/A# You should have received a copy of the GNU General Public License version
0N/A# 2 along with this work; if not, write to the Free Software Foundation,
0N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A#
1472N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A# or visit www.oracle.com if you need additional information or have any
1472N/A# questions.
0N/A#
0N/A#
0N/A
0N/A# Linux does not build jvm_db
0N/ALIBJVM_DB =
0N/A
4093N/A# Only OPENJDK builds test and support SDT probes currently.
4093N/Aifndef OPENJDK
4093N/AREASON = "This JDK does not support SDT probes"
4093N/Aelse
4093N/A
4093N/A# We need a recent GCC for the default
4093N/Aifeq "$(shell expr \( $(CC_VER_MAJOR) \>= 4 \) \& \( $(CC_VER_MINOR) \>= 4 \) )" "0"
4093N/AREASON = "gcc version is too old"
4093N/Aelse
4093N/A
4093N/A# But it does have a SystemTap dtrace compatible sys/sdt.h
4093N/Aifneq ($(ALT_SDT_H),)
4093N/A SDT_H_FILE = $(ALT_SDT_H)
4093N/Aelse
4093N/A SDT_H_FILE = /usr/include/sys/sdt.h
4093N/Aendif
4093N/ADTRACE_ENABLED = $(shell test -f $(SDT_H_FILE) && echo $(SDT_H_FILE))
4093N/AREASON = "$(SDT_H_FILE) not found"
4093N/A
4093N/Aifneq ($(DTRACE_ENABLED),)
4093N/A CFLAGS += -DDTRACE_ENABLED
4093N/Aendif
4093N/A
4093N/Aendif
4093N/Aendif
4093N/A
4093N/A# Phony target used in vm.make build target to check whether enabled.
4093N/A.PHONY: dtraceCheck
4093N/Aifeq ($(DTRACE_ENABLED),)
4093N/AdtraceCheck:
4093N/A $(QUIETLY) echo "**NOTICE** Dtrace support disabled: $(REASON)"
4093N/Aelse
4093N/AdtraceCheck:
4093N/Aendif
4093N/A
4093N/A# It doesn't support HAVE_DTRACE_H though.
4093N/A