Makefile revision 3909
4049N/A#
3652N/A# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
6852N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3998N/A#
3998N/A# This code is free software; you can redistribute it and/or modify it
3998N/A# under the terms of the GNU General Public License version 2 only, as
3998N/A# published by the Free Software Foundation. Oracle designates this
3998N/A# particular file as subject to the "Classpath" exception as provided
3998N/A# by Oracle in the LICENSE file that accompanied this code.
3998N/A#
3998N/A# This code is distributed in the hope that it will be useful, but WITHOUT
3998N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3998N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3998N/A# version 2 for more details (a copy is included in the LICENSE file that
3998N/A# accompanied this code).
3998N/A#
4551N/A# You should have received a copy of the GNU General Public License version
4551N/A# 2 along with this work; if not, write to the Free Software Foundation,
3652N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4551N/A#
3652N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3652N/A# or visit www.oracle.com if you need additional information or have any
4551N/A# questions.
3652N/A#
3652N/A
4551N/A#
3998N/A# Makefile for building dtrace extension
3652N/A#
6852N/ABUILDDIR = ../../..
6852N/APACKAGE = sun.tracing.dtrace
6852N/ALIBRARY = jsdt
3652N/APRODUCT = sun
3998N/Ainclude $(BUILDDIR)/common/Defs.gmk
4551N/A
3652N/A#
3652N/A# Use mapfile
3652N/A#
3998N/AFILES_m = mapfile-vers
4551N/Ainclude $(BUILDDIR)/common/Mapfile-vers.gmk
3652N/A
3652N/ANATIVE_DTRACE_DIR=native/sun/tracing/dtrace
4046N/A
3652N/ASRCDIR=$(SHARE_SRC)/$(NATIVE_DTRACE_DIR)
3998N/APSRCDIR=$(PLATFORM_SRC)/$(NATIVE_DTRACE_DIR)
3998N/A
3998N/AFILES_c = JVM.c jvm_symbols_md.c
3998N/A
3998N/AFILES_java = \
4551N/A sun/tracing/dtrace/Activation.java \
4551N/A sun/tracing/dtrace/DTraceProvider.java \
4551N/A sun/tracing/dtrace/DTraceProbe.java \
4551N/A sun/tracing/dtrace/DTraceProviderFactory.java \
4551N/A sun/tracing/dtrace/JVM.java
4551N/A
3652N/AFILES_export = $(FILES_java)
3652N/A
4046N/Aifeq ($(PLATFORM), linux)
3652N/AOTHER_LDLIBS += -ldl
6852N/Aendif
4551N/A
3652N/A#
3652N/A# Use JNI for generating header files
4551N/A#
4551N/AJAVAHFLAGS += -jni
4551N/A
4551N/A#
4551N/A# Don't need to link against -ljava
4551N/A#
4551N/AJAVALIB=
4551N/A
4551N/A#
4551N/A# Rules.
4551N/A#
4551N/Ainclude $(BUILDDIR)/common/Library.gmk
4551N/A
4551N/A#
4551N/A# Add to ambient vpath so we pick up the library files
4551N/A#
4551N/Avpath %.c $(SRCDIR):$(PSRCDIR)
4551N/A