Makefile revision 4956
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
f808c858fa61e7769218966759510a8b1190dfcfraf# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# This code is free software; you can redistribute it and/or modify it
f808c858fa61e7769218966759510a8b1190dfcfraf# under the terms of the GNU General Public License version 2 only, as
f808c858fa61e7769218966759510a8b1190dfcfraf# published by the Free Software Foundation. Oracle designates this
f808c858fa61e7769218966759510a8b1190dfcfraf# particular file as subject to the "Classpath" exception as provided
f808c858fa61e7769218966759510a8b1190dfcfraf# by Oracle in the LICENSE file that accompanied this code.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# This code is distributed in the hope that it will be useful, but WITHOUT
f808c858fa61e7769218966759510a8b1190dfcfraf# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f808c858fa61e7769218966759510a8b1190dfcfraf# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
f808c858fa61e7769218966759510a8b1190dfcfraf# version 2 for more details (a copy is included in the LICENSE file that
f808c858fa61e7769218966759510a8b1190dfcfraf# accompanied this code).
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# You should have received a copy of the GNU General Public License version
f808c858fa61e7769218966759510a8b1190dfcfraf# 2 along with this work; if not, write to the Free Software Foundation,
f808c858fa61e7769218966759510a8b1190dfcfraf# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# or visit www.oracle.com if you need additional information or have any
f808c858fa61e7769218966759510a8b1190dfcfraf# questions.
f808c858fa61e7769218966759510a8b1190dfcfraf#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# Makefile for building dtrace extension
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiLIBRARY_SUPPORTS_FULL_DEBUG_SYMBOLS=1
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiBUILDDIR = ../../..
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiPACKAGE = sun.tracing.dtrace
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiLIBRARY = jsdt
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiPRODUCT = sun
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahramiinclude $(BUILDDIR)/common/Defs.gmk
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Use mapfile
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfrafFILES_m = mapfile-vers
f808c858fa61e7769218966759510a8b1190dfcfrafinclude $(BUILDDIR)/common/Mapfile-vers.gmk
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafNATIVE_DTRACE_DIR=native/sun/tracing/dtrace
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafSRCDIR=$(SHARE_SRC)/$(NATIVE_DTRACE_DIR)
f808c858fa61e7769218966759510a8b1190dfcfrafPSRCDIR=$(PLATFORM_SRC)/$(NATIVE_DTRACE_DIR)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafFILES_c = JVM.c jvm_symbols_md.c
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafFILES_java = \
f808c858fa61e7769218966759510a8b1190dfcfraf sun/tracing/dtrace/Activation.java \
f808c858fa61e7769218966759510a8b1190dfcfraf sun/tracing/dtrace/DTraceProvider.java \
f808c858fa61e7769218966759510a8b1190dfcfraf sun/tracing/dtrace/DTraceProbe.java \
f808c858fa61e7769218966759510a8b1190dfcfraf sun/tracing/dtrace/DTraceProviderFactory.java \
f808c858fa61e7769218966759510a8b1190dfcfraf sun/tracing/dtrace/JVM.java
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafFILES_export = $(FILES_java)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafifeq ($(PLATFORM), linux)
f808c858fa61e7769218966759510a8b1190dfcfrafOTHER_LDLIBS += $(LIBDL)
f808c858fa61e7769218966759510a8b1190dfcfrafendif
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Use JNI for generating header files
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfrafJAVAHFLAGS += -jni
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Don't need to link against -ljava
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfrafJAVALIB=
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Rules.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfrafinclude $(BUILDDIR)/common/Library.gmk
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Add to ambient vpath so we pick up the library files
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfrafvpath %.c $(SRCDIR):$(PSRCDIR)
f808c858fa61e7769218966759510a8b1190dfcfraf